mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-08 14:33:42 +07:00
Fixed GameStarter adding gold to spectator Civilization on later eras when it shouldn't. (#9901)
This commit is contained in:
parent
c1da217ff6
commit
756431ee74
@ -227,7 +227,7 @@ object GameStarter {
|
|||||||
val ruleSet = gameInfo.ruleset
|
val ruleSet = gameInfo.ruleset
|
||||||
val startingEra = gameInfo.gameParameters.startingEra
|
val startingEra = gameInfo.gameParameters.startingEra
|
||||||
val era = ruleSet.eras[startingEra]!!
|
val era = ruleSet.eras[startingEra]!!
|
||||||
for (civInfo in gameInfo.civilizations.filter { !it.isBarbarian() }) {
|
for (civInfo in gameInfo.civilizations.filter { !it.isBarbarian() && !it.isSpectator() }) {
|
||||||
civInfo.addGold((era.startingGold * gameInfo.speed.goldCostModifier).toInt())
|
civInfo.addGold((era.startingGold * gameInfo.speed.goldCostModifier).toInt())
|
||||||
civInfo.policies.addCulture((era.startingCulture * gameInfo.speed.cultureCostModifier).toInt())
|
civInfo.policies.addCulture((era.startingCulture * gameInfo.speed.cultureCostModifier).toInt())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user