mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Adjust parameters for delaying ground-forces
This commit is contained in:
parent
f548b27ac5
commit
26066ef8f4
@ -286,7 +286,7 @@ class FlotGenerator:
|
|||||||
if x.primary_task == FlightType.CAS
|
if x.primary_task == FlightType.CAS
|
||||||
]
|
]
|
||||||
return (
|
return (
|
||||||
timedelta(seconds=random.randint(300, 1800))
|
timedelta(seconds=random.randint(150, 900))
|
||||||
if len(tots) == 0
|
if len(tots) == 0
|
||||||
else min(
|
else min(
|
||||||
[
|
[
|
||||||
@ -397,7 +397,7 @@ class FlotGenerator:
|
|||||||
Returns True if tasking was added, returns False if the stance was not a combat stance.
|
Returns True if tasking was added, returns False if the stance was not a combat stance.
|
||||||
"""
|
"""
|
||||||
duration = timedelta()
|
duration = timedelta()
|
||||||
if stance != CombatStance.RETREAT:
|
if stance in [CombatStance.DEFENSIVE, CombatStance.AGGRESSIVE]:
|
||||||
duration = self._earliest_tot_on_flot(not to_cp.coalition.player)
|
duration = self._earliest_tot_on_flot(not to_cp.coalition.player)
|
||||||
self._set_reform_waypoint(dcs_group, forward_heading, duration)
|
self._set_reform_waypoint(dcs_group, forward_heading, duration)
|
||||||
if stance == CombatStance.AGGRESSIVE:
|
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.
|
Returns True if tasking was added, returns False if the stance was not a combat stance.
|
||||||
"""
|
"""
|
||||||
duration = timedelta()
|
duration = timedelta()
|
||||||
if stance != CombatStance.RETREAT:
|
if stance in [CombatStance.DEFENSIVE, CombatStance.AGGRESSIVE]:
|
||||||
duration = self._earliest_tot_on_flot(not to_cp.coalition.player)
|
duration = self._earliest_tot_on_flot(not to_cp.coalition.player)
|
||||||
self._set_reform_waypoint(dcs_group, forward_heading, duration)
|
self._set_reform_waypoint(dcs_group, forward_heading, duration)
|
||||||
if stance in [
|
if stance in [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user