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