Files
pyfa/eos/effects/effect6406.py
2019-03-16 14:08:20 -04:00

23 lines
1.0 KiB
Python

# structureRigEWMaxRangeFalloff
#
# Used by:
# Structure Modules from group: Structure Combat Rig M - EW projection (2 of 2)
# Structure Modules named like: Standup Set EW (4 of 4)
type = "passive"
def handler(fit, src, context):
groups = ("Structure ECM Battery", "Structure Disruption Battery")
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
"falloff", src.getModifiedItemAttr("structureRigEwarFalloffBonus"),
stackingPenalties=True)
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
"maxRange", src.getModifiedItemAttr("structureRigEwarOptimalBonus"),
stackingPenalties=True)
fit.modules.filteredItemBoost(lambda mod: mod.item.group.name in groups,
"falloffEffectiveness", src.getModifiedItemAttr("structureRigEwarFalloffBonus"),
stackingPenalties=True)