From 80dab631193afcdcf09c2cdb13977d7dd3dda909 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sat, 14 May 2016 22:26:07 -0400 Subject: [PATCH] Add missing effect for remote ancil reppers --- .../modulebonusancillaryremotearmorrepairer.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 eos/effects/modulebonusancillaryremotearmorrepairer.py diff --git a/eos/effects/modulebonusancillaryremotearmorrepairer.py b/eos/effects/modulebonusancillaryremotearmorrepairer.py new file mode 100644 index 0000000000..beed285c09 --- /dev/null +++ b/eos/effects/modulebonusancillaryremotearmorrepairer.py @@ -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) \ No newline at end of file