Fix Shield Harmonizing / Shield Efficiency warfare links

This commit is contained in:
blitzmann
2016-05-02 20:19:47 -04:00
parent d4e5f8d165
commit 55ae7c39a4
2 changed files with 8 additions and 8 deletions

View File

@@ -3,12 +3,10 @@
# Used by:
# Variations of module: Siege Warfare Link - Shield Efficiency I (2 of 2)
type = "gang", "active"
gangBoost = "shieldResistance"
gangBoost = "shieldRepairCapacitorNeed"
runTime = "late"
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)
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"),
"capacitorNeed", module.getModifiedItemAttr("commandBonus"))

View File

@@ -3,10 +3,12 @@
# Used by:
# Variations of module: Siege Warfare Link - Shield Harmonizing I (2 of 2)
type = "gang", "active"
gangBoost = "shieldRepairCapacitorNeed"
runTime = "late"
gangBoost = "shieldResistance"
def handler(fit, module, context):
if "gang" not in context: return
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Shield Operation") or mod.item.requiresSkill("Shield Emission Systems"),
"capacitorNeed", module.getModifiedItemAttr("commandBonus"))
for damageType in ("Em", "Explosive", "Thermal", "Kinetic"):
fit.ship.boostItemAttr("shield%sDamageResonance" % damageType,
module.getModifiedItemAttr("commandBonus"),
stackingPenalties = True)