mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 21:03:15 -04:00
parent
84fe92fab3
commit
0519b92671
@ -306,10 +306,11 @@ open class TileInfo : IsPartOfGameInfoSerialization {
|
||||
|
||||
// function handling when removing a road from the tile
|
||||
fun removeRoad() {
|
||||
roadStatus = RoadStatus.None
|
||||
roadIsPillaged = false
|
||||
if (roadStatus == RoadStatus.None) return
|
||||
roadStatus = RoadStatus.None
|
||||
if (owningCity == null)
|
||||
getRoadOwner()!!.neutralRoads.remove(this.position)
|
||||
getRoadOwner()?.neutralRoads?.remove(this.position)
|
||||
}
|
||||
|
||||
fun getShownImprovement(viewingCiv: CivilizationInfo?): String? {
|
||||
|
Loading…
x
Reference in New Issue
Block a user