Files
pyfa/eos/effects/modifyactivearmorresonancepostpercent.py
2014-01-22 23:51:42 +04:00

9 lines
422 B
Python
Executable File

# Used by:
# Modules from group: Armor Hardener (156 of 156)
type = "active"
def handler(fit, module, context):
for damageType in ("kinetic", "thermal", "explosive", "em"):
fit.ship.boostItemAttr("armor%sDamageResonance" % damageType.capitalize(),
module.getModifiedItemAttr("%sDamageResistanceBonus" % damageType),
stackingPenalties = True)