mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Be permissive about presumably incorrect loadouts.
These might be broken loadouts, or might be broken pydcs data. In case it's the latter, attempt to load the pylon. DCS will remove the weapon if it's not compatible automatically.
This commit is contained in:
parent
2a77f57aa4
commit
f1adcd1836
@ -85,7 +85,7 @@ class Pylon:
|
||||
|
||||
def equip(self, group: FlyingGroup, weapon: Weapon) -> None:
|
||||
if not self.can_equip(weapon):
|
||||
raise ValueError(f"Pylon {self.number} cannot equip {weapon.name}")
|
||||
logging.error(f"Pylon {self.number} cannot equip {weapon.name}")
|
||||
group.load_pylon(self.make_pydcs_assignment(weapon), self.number)
|
||||
|
||||
def make_pydcs_assignment(self, weapon: Weapon) -> PydcsWeaponAssignment:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user