Files
pyfa/eos/effects/modulebonusarmoredwarfarelinkpassivedefense.py
2016-05-11 21:04:25 -04:00

15 lines
545 B
Python

# moduleBonusArmoredWarfareLinkPassiveDefense
#
# Used by:
# Variations of module: Armored Warfare Link - Passive Defense I (2 of 2)
type = "gang", "active"
gangBoost = "armorResistance"
#runTime = "late"
def handler(fit, module, context):
if "gang" not in context: return
for damageType in ("Em", "Thermal", "Explosive", "Kinetic"):
fit.ship.boostItemAttr("armor%sDamageResonance" % damageType,
module.getModifiedItemAttr("commandBonus"),
stackingPenalties = True)