Files
pyfa/eos/effects/structurerepair.py

10 lines
336 B
Python

# structureRepair
#
# 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)