Files
pyfa/eos/effects/armorrepair.py
2016-04-06 00:12:44 -04:00

10 lines
332 B
Python

# armorRepair
#
# Used by:
# Modules from group: Armor Repair Unit (105 of 105)
runTime = "late"
type = "active"
def handler(fit, module, context):
amount = module.getModifiedItemAttr("armorDamageAmount")
speed = module.getModifiedItemAttr("duration") / 1000.0
fit.extraAttributes.increase("armorRepair", amount / speed)