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
|
* **[Modding]** Support for Su-30 mod version 2.01B
|
||||||
* **[UI]** Add livery selector to Air Wing Configurator's squadrons.
|
* **[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: Maximum front-line unit supply per control point.
|
||||||
|
* **[Performance]** Added performance option: Disable convoys.
|
||||||
|
|
||||||
|
|
||||||
# Liberation:
|
# Liberation:
|
||||||
|
|||||||
@ -27,6 +27,7 @@ class ConvoyGenerator:
|
|||||||
|
|
||||||
def generate(self) -> None:
|
def generate(self) -> None:
|
||||||
# Reset the count to make generation deterministic.
|
# Reset the count to make generation deterministic.
|
||||||
|
if not self.game.settings.perf_disable_convoys:
|
||||||
for coalition in self.game.coalitions:
|
for coalition in self.game.coalitions:
|
||||||
for convoy in coalition.transfers.convoys:
|
for convoy in coalition.transfers.convoys:
|
||||||
self.generate_convoy(convoy)
|
self.generate_convoy(convoy)
|
||||||
|
|||||||
@ -443,18 +443,18 @@ class Settings:
|
|||||||
section=PERFORMANCE_SECTION,
|
section=PERFORMANCE_SECTION,
|
||||||
default=True,
|
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(
|
# perf_frontline_units_prefer_roads: bool = boolean_option(
|
||||||
# "Front line troops prefer roads",
|
# "Front line troops prefer roads",
|
||||||
# page=MISSION_GENERATOR_PAGE,
|
# page=MISSION_GENERATOR_PAGE,
|
||||||
# section=PERFORMANCE_SECTION,
|
# section=PERFORMANCE_SECTION,
|
||||||
# default=False,
|
# 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(
|
perf_frontline_units_max_supply: int = bounded_int_option(
|
||||||
"Maximum frontline unit supply per control point",
|
"Maximum frontline unit supply per control point",
|
||||||
page=MISSION_GENERATOR_PAGE,
|
page=MISSION_GENERATOR_PAGE,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user