Make sure to cache ammo set to reuse it when applying ammo to multiple modules
This commit is contained in:
@@ -52,8 +52,8 @@ class Ammo:
|
||||
return chargeSet
|
||||
|
||||
@classmethod
|
||||
def getModuleStructuredAmmo(cls, mod):
|
||||
chargesFlat = cls.getModuleFlatAmmo(mod)
|
||||
def getModuleStructuredAmmo(cls, mod, ammo=None):
|
||||
chargesFlat = cls.getModuleFlatAmmo(mod) if ammo is None else ammo
|
||||
# Make sure we do not consider mining turrets as combat turrets
|
||||
if mod.hardpoint == FittingHardpoint.TURRET and mod.getModifiedItemAttr('miningAmount', None) is None:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user