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