Files
pyfa/eos/effects/modulebonusarmoredwarfarelinkpassivedefense.py
2016-04-06 00:12:44 -04:00

15 lines
544 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)