mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Fix tests
This commit is contained in:
parent
b9fd1c501a
commit
07d1f1ead4
@ -126,8 +126,7 @@ class TradeEvaluation {
|
|||||||
civInfo.getHappiness() < 10 -> 350
|
civInfo.getHappiness() < 10 -> 350
|
||||||
else -> 300 // Higher than corresponding sell cost since a trade is mutually beneficial!
|
else -> 300 // Higher than corresponding sell cost since a trade is mutually beneficial!
|
||||||
}
|
}
|
||||||
} else
|
} else 0
|
||||||
0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TradeType.Strategic_Resource -> {
|
TradeType.Strategic_Resource -> {
|
||||||
|
@ -77,7 +77,7 @@ class Unique(val text: String, val sourceObjectType: UniqueTarget? = null, val s
|
|||||||
val multiplier = Countables.getCountableAmount(conditional.params[0], stateForConditionals)
|
val multiplier = Countables.getCountableAmount(conditional.params[0], stateForConditionals)
|
||||||
if (multiplier != null) amount *= multiplier
|
if (multiplier != null) amount *= multiplier
|
||||||
}
|
}
|
||||||
for (conditional in forEveryConditionals) { // multiple multipliers DO multiply.
|
for (conditional in forEveryAmountConditionals) { // multiple multipliers DO multiply.
|
||||||
val multiplier = Countables.getCountableAmount(conditional.params[1], stateForConditionals)
|
val multiplier = Countables.getCountableAmount(conditional.params[1], stateForConditionals)
|
||||||
val perEvery = conditional.params[0].toInt()
|
val perEvery = conditional.params[0].toInt()
|
||||||
if (multiplier != null) amount *= multiplier / perEvery
|
if (multiplier != null) amount *= multiplier / perEvery
|
||||||
|
Loading…
x
Reference in New Issue
Block a user