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

Method handler

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

Source from the content-addressed store, hash-verified

23709
23710 @staticmethod
23711 def handler(fit, module, context, projectionRange, **kwargs):
23712 for srcResType, tgtResType in (
23713 ('Em', 'Em'),
23714 ('Explosive', 'Explosive'),
23715 ('Kinetic', 'Kinetic'),
23716 ('Thermic', 'Thermal')
23717 ):
23718 fit.ship.multiplyItemAttr(
23719 'shield{0}DamageResonance'.format(tgtResType),
23720 1 / module.getModifiedItemAttr('mode{0}ResistancePostDiv'.format(srcResType)),
23721 stackingPenalties=True,
23722 penaltyGroup='postDiv',
23723 **kwargs)
23724
23725
23726class Effect6045(BaseEffect):

Callers

nothing calls this directly

Calls 2

multiplyItemAttrMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected