mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-03 14:15:15 +07:00
Starting locations work again =)
This commit is contained in:
parent
58f7e06b72
commit
db6031da82
@ -91,11 +91,6 @@ class GameStarter {
|
||||
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) {
|
||||
@ -104,6 +99,12 @@ class GameStarter {
|
||||
gameInfo.civilizations.filter { !it.isBarbarian() },
|
||||
gameInfo.tileMap)
|
||||
|
||||
// remove starting locations one we're done
|
||||
for(tile in gameInfo.tileMap.values){
|
||||
if(tile.improvement!=null && tile.improvement!!.startsWith("StartingLocation "))
|
||||
tile.improvement=null
|
||||
}
|
||||
|
||||
// For later starting eras, or for civs like Polynesia with a different Warrior, we need different starting units
|
||||
fun getWarriorEquivalent(civ: CivilizationInfo): String {
|
||||
val availableMilitaryUnits = gameInfo.ruleSet.units.values.filter {
|
||||
@ -127,6 +128,7 @@ class GameStarter {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private fun getStartingLocations(civs:List<CivilizationInfo>, tileMap: TileMap): HashMap<CivilizationInfo, TileInfo> {
|
||||
|
Loading…
Reference in New Issue
Block a user