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

14 lines
531 B
Python

# sharpshooterRangeSkillBonusPostPercentMaxRangeLocationShipModulesRequiringGunnery
#
# Used by:
# Implants named like: Frentix Booster (4 of 4)
# Implants named like: Zainou 'Deadeye' Sharpshooter ST (6 of 6)
# Skill: Sharpshooter
type = "passive"
def handler(fit, container, context):
level = container.level if "skill" in context else 1
fit.modules.filteredItemBoost(lambda mod: mod.item.requiresSkill("Gunnery"),
"maxRange", container.getModifiedItemAttr("rangeSkillBonus") * level)