Files
pyfa/eos/effects/remoteshieldtransferfalloff.py
2016-04-29 22:59:09 -04:00

12 lines
451 B
Python

# remoteShieldTransferFalloff
#
# Used by:
# Modules from group: Remote Shield Booster (38 of 38)
# Drones named like: Shield Maintenance Bot (6 of 6)
type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
bonus = container.getModifiedItemAttr("shieldBonus")
duration = container.getModifiedItemAttr("duration") / 1000.0
fit.extraAttributes.increase("shieldRepair", bonus / duration)