mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Pretense should always use Client slots.
This commit is contained in:
parent
b801136145
commit
25e2da2b91
@ -92,9 +92,8 @@ class PretenseAircraftGenerator:
|
|||||||
@cached_property
|
@cached_property
|
||||||
def use_client(self) -> bool:
|
def use_client(self) -> bool:
|
||||||
"""True if Client should be used instead of Player."""
|
"""True if Client should be used instead of Player."""
|
||||||
blue_clients = self.client_slots_in_ato(self.game.blue.ato)
|
"""Pretense should always use Client slots."""
|
||||||
red_clients = self.client_slots_in_ato(self.game.red.ato)
|
return True
|
||||||
return blue_clients + red_clients > 1
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def client_slots_in_ato(ato: AirTaskingOrder) -> int:
|
def client_slots_in_ato(ato: AirTaskingOrder) -> int:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user