yairm210/Unciv

Trigger "Enemy City" tutorial when I disbanded all my units.

Orange23333 opened this issue · 2 comments

Is there an existing issue for this?

  • I have searched the existing issues

Game Version

4.11.9

Describe the bug

While I was tring to reproduce my last issus #11574 , I found them when I disbanded all the units of the only two civilizations (another uncontrolled city-state still had units). Then, Enemy City tutorial was triggered.

Steps to Reproduce

  1. Create a world with 2 civilizations and 1 city-state.
  2. Normal develop two of them until both of civilizations meet each other and the city-state.
  3. Disbanded all units of both civilizations.

Screenshots

No response

Link to save file

No response

Operating System

Windows

Additional Information

By the way, the translation of Cities can be conquered by reducing their health to 1, and entering the city with a melee unit... in Simplified and Traditional Chinese looks obsolete. Comparing to English version, it has an extra part 您已经包围了敌人的一座城市! in Simplified Chinese and 您已經包圍了敵人的一座城市! in Traditional Chinese at the beginning of the text, which means You have surrounded an enemy city. If it's useless now, just remove them.

Normal develop two of them

??? How? Console, multiplayer, hotseat, ??? OR - just supply a save which would answer that question too.

        displayTutorial(TutorialTrigger.EnemyCity) {
            viewingCiv.getKnownCivs().filter { viewingCiv.isAtWarWith(it) }
                    .flatMap { it.cities.asSequence() }.any { viewingCiv.hasExplored(it.getCenterTile()) }
        }
  • Read "try triggering that tutorial if you're at war with somebody and have explored any of their city tiles" -> units play no role except exploration, and disbanding does not explore tiles. So - sounds impossible, unless there's a factor you did not mention. Might be marginally interesting to debug - but not worth the extra minutes to recreate the situation if you already got it.

Okay, I'm trying to reproduce.