Files
pyfa/eos/effects/targetarmorrepair.py
2014-01-22 23:51:42 +04:00

11 lines
459 B
Python
Executable File

# Used by:
# Modules from group: Remote Armor Repairer (38 of 38)
# Drones named like: Armor (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)