14 lines
507 B
Python
14 lines
507 B
Python
# Not used by any item
|
|
from eos.types import State
|
|
|
|
type = "active", "projected"
|
|
|
|
|
|
def handler(fit, src, context):
|
|
if "projected" in context and (
|
|
(hasattr(src, "state") and src.state >= State.ACTIVE) or hasattr(src, "amountActive")):
|
|
multiplier = src.amountActive if hasattr(src, "amountActive") else 1
|
|
amount = src.getModifiedItemAttr("energyNeutralizerAmount")
|
|
time = src.getModifiedItemAttr("duration")
|
|
fit.addDrain(src, time, amount * multiplier, 0)
|