mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add pretty-print for AircraftProcurementRequest.
This commit is contained in:
parent
3bdf1377c0
commit
993e59413a
@ -31,6 +31,12 @@ class AircraftProcurementRequest:
|
|||||||
task_capability: FlightType
|
task_capability: FlightType
|
||||||
number: int
|
number: int
|
||||||
|
|
||||||
|
def __str__(self) -> str:
|
||||||
|
task = self.task_capability.value
|
||||||
|
distance = self.range.nautical_miles
|
||||||
|
target = self.near.name
|
||||||
|
return f"{self.number} ship {task} within {distance} nm of {target}"
|
||||||
|
|
||||||
|
|
||||||
class ProcurementAi:
|
class ProcurementAi:
|
||||||
def __init__(self, game: Game, for_player: bool, faction: Faction,
|
def __init__(self, game: Game, for_player: bool, faction: Faction,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user