mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Formatting
This commit is contained in:
parent
bce6a170b8
commit
8e670e1a3c
@ -200,7 +200,7 @@ class Faction:
|
||||
faction = Faction(
|
||||
locales=json.get("locales"),
|
||||
country=country,
|
||||
cargo_ship=ShipUnitType.named(json.get("cargo_ship", "Handy Wind"))
|
||||
cargo_ship=ShipUnitType.named(json.get("cargo_ship", "Handy Wind")),
|
||||
)
|
||||
|
||||
faction.name = json.get("name", "")
|
||||
|
||||
@ -415,9 +415,7 @@ class Squadron:
|
||||
return
|
||||
|
||||
parking_type = ParkingType().from_squadron(self)
|
||||
if self.expected_size_next_turn > self.location.unclaimed_parking(
|
||||
parking_type
|
||||
):
|
||||
if self.expected_size_next_turn > self.location.unclaimed_parking(parking_type):
|
||||
raise RuntimeError(f"Not enough parking for {self} at {self.location}.")
|
||||
self.destination = None
|
||||
self.cancel_ferry_flights()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user