Add missing effect for remote ancil reppers

This commit is contained in:
blitzmann
2016-05-14 22:26:07 -04:00
parent 8c769f152b
commit 80dab63119

View File

@@ -0,0 +1,11 @@
runTime = "late"
type = "projected", "active"
def handler(fit, module, context):
if "projected" not in context: return
if module.charge and module.charge.name == "Nanite Repair Paste":
module.multiplyItemAttr("armorDamageAmount", 3)
amount = module.getModifiedItemAttr("armorDamageAmount")
speed = module.getModifiedItemAttr("duration") / 1000.0
fit.extraAttributes.increase("armorRepair", amount / speed)