Files
pyfa/eos/effects/remotehullrepair.py
2014-03-15 17:33:45 +04:00

11 lines
429 B
Python
Executable File

# Used by:
# Modules from group: Remote Hull Repairer (7 of 7)
# Drones named like: Hull Maintenance Bot (6 of 6)
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)