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

8 lines
316 B
Python

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