mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +07:00
Fix stats reward for GP consumption escalation - hopefully (#8980)
This commit is contained in:
@ -566,11 +566,11 @@ class MapUnit : IsPartOfGameInfoSerialization {
|
||||
for (unique in civ.getMatchingUniques(UniqueType.ProvidesGoldWheneverGreatPersonExpended)) {
|
||||
gainedStats.gold += (100 * civ.gameInfo.speed.goldCostModifier).toInt()
|
||||
}
|
||||
val speedModifiers = civ.gameInfo.speed.statCostModifiers
|
||||
for (unique in civ.getMatchingUniques(UniqueType.ProvidesStatsWheneverGreatPersonExpended)) {
|
||||
val uniqueStats = unique.stats
|
||||
val speedModifiers = civ.gameInfo.speed.statCostModifiers
|
||||
for (stat in uniqueStats) {
|
||||
uniqueStats[stat.key] = stat.value * speedModifiers[stat.key]!!
|
||||
val uniqueStats = unique.stats.clone()
|
||||
for ((stat, value) in uniqueStats) {
|
||||
uniqueStats[stat] = value * speedModifiers[stat]!!
|
||||
}
|
||||
gainedStats.add(uniqueStats)
|
||||
}
|
||||
|
Reference in New Issue
Block a user