Files
pyfa/eos/effects/remotehullrepair.py
2016-12-15 12:43:19 -08:00

11 lines
340 B
Python

# Not used by any item
type = "projected", "active"
runTime = "late"
def handler(fit, module, context):
if "projected" not in context: return
bonus = module.getModifiedItemAttr("structureDamageAmount")
duration = module.getModifiedItemAttr("duration") / 1000.0
fit.extraAttributes.increase("hullRepair", bonus / duration)