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
141fc642d5
commit
dc2d541b50
@ -355,8 +355,7 @@ class MissionGenerator:
|
||||
for tmu in self.unit_map.theater_objects.values():
|
||||
if (
|
||||
tmu.theater_unit.is_ship
|
||||
or
|
||||
isinstance(tmu.dcs_unit, Static)
|
||||
or isinstance(tmu.dcs_unit, Static)
|
||||
and tmu.dcs_unit.category in ["Warehouses", "Heliports"]
|
||||
):
|
||||
# We'll serialize more than is actually necessary
|
||||
@ -366,7 +365,9 @@ class MissionGenerator:
|
||||
tmu.theater_unit.position,
|
||||
self.mission.terrain,
|
||||
).dict()
|
||||
warehouse["coalition"] = "blue" if tmu.theater_unit.ground_object.coalition.player else "red"
|
||||
warehouse["coalition"] = (
|
||||
"blue" if tmu.theater_unit.ground_object.coalition.player else "red"
|
||||
)
|
||||
warehouse["dynamicCargo"] = settings.dynamic_cargo
|
||||
if tmu.theater_unit.is_ship or tmu.dcs_unit.category == "Heliports": # type: ignore
|
||||
warehouse["dynamicSpawn"] = settings.dynamic_slots
|
||||
|
||||
@ -907,21 +907,16 @@ class Settings:
|
||||
MISSION_GENERATOR_PAGE,
|
||||
GAMEPLAY_SECTION,
|
||||
default=True,
|
||||
detail=(
|
||||
"Enables hot start for dynamic slots."
|
||||
),
|
||||
detail=("Enables hot start for dynamic slots."),
|
||||
)
|
||||
dynamic_cargo: bool = boolean_option(
|
||||
"Dynamic cargo",
|
||||
MISSION_GENERATOR_PAGE,
|
||||
GAMEPLAY_SECTION,
|
||||
default=True,
|
||||
detail=(
|
||||
"Enables dynamic cargo for airfields, ships, FARPs & warehouses."
|
||||
),
|
||||
detail=("Enables dynamic cargo for airfields, ships, FARPs & warehouses."),
|
||||
)
|
||||
|
||||
|
||||
# Performance
|
||||
perf_smoke_gen: bool = boolean_option(
|
||||
"Smoke visual effect on the front line",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user