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

8 lines
316 B
Python

# Used by:
# Modules from group: Armor Repair Unit (100 of 100)
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)