mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 10:54:19 -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()
|
||||
return when {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
@ -741,7 +741,7 @@ class CityConstructionsTable(private val cityScreen: CityScreen) {
|
||||
constructionBuyCost == 0 -> true
|
||||
else -> city.getStatReserve(stat) >= constructionBuyCost
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Called only by askToBuyConstruction's Yes answer - not to be confused with [CityConstructions.purchaseConstruction]
|
||||
* @param tile supports [UniqueType.CreatesOneImprovement]
|
||||
|
Loading…
x
Reference in New Issue
Block a user