mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-08 01:54:02 +07:00
Resolved #2012 - manually place starting locations are no longer visible in-game
This commit is contained in:
parent
0565405fc0
commit
85ea92cf72
@ -75,9 +75,9 @@ class GameStarter {
|
|||||||
gameInfo.civilizations.add(playerCiv)
|
gameInfo.civilizations.add(playerCiv)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
val cityStatesWithStartingLocations =
|
val cityStatesWithStartingLocations =
|
||||||
gameInfo.tileMap.values.filter { it.improvement != null && it.improvement!!.startsWith("StartingLocation ") }
|
gameInfo.tileMap.values
|
||||||
|
.filter { it.improvement != null && it.improvement!!.startsWith("StartingLocation ") }
|
||||||
.map { it.improvement!!.replace("StartingLocation ", "") }
|
.map { it.improvement!!.replace("StartingLocation ", "") }
|
||||||
|
|
||||||
val availableCityStatesNames = Stack<String>()
|
val availableCityStatesNames = Stack<String>()
|
||||||
@ -90,6 +90,12 @@ class GameStarter {
|
|||||||
val civ = CivilizationInfo(cityStateName)
|
val civ = CivilizationInfo(cityStateName)
|
||||||
gameInfo.civilizations.add(civ)
|
gameInfo.civilizations.add(civ)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// remove starting locations one we're done
|
||||||
|
for(tile in gameInfo.tileMap.values){
|
||||||
|
if(tile.improvement!=null && tile.improvement!!.startsWith("StartingLocation "))
|
||||||
|
tile.improvement=null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun addCivStartingUnits(gameInfo: GameInfo) {
|
private fun addCivStartingUnits(gameInfo: GameInfo) {
|
||||||
|
Loading…
Reference in New Issue
Block a user