1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-04-03 10:16:23 +02:00

Fixed "lucky" perk making downgrades from repair more likely.

This commit is contained in:
GJ 2012-07-02 19:56:48 -04:00
parent 92ae92c116
commit c3d7a4e3de

@ -114,7 +114,7 @@ public class Repair {
int enchantLevel = enchant.getValue(); int enchantLevel = enchant.getValue();
if (configInstance.getArcaneForgingDowngradeEnabled() && enchantLevel > 1) { if (configInstance.getArcaneForgingDowngradeEnabled() && enchantLevel > 1) {
if (random.nextInt(randomChance) <= getDowngradeChance(rank)) { if (random.nextInt(100) <= getDowngradeChance(rank)) {
is.addEnchantment(enchantment, --enchantLevel); is.addEnchantment(enchantment, --enchantLevel);
downgraded = true; downgraded = true;
} }