Handle edge case where aircraft have built in TPGs

This commit is contained in:
zhexu14
2023-04-29 12:03:35 +10:00
committed by Raffson
parent 0ff60283c2
commit f965c9ffa7
4 changed files with 11 additions and 0 deletions

View File

@@ -92,6 +92,9 @@ class Loadout:
if self.has_weapon_of_type(WeaponType.TGP):
return
if unit_type.has_built_in_target_pod:
return
new_pylons = dict(self.pylons)
for pylon_number, weapon in self.pylons.items():
if weapon is not None and weapon.weapon_group.type is WeaponType.LGB: