Adjust parameters for delaying ground-forces

This commit is contained in:
Raffson 2024-01-20 17:21:46 +01:00
parent f548b27ac5
commit 26066ef8f4
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -286,7 +286,7 @@ class FlotGenerator:
if x.primary_task == FlightType.CAS
]
return (
timedelta(seconds=random.randint(300, 1800))
timedelta(seconds=random.randint(150, 900))
if len(tots) == 0
else min(
[
@ -397,7 +397,7 @@ class FlotGenerator:
Returns True if tasking was added, returns False if the stance was not a combat stance.
"""
duration = timedelta()
if stance != CombatStance.RETREAT:
if stance in [CombatStance.DEFENSIVE, CombatStance.AGGRESSIVE]:
duration = self._earliest_tot_on_flot(not to_cp.coalition.player)
self._set_reform_waypoint(dcs_group, forward_heading, duration)
if stance == CombatStance.AGGRESSIVE:
@ -487,7 +487,7 @@ class FlotGenerator:
Returns True if tasking was added, returns False if the stance was not a combat stance.
"""
duration = timedelta()
if stance != CombatStance.RETREAT:
if stance in [CombatStance.DEFENSIVE, CombatStance.AGGRESSIVE]:
duration = self._earliest_tot_on_flot(not to_cp.coalition.player)
self._set_reform_waypoint(dcs_group, forward_heading, duration)
if stance in [