From 01b7d4f742fffab790c1da56cee0bccd785b3430 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Fri, 14 Mar 2014 15:08:09 +0100 Subject: [PATCH] Repair lucky perk should decrease the Arcane Forging downgrade chance, instead of increasing it. --- Changelog.txt | 1 + .../java/com/gmail/nossr50/skills/repair/RepairManager.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index aca86de46..6752d69d2 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -43,6 +43,7 @@ Version 1.4.08-dev = Fixed bug where Hylian Luck was broken = Fixed bug where Snow would never drop treasures = Fixed issues with commands giving away vanished players. + = Fixed bug where the Repair lucky perk would increase the Arcane Forging downgrade chance, instead of decreasing it ! Changed party system. Parties now have XP and Levels. Party features such as party teleport and party chat have to be unlocked before they can be used by the party members ! Changed appearance of party member list. Gold = party leader, White = online, Gray = offline, Italic = not nearby ! Updated localization files diff --git a/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java b/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java index c20accb1a..ace7d3c80 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java @@ -340,7 +340,7 @@ public class RepairManager extends SkillManager { if (getKeepEnchantChance() > Misc.getRandom().nextInt(activationChance)) { int enchantLevel = enchant.getValue(); - if (ArcaneForging.arcaneForgingDowngrades && enchantLevel > 1 && getDowngradeEnchantChance() > Misc.getRandom().nextInt(activationChance)) { + if (ArcaneForging.arcaneForgingDowngrades && enchantLevel > 1 && Misc.getRandom().nextInt(activationChance) <= getDowngradeEnchantChance()) { item.addUnsafeEnchantment(enchantment, enchantLevel - 1); downgraded = true; }