mirror of
https://github.com/yairm210/Unciv.git
synced 2024-12-22 23:04:25 +07:00
Update TradeEvaluation.kt (#12440)
This commit is contained in:
parent
04ec4f9cdb
commit
08378cb3c8
@ -248,10 +248,10 @@ class TradeEvaluation {
|
||||
TradeOfferType.Luxury_Resource -> {
|
||||
return when {
|
||||
civInfo.getResourceAmount(offer.name) > 1 -> 250 // fair price
|
||||
civInfo.hasUnique(UniqueType.RetainHappinessFromLuxury) -> // If we retain 50% happiness, value at 375
|
||||
750 - (civInfo.getMatchingUniques(UniqueType.RetainHappinessFromLuxury)
|
||||
.first().params[0].toPercent() * 250).toInt()
|
||||
else -> 500 // you want to take away our last lux of this type?!
|
||||
civInfo.hasUnique(UniqueType.RetainHappinessFromLuxury) -> // If we retain 100% happiness, value it as a duplicate lux
|
||||
600 - (civInfo.getMatchingUniques(UniqueType.RetainHappinessFromLuxury)
|
||||
.first().params[0].toPercent() * 350).toInt()
|
||||
else -> 600 // you want to take away our last lux of this type?!
|
||||
}
|
||||
}
|
||||
TradeOfferType.Strategic_Resource -> {
|
||||
|
Loading…
Reference in New Issue
Block a user