Files
pyfa/eos/effects/structurerigewcapacitorneed.py
2016-07-05 23:26:24 -04:00

6 lines
370 B
Python

type = "passive"
def handler(fit, src, context):
groups = ("Structure ECM Battery", "Structure Disruption Battery")
fit.modules.filteredItemMultiply(lambda mod: mod.item.group.name in groups,
"capacitorNeed", src.getModifiedItemAttr("structureRigEwarCapUseBonus"),
stackingPenalties=True)