Files
pyfa/eos/effects/shipmoduleremotehullrepairer.py
2017-06-27 21:03:16 -04:00

15 lines
421 B
Python

# shipModuleRemoteHullRepairer
#
# Used by:
# Modules from group: Remote Hull Repairer (8 of 8)
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)