Files
pyfa/eos/effects/adaptivearmorhardener.py
2016-06-06 16:16:56 -07:00

11 lines
396 B
Python

# adaptiveArmorHardener
#
# 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")