Automated spectator in multiplayer games does nothing

This commit is contained in:
Yair Morgenstern
2024-01-19 11:22:54 +02:00
parent b09354a042
commit a73b159498
2 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@ object NextTurnAutomation {
/** Top-level AI turn task list */
fun automateCivMoves(civInfo: Civilization) {
if (civInfo.isBarbarian()) return BarbarianAutomation(civInfo).automate()
if (civInfo.isSpectator()) return // When there's a spectator in multiplayer games, it's processed automatically, but shouldn't be able to actually do anything
respondToPopupAlerts(civInfo)
TradeAutomation.respondToTradeRequests(civInfo)
@ -152,7 +153,7 @@ object NextTurnAutomation {
return value
// The more we have invested into the city-state the more the alliance is worth
val ourInfluence = if (civInfo.knows(cityState))
val ourInfluence = if (civInfo.knows(cityState))
cityState.getDiplomacyManager(civInfo).getInfluence().toInt()
else 0
value += ourInfluence / 10

View File

@ -98,7 +98,7 @@ class TileImprovement : RulesetStatsObject() {
return when (filter) {
name -> true
"All" -> true
"Improvement" -> true // For situations involing tileFilter
"Improvement" -> true // For situations involving tileFilter
"All Road" -> isRoad()
"Great Improvement", "Great" -> isGreatImprovement()
in uniqueMap -> true