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