Files
pyfa/eos/effects/shipmodesetoptimalrangepostdiv.py
2015-02-15 14:27:32 +03:00

14 lines
393 B
Python

# shipModeSETOptimalRangePostDiv
#
# Used by:
# Module: Confessor Sharpshooter Mode
type = "passive"
def handler(fit, module, context):
fit.modules.filteredItemMultiply(
lambda mod: mod.item.requiresSkill("Small Energy Turret"),
"maxRange",
1 / module.getModifiedItemAttr("modeMaxRangePostDiv"),
stackingPenalties=True,
penaltyGroup="postDiv"
)