From 7406210c4a31e05a009df9ac7b73d7744b1cfb2a Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 22 May 2016 01:38:40 -0400 Subject: [PATCH] Fix remote AAR --- eos/effects/fueledarmorrepair.py | 6 ++++-- eos/effects/modulebonusancillaryremotearmorrepairer.py | 10 ++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/eos/effects/fueledarmorrepair.py b/eos/effects/fueledarmorrepair.py index 0077e287d..91f1ffc65 100644 --- a/eos/effects/fueledarmorrepair.py +++ b/eos/effects/fueledarmorrepair.py @@ -6,8 +6,10 @@ runTime = "late" type = "active" def handler(fit, module, context): if module.charge and module.charge.name == "Nanite Repair Paste": - module.multiplyItemAttr("armorDamageAmount", 3) + multiplier = 3 + else: + multiplier = 1 - amount = module.getModifiedItemAttr("armorDamageAmount") + amount = module.getModifiedItemAttr("armorDamageAmount") * multiplier speed = module.getModifiedItemAttr("duration") / 1000.0 fit.extraAttributes.increase("armorRepair", amount / speed) diff --git a/eos/effects/modulebonusancillaryremotearmorrepairer.py b/eos/effects/modulebonusancillaryremotearmorrepairer.py index beed285c0..21a444a62 100644 --- a/eos/effects/modulebonusancillaryremotearmorrepairer.py +++ b/eos/effects/modulebonusancillaryremotearmorrepairer.py @@ -2,10 +2,12 @@ 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") + multiplier = 3 + else: + multiplier = 1 + + amount = module.getModifiedItemAttr("armorDamageAmount") * multiplier speed = module.getModifiedItemAttr("duration") / 1000.0 fit.extraAttributes.increase("armorRepair", amount / speed) \ No newline at end of file