mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 15:59:33 +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)) {
|
for (unique in civ.getMatchingUniques(UniqueType.ProvidesGoldWheneverGreatPersonExpended)) {
|
||||||
gainedStats.gold += (100 * civ.gameInfo.speed.goldCostModifier).toInt()
|
gainedStats.gold += (100 * civ.gameInfo.speed.goldCostModifier).toInt()
|
||||||
}
|
}
|
||||||
|
val speedModifiers = civ.gameInfo.speed.statCostModifiers
|
||||||
for (unique in civ.getMatchingUniques(UniqueType.ProvidesStatsWheneverGreatPersonExpended)) {
|
for (unique in civ.getMatchingUniques(UniqueType.ProvidesStatsWheneverGreatPersonExpended)) {
|
||||||
val uniqueStats = unique.stats
|
val uniqueStats = unique.stats.clone()
|
||||||
val speedModifiers = civ.gameInfo.speed.statCostModifiers
|
for ((stat, value) in uniqueStats) {
|
||||||
for (stat in uniqueStats) {
|
uniqueStats[stat] = value * speedModifiers[stat]!!
|
||||||
uniqueStats[stat.key] = stat.value * speedModifiers[stat.key]!!
|
|
||||||
}
|
}
|
||||||
gainedStats.add(uniqueStats)
|
gainedStats.add(uniqueStats)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user