From c3d7a4e3dee97c79499b408b34f64e4ef6c86357 Mon Sep 17 00:00:00 2001 From: GJ Date: Mon, 2 Jul 2012 19:56:48 -0400 Subject: [PATCH] Fixed "lucky" perk making downgrades from repair more likely. --- src/main/java/com/gmail/nossr50/skills/repair/Repair.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/repair/Repair.java b/src/main/java/com/gmail/nossr50/skills/repair/Repair.java index 6cb640318..2c4d9922a 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/Repair.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/Repair.java @@ -114,7 +114,7 @@ public class Repair { int enchantLevel = enchant.getValue(); if (configInstance.getArcaneForgingDowngradeEnabled() && enchantLevel > 1) { - if (random.nextInt(randomChance) <= getDowngradeChance(rank)) { + if (random.nextInt(100) <= getDowngradeChance(rank)) { is.addEnchantment(enchantment, --enchantLevel); downgraded = true; }