mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Allow purchasing air units whenever they can be built
This commit is contained in:
parent
aee34de2f4
commit
28fc6a014c
@ -420,7 +420,7 @@ class City : IsPartOfGameInfoSerialization, INamed {
|
|||||||
val tile = getCenterTile()
|
val tile = getCenterTile()
|
||||||
return when {
|
return when {
|
||||||
construction.isCivilian() -> tile.civilianUnit == null
|
construction.isCivilian() -> tile.civilianUnit == null
|
||||||
construction.movesLikeAirUnits -> tile.airUnits.count { !it.isTransported } < 6
|
construction.movesLikeAirUnits -> return true // Dealt with in MapUnit.getRejectionReasons
|
||||||
else -> tile.militaryUnit == null
|
else -> tile.militaryUnit == null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user