MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / handler

Method handler

eos/effects.py:27230–27242  ·  view source on GitHub ↗
(fit, module, context, projectionRange, **kwargs)

Source from the content-addressed store, hash-verified

27228
27229 @staticmethod
27230 def handler(fit, module, context, projectionRange, **kwargs):
27231 missileGroups = ('Structure Anti-Capital Missile', 'Structure Anti-Subcapital Missile')
27232
27233 for dmgType in ('em', 'kinetic', 'explosive', 'thermal'):
27234 fit.modules.filteredChargeMultiply(lambda mod: mod.charge.group.name in missileGroups,
27235 '%sDamage' % dmgType,
27236 module.getModifiedItemAttr('missileDamageMultiplierBonus'),
27237 stackingPenalties=True, **kwargs)
27238
27239 launcherGroups = ('Structure XL Missile Launcher', 'Structure Multirole Missile Launcher')
27240 fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name in launcherGroups,
27241 'speed', module.getModifiedItemAttr('speedMultiplier'),
27242 stackingPenalties=True, **kwargs)
27243
27244
27245class Effect6465(BaseEffect):

Callers

nothing calls this directly

Calls 3

filteredItemMultiplyMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected