mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Vary number of aircraft for main task
The following tasks plan according to the number of targets left: - BAI - ANTISHIP - DEAD - STRIKE Other tasks use a random value between 2 and 4.
This commit is contained in:
@@ -25,7 +25,8 @@ class PlanDead(PackagePlanningTask[IadsGroundObject]):
|
||||
state.eliminate_air_defense(self.target)
|
||||
|
||||
def propose_flights(self) -> None:
|
||||
self.propose_flight(FlightType.DEAD, 2)
|
||||
tgt_count = self.target.alive_unit_count
|
||||
self.propose_flight(FlightType.DEAD, min(4, (tgt_count // 2) + 1))
|
||||
|
||||
# Only include SEAD against SAMs that still have emitters. No need to
|
||||
# suppress an EWR, and SEAD isn't useful against a SAM that no longer has a
|
||||
|
||||
Reference in New Issue
Block a user