Files
pyfa/eos/effects/adaptivearmorhardener.py
2014-07-30 21:23:27 -04:00

9 lines
370 B
Python

# Used by:
# Module: Reactive Armor Hardener
type = "active"
def handler(fit, module, context):
for type in ("kinetic", "thermal", "explosive", "em"):
attr = "armor%sDamageResonance" % type.capitalize()
fit.ship.multiplyItemAttr(attr, module.getModifiedItemAttr(attr),
stackingPenalties=True, penaltyGroup="preMul")