mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Resolved #2951 - only ancient ruins improvements are removed around players' starting locations, and not other improvements
This commit is contained in:
parent
c17de11c35
commit
8dd8fa3575
@ -126,7 +126,7 @@ object GameStarter {
|
|||||||
if (tile.improvement != null && tile.improvement!!.startsWith("StartingLocation "))
|
if (tile.improvement != null && tile.improvement!!.startsWith("StartingLocation "))
|
||||||
tile.improvement = null
|
tile.improvement = null
|
||||||
// set max starting movement for units loaded from map
|
// set max starting movement for units loaded from map
|
||||||
for(unit in tile.getUnits()) unit.currentMovement = unit.getMaxMovement().toFloat()
|
for (unit in tile.getUnits()) unit.currentMovement = unit.getMaxMovement().toFloat()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -143,6 +143,7 @@ object GameStarter {
|
|||||||
for (civ in gameInfo.civilizations.filter { !it.isBarbarian() && !it.isSpectator() }) {
|
for (civ in gameInfo.civilizations.filter { !it.isBarbarian() && !it.isSpectator() }) {
|
||||||
val startingLocation = startingLocations[civ]!!
|
val startingLocation = startingLocations[civ]!!
|
||||||
for (tile in startingLocation.getTilesInDistance(3))
|
for (tile in startingLocation.getTilesInDistance(3))
|
||||||
|
if (tile.improvement == Constants.ancientRuins)
|
||||||
tile.improvement = null // Remove ancient ruins in immediate vicinity
|
tile.improvement = null // Remove ancient ruins in immediate vicinity
|
||||||
|
|
||||||
fun placeNearStartingPosition(unitName: String) {
|
fun placeNearStartingPosition(unitName: String) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user