Files
pyfa/eos/effects/ganginformationwarfarerangebonuswithecmburst.py
2015-12-03 20:40:23 -05:00

13 lines
590 B
Python

# gangInformationWarfareRangeBonusWithEcmBurst
#
# Used by:
# Variations of module: Information Warfare Link - Recon Operation I (2 of 2)
type = "gang", "active"
gangBoost = "electronicMaxRange"
def handler(fit, module, context):
if "gang" not in context: return
groups = ("Target Painter", "Weapon Disruptor", "Remote Sensor Damper", "ECM", "ECM Burst")
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
"maxRange", module.getModifiedItemAttr("commandBonus"),
stackingPenalties = True)