mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 05:41:11 +07:00
Fixed completing the "Found city" tutorial by AI (#8579)
This commit is contained in:
@ -182,7 +182,8 @@ object UnitActions {
|
|||||||
return UnitAction(UnitActionType.FoundCity, action = null)
|
return UnitAction(UnitActionType.FoundCity, action = null)
|
||||||
|
|
||||||
val foundAction = {
|
val foundAction = {
|
||||||
UncivGame.Current.settings.addCompletedTutorialTask("Found city")
|
if (unit.civ.playerType != PlayerType.AI)
|
||||||
|
UncivGame.Current.settings.addCompletedTutorialTask("Found city")
|
||||||
unit.civ.addCity(tile.position)
|
unit.civ.addCity(tile.position)
|
||||||
if (tile.ruleset.tileImprovements.containsKey("City center"))
|
if (tile.ruleset.tileImprovements.containsKey("City center"))
|
||||||
tile.changeImprovement("City center")
|
tile.changeImprovement("City center")
|
||||||
|
Reference in New Issue
Block a user