mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Prevent assigning fixed wing squadrons to FARPs.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1671
This commit is contained in:
parent
c60bba1166
commit
e9634b7066
@ -4,10 +4,7 @@ import logging
|
|||||||
from collections import Iterable
|
from collections import Iterable
|
||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import (
|
from typing import Optional, TYPE_CHECKING
|
||||||
TYPE_CHECKING,
|
|
||||||
Optional,
|
|
||||||
)
|
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
@ -52,6 +49,8 @@ class SquadronDef:
|
|||||||
return task in self.auto_assignable_mission_types
|
return task in self.auto_assignable_mission_types
|
||||||
|
|
||||||
def operates_from(self, control_point: ControlPoint) -> bool:
|
def operates_from(self, control_point: ControlPoint) -> bool:
|
||||||
|
if not control_point.can_operate(self.aircraft):
|
||||||
|
return False
|
||||||
if control_point.is_carrier:
|
if control_point.is_carrier:
|
||||||
return self.operating_bases.carrier
|
return self.operating_bases.carrier
|
||||||
elif control_point.is_lha:
|
elif control_point.is_lha:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user