mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Resolved #5425 - unit maintenance discount corrected
This commit is contained in:
parent
39114ff8f4
commit
36250dfc70
@ -41,7 +41,7 @@ class CivInfoStats(val civInfo: CivilizationInfo) {
|
|||||||
numberOfUnitsToPayFor,
|
numberOfUnitsToPayFor,
|
||||||
unitsToPayFor.count { it.matchesFilter(unique.params[1]) }.toFloat()
|
unitsToPayFor.count { it.matchesFilter(unique.params[1]) }.toFloat()
|
||||||
)
|
)
|
||||||
numberOfUnitsToPayFor -= numberOfUnitsWithDiscount * unique.params[0].toFloat() / 100f
|
numberOfUnitsToPayFor += numberOfUnitsWithDiscount * unique.params[0].toFloat() / 100f
|
||||||
}
|
}
|
||||||
|
|
||||||
for (unique in civInfo.getMatchingUniques(UniqueType.DecreasedUnitMaintenanceCostsByFilter)) {
|
for (unique in civInfo.getMatchingUniques(UniqueType.DecreasedUnitMaintenanceCostsByFilter)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user