Files
pyfa/eos/effects/fighterabilityevasivemaneuvers.py
blitzman 7fbd89392a Revert "Remove effect files that are not used by any item"
This reverts commit b29fa2467a.

(cherry picked from commit 4a95156)
2016-12-14 12:14:39 -08:00

38 lines
1.8 KiB
Python

# Not used by any item
"""
Since fighter abilities do not have any sort of item entity in the EVE database, we must derive the abilities from the
effects, and thus this effect file contains some custom information useful only to fighters.
"""
# User-friendly name for the ability
displayName = "Evasive Maneuvers"
prefix = "fighterAbilityEvasiveManeuvers"
# Is ability applied to the fighter squad as a whole, or per fighter?
grouped = True
type = "active"
runTime = "late"
def handler(fit, container, context):
container.boostItemAttr("maxVelocity",
container.getModifiedItemAttr("fighterAbilityEvasiveManeuversSpeedBonus"))
container.boostItemAttr("signatureRadius",
container.getModifiedItemAttr("fighterAbilityEvasiveManeuversSignatureRadiusBonus"),
stackingPenalties=True)
# These may not have stacking penalties, but there's nothing else that affects the attributes yet to check.
container.multiplyItemAttr("shieldEmDamageResonance",
container.getModifiedItemAttr("fighterAbilityEvasiveManeuversEmResonance"),
stackingPenalties=True)
container.multiplyItemAttr("shieldThermalDamageResonance",
container.getModifiedItemAttr("fighterAbilityEvasiveManeuversThermResonance"),
stackingPenalties=True)
container.multiplyItemAttr("shieldKineticDamageResonance",
container.getModifiedItemAttr("fighterAbilityEvasiveManeuversKinResonance"),
stackingPenalties=True)
container.multiplyItemAttr("shieldExplosiveDamageResonance",
container.getModifiedItemAttr("fighterAbilityEvasiveManeuversExpResonance"),
stackingPenalties=True)