Carrier must be a water ranged unit (#2267)

This commit is contained in:
Jack Rainy
2020-03-28 20:31:33 +02:00
committed by GitHub
parent 882ca6f22b
commit c749fe6188
2 changed files with 2 additions and 0 deletions

View File

@ -856,6 +856,7 @@
"unitType": "WaterAircraftCarrier", "unitType": "WaterAircraftCarrier",
"movement": 5, "movement": 5,
"strength": 40, "strength": 40,
"rangedStrength": 40,
"cost": 375, "cost": 375,
"requiredTech": "Electronics", "requiredTech": "Electronics",
"uniques": ["Can carry 2 aircraft"], "uniques": ["Can carry 2 aircraft"],

View File

@ -32,6 +32,7 @@ enum class UnitType{
|| this == Siege || this == Siege
|| this == WaterRanged || this == WaterRanged
|| this == WaterSubmarine || this == WaterSubmarine
|| this == WaterAircraftCarrier
|| this == City || this == City
|| this.isAirUnit() || this.isAirUnit()