Files
pyfa/eos/effects/targetarmorrepair.py
2015-12-07 20:10:44 -05:00

12 lines
442 B
Python

# targetArmorRepair
#
# Used by:
# Drones named like: Armor Maintenance Bot (6 of 6)
# Module: QA Remote Armor Repair System - 5 Players
type = "projected", "active"
def handler(fit, container, context):
if "projected" in context:
bonus = container.getModifiedItemAttr("armorDamageAmount")
duration = container.getModifiedItemAttr("duration") / 1000.0
fit.extraAttributes.increase("armorRepair", bonus / duration)