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

Method handler

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

Source from the content-addressed store, hash-verified

6941
6942 @staticmethod
6943 def handler(fit, module, context, projectionRange, **kwargs):
6944 for layer, attrPrefix in (('shield', 'shield'), ('armor', 'armor'), ('hull', '')):
6945 for damageType in ('Kinetic', 'Thermal', 'Explosive', 'Em'):
6946 bonus = '%s%sDamageResonance' % (attrPrefix, damageType)
6947 bonus = '%s%s' % (bonus[0].lower(), bonus[1:])
6948 booster = '%s%sDamageResonance' % (layer, damageType)
6949 fit.ship.multiplyItemAttr(bonus, module.getModifiedItemAttr(booster),
6950 stackingPenalties=True, penaltyGroup='preMul', **kwargs)
6951
6952
6953class Effect2305(BaseEffect):

Callers

nothing calls this directly

Calls 2

multiplyItemAttrMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected