Files
pyfa/eos/effects/shieldtransfer.py
DarkPhoenix fd36a0b172 Replace submodules with actual files
Submodules never were actually useful
2013-06-10 22:12:34 +04:00

11 lines
460 B
Python
Executable File

# Used by:
# Modules from group: Shield Transporter (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)