Files
pyfa/eos/effects/gunnerymaxrangefallofftrackingspeedbonus.py

10 lines
454 B
Python

# gunneryMaxRangeFalloffTrackingSpeedBonus
#
# Used by:
# Modules from group: Tracking Computer (14 of 14)
type = "active"
def handler(fit, module, context):
for attr in ("maxRange", "falloff", "trackingSpeed"):
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gunnery"),
attr, module.getModifiedItemAttr("%sBonus" % attr),
stackingPenalties = True)