Files
pyfa/eos/effects/modifyshieldresonancepostpercentpassive.py
2014-03-15 17:33:45 +04:00

9 lines
412 B
Python
Executable File

# Used by:
# Modules named like: Anti Screen Reinforcer (32 of 32)
type = "passive"
def handler(fit, module, context):
for type in ("kinetic", "thermal", "explosive", "em"):
fit.ship.boostItemAttr("shield" + type.capitalize() + "DamageResonance",
module.getModifiedItemAttr(type + "DamageResistanceBonus") or 0,
stackingPenalties = True)