Files
pyfa/eos/effects/structureenergyneutralizerfalloff.py
Stefan Dresselhaus eccf405ba8 fixed parameters in call when adding neuts to structures.
(cherry picked from commit 4f77dff)
2016-12-14 12:22:28 -08:00

14 lines
485 B
Python

# Not used by any item
from eos.types import State
type = "active", "projected"
def handler(fit, container, context):
amount = 0
if "projected" in context and ((hasattr(container, "state")
and container.state >= State.ACTIVE) or hasattr(container, "amountActive")):
amount = container.getModifiedItemAttr("energyNeutralizerAmount")
time = container.getModifiedItemAttr("duration")
fit.addDrain(container, time, amount, 0)