Files
pyfa/eos/effects/modulebonussiegewarfarelinkshieldharmonizing.py

14 lines
547 B
Python

# moduleBonusSiegeWarfareLinkShieldHarmonizing
#
# Used by:
# Variations of module: Siege Warfare Link - Shield Harmonizing I (2 of 2)
type = "gang", "active"
runTime = "late"
gangBoost = "shieldResistance"
def handler(fit, module, context):
if "gang" not in context: return
for damageType in ("Em", "Explosive", "Thermal", "Kinetic"):
fit.ship.boostItemAttr("shield%sDamageResonance" % damageType,
module.getModifiedItemAttr("commandBonus"),
stackingPenalties = True)