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

16 lines
606 B
Python

# boosterModifyBoosterMaxVelocityAndCapacitorPenalty
#
# Used by:
# Implants named like: Eifyr and Co. 'Alchemist' Neurotoxin Control NC (2 of 2)
# Implants named like: grade Edge (10 of 12)
# Skill: Neurotoxin Control
type = "passive"
def handler(fit, container, context):
level = container.level if "skill" in context else 1
attrs = ("boosterCapacitorCapacityPenalty", "boosterMaxVelocityPenalty")
for attr in attrs:
fit.boosters.filteredItemBoost(lambda booster: True, attr,
container.getModifiedItemAttr("boosterAttributeModifier") * level)