Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yairm210 committed May 27, 2024
1 parent b9fd1c5 commit 07d1f1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions core/src/com/unciv/logic/trade/TradeEvaluation.kt
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ class TradeEvaluation {
civInfo.getHappiness() < 10 -> 350
else -> 300 // Higher than corresponding sell cost since a trade is mutually beneficial!
}
} else
0
} else 0
}

TradeType.Strategic_Resource -> {
Expand Down
2 changes: 1 addition & 1 deletion core/src/com/unciv/models/ruleset/unique/Unique.kt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Unique(val text: String, val sourceObjectType: UniqueTarget? = null, val s
val multiplier = Countables.getCountableAmount(conditional.params[0], stateForConditionals)
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 perEvery = conditional.params[0].toInt()
if (multiplier != null) amount *= multiplier / perEvery
Expand Down

0 comments on commit 07d1f1e

Please sign in to comment.