mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
New performance option: disable convoys
Co-Authored-By: MetalStormGhost <89945461+MetalStormGhost@users.noreply.github.com>
This commit is contained in:
parent
cb36163bee
commit
a81b4ffd05
@ -7,6 +7,7 @@
|
||||
* **[Modding]** Support for Su-30 mod version 2.01B
|
||||
* **[UI]** Add livery selector to Air Wing Configurator's squadrons.
|
||||
* **[Performance]** Added performance option: Maximum front-line unit supply per control point.
|
||||
* **[Performance]** Added performance option: Disable convoys.
|
||||
|
||||
|
||||
# Liberation:
|
||||
|
||||
@ -27,9 +27,10 @@ class ConvoyGenerator:
|
||||
|
||||
def generate(self) -> None:
|
||||
# Reset the count to make generation deterministic.
|
||||
for coalition in self.game.coalitions:
|
||||
for convoy in coalition.transfers.convoys:
|
||||
self.generate_convoy(convoy)
|
||||
if not self.game.settings.perf_disable_convoys:
|
||||
for coalition in self.game.coalitions:
|
||||
for convoy in coalition.transfers.convoys:
|
||||
self.generate_convoy(convoy)
|
||||
|
||||
def generate_convoy(self, convoy: Convoy) -> VehicleGroup:
|
||||
group = self._create_mixed_unit_group(
|
||||
|
||||
@ -443,18 +443,18 @@ class Settings:
|
||||
section=PERFORMANCE_SECTION,
|
||||
default=True,
|
||||
)
|
||||
# perf_disable_convoys: bool = boolean_option(
|
||||
# "Disable convoys",
|
||||
# page=MISSION_GENERATOR_PAGE,
|
||||
# section=PERFORMANCE_SECTION,
|
||||
# default=False,
|
||||
# )
|
||||
# perf_frontline_units_prefer_roads: bool = boolean_option(
|
||||
# "Front line troops prefer roads",
|
||||
# page=MISSION_GENERATOR_PAGE,
|
||||
# section=PERFORMANCE_SECTION,
|
||||
# default=False,
|
||||
# )
|
||||
perf_disable_convoys: bool = boolean_option(
|
||||
"Disable convoys",
|
||||
page=MISSION_GENERATOR_PAGE,
|
||||
section=PERFORMANCE_SECTION,
|
||||
default=False,
|
||||
)
|
||||
perf_frontline_units_max_supply: int = bounded_int_option(
|
||||
"Maximum frontline unit supply per control point",
|
||||
page=MISSION_GENERATOR_PAGE,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user