mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
valueCityStateAlliance no longer causes a crash when the city-state has not been met (#10853)
This commit is contained in:
@ -152,7 +152,9 @@ object NextTurnAutomation {
|
||||
return value
|
||||
|
||||
// The more we have invested into the city-state the more the alliance is worth
|
||||
val ourInfluence = cityState.getDiplomacyManager(civInfo).getInfluence().toInt()
|
||||
val ourInfluence = if (civInfo.knows(cityState))
|
||||
cityState.getDiplomacyManager(civInfo).getInfluence().toInt()
|
||||
else 0
|
||||
value += ourInfluence / 10
|
||||
|
||||
if (civInfo.gold < 100 && ourInfluence < 30) {
|
||||
|
Reference in New Issue
Block a user