mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Add icons for CPs.
This commit is contained in:
@@ -786,6 +786,11 @@ class ControlPoint(MissionTarget, ABC):
|
||||
def strike_targets(self) -> List[Union[MissionTarget, Unit]]:
|
||||
return []
|
||||
|
||||
@property
|
||||
@abstractmethod
|
||||
def category(self) -> str:
|
||||
...
|
||||
|
||||
|
||||
class Airfield(ControlPoint):
|
||||
def __init__(
|
||||
@@ -863,6 +868,10 @@ class Airfield(ControlPoint):
|
||||
def income_per_turn(self) -> int:
|
||||
return 20
|
||||
|
||||
@property
|
||||
def category(self) -> str:
|
||||
return "airfield"
|
||||
|
||||
|
||||
class NavalControlPoint(ControlPoint, ABC):
|
||||
@property
|
||||
@@ -956,6 +965,10 @@ class Carrier(NavalControlPoint):
|
||||
def total_aircraft_parking(self) -> int:
|
||||
return 90
|
||||
|
||||
@property
|
||||
def category(self) -> str:
|
||||
return "cv"
|
||||
|
||||
|
||||
class Lha(NavalControlPoint):
|
||||
def __init__(self, name: str, at: Point, cp_id: int):
|
||||
@@ -986,6 +999,10 @@ class Lha(NavalControlPoint):
|
||||
def total_aircraft_parking(self) -> int:
|
||||
return 20
|
||||
|
||||
@property
|
||||
def category(self) -> str:
|
||||
return "lha"
|
||||
|
||||
|
||||
class OffMapSpawn(ControlPoint):
|
||||
def runway_is_operational(self) -> bool:
|
||||
@@ -1036,6 +1053,10 @@ class OffMapSpawn(ControlPoint):
|
||||
def can_deploy_ground_units(self) -> bool:
|
||||
return False
|
||||
|
||||
@property
|
||||
def category(self) -> str:
|
||||
return "offmap"
|
||||
|
||||
|
||||
class Fob(ControlPoint):
|
||||
def __init__(self, name: str, at: Point, cp_id: int):
|
||||
@@ -1100,3 +1121,7 @@ class Fob(ControlPoint):
|
||||
@property
|
||||
def income_per_turn(self) -> int:
|
||||
return 10
|
||||
|
||||
@property
|
||||
def category(self) -> str:
|
||||
return "fob"
|
||||
|
||||
Reference in New Issue
Block a user