mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Remove wrong precondition in aircraft procurement.
Those task types aren't correct here (that whole dict probably serves little purpose now), and the actual unit pool is handled in _affordable_aircraft_of_types.
This commit is contained in:
parent
362caa6ac1
commit
5734c29312
@ -178,11 +178,6 @@ class ProcurementAi:
|
||||
def purchase_aircraft(
|
||||
self, budget: int,
|
||||
aircraft_requests: List[AircraftProcurementRequest]) -> int:
|
||||
unit_pool = [u for u in self.faction.aircrafts
|
||||
if u in db.UNIT_BY_TASK[CAS] or u in db.UNIT_BY_TASK[CAP]]
|
||||
if not unit_pool:
|
||||
return budget
|
||||
|
||||
for request in aircraft_requests:
|
||||
for airbase in self.best_airbases_for(request):
|
||||
unit = self.affordable_aircraft_for(request, airbase, budget)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user