Files
pyfa/eos/effects/modeshieldresonancepostdiv.py
2015-05-21 16:44:39 +03:00

20 lines
585 B
Python

# modeShieldResonancePostDiv
#
# Used by:
# Module: Jackdaw Defense Mode
# Module: Svipul Defense Mode
type = "passive"
def handler(fit, module, context):
for srcResType, tgtResType in (
("Em", "Em"),
("Explosive", "Explosive"),
("Kinetic", "Kinetic"),
("Thermic", "Thermal")
):
fit.ship.multiplyItemAttr(
"shield{0}DamageResonance".format(tgtResType),
1 / module.getModifiedItemAttr("mode{0}ResistancePostDiv".format(srcResType)),
stackingPenalties=True,
penaltyGroup="postDiv"
)