Resolved #5425 - unit maintenance discount corrected

This commit is contained in:
yairm210 2021-10-08 14:22:26 +03:00
parent 39114ff8f4
commit 36250dfc70

View File

@ -41,7 +41,7 @@ class CivInfoStats(val civInfo: CivilizationInfo) {
numberOfUnitsToPayFor,
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)) {