Update TradeEvaluation.kt (#12440)

This commit is contained in:
EmperorPinguin 2024-11-13 14:50:38 +01:00 committed by GitHub
parent 04ec4f9cdb
commit 08378cb3c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -248,10 +248,10 @@ class TradeEvaluation {
TradeOfferType.Luxury_Resource -> { TradeOfferType.Luxury_Resource -> {
return when { return when {
civInfo.getResourceAmount(offer.name) > 1 -> 250 // fair price civInfo.getResourceAmount(offer.name) > 1 -> 250 // fair price
civInfo.hasUnique(UniqueType.RetainHappinessFromLuxury) -> // If we retain 50% happiness, value at 375 civInfo.hasUnique(UniqueType.RetainHappinessFromLuxury) -> // If we retain 100% happiness, value it as a duplicate lux
750 - (civInfo.getMatchingUniques(UniqueType.RetainHappinessFromLuxury) 600 - (civInfo.getMatchingUniques(UniqueType.RetainHappinessFromLuxury)
.first().params[0].toPercent() * 250).toInt() .first().params[0].toPercent() * 350).toInt()
else -> 500 // you want to take away our last lux of this type?! else -> 600 // you want to take away our last lux of this type?!
} }
} }
TradeOfferType.Strategic_Resource -> { TradeOfferType.Strategic_Resource -> {