mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 21:03:15 -04:00
Update TradeEvaluation.kt (#12440)
This commit is contained in:
parent
04ec4f9cdb
commit
08378cb3c8
@ -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 -> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user