Files
pyfa/eos/effects/shieldtransfer.py
2014-07-30 21:23:27 -04:00

11 lines
463 B
Python

# Used by:
# Modules from group: Remote Shield Booster (39 of 39)
# Drones named like: Shield Maintenance Bot (6 of 6)
# Module: QA Shield Transporter - 5 Players
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)