7 lines
302 B
Python
7 lines
302 B
Python
runTime = "late"
|
|
type = "projected", "active"
|
|
def handler(fit, module, context):
|
|
if "projected" not in context: return
|
|
amount = module.getModifiedItemAttr("shieldBonus")
|
|
speed = module.getModifiedItemAttr("duration") / 1000.0
|
|
fit.extraAttributes.increase("shieldRepair", amount / speed) |