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

16 lines
678 B
Python

# missileSkillMissileProjectileVelocityBonus
#
# Used by:
# Implants named like: Zainou 'Deadeye' Missile Projection MP (6 of 6)
# Modules named like: Hydraulic Bay Thrusters (8 of 8)
# Skill: Missile Projection
type = "passive"
def handler(fit, container, context):
level = container.level if "skill" in context else 1
penalized = False if "skill" in context or "implant" in context else True
fit.modules.filteredChargeBoost(lambda mod: mod.charge.requiresSkill("Missile Launcher Operation"),
"maxVelocity", container.getModifiedItemAttr("speedFactor") * level,
stackingPenalties=penalized)