From b26c43d8e32fa76cd1ff5fe9c2820b3e132cea45 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Wed, 8 Jan 2014 00:08:37 +0100 Subject: [PATCH] Increase TreasureHunter chances for Luck enchantment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the player is using a fishing rod with the ”Luck of the Sea” enchantment, the drop chances will increase with 1% for each level of the enchantment. --- .../java/com/gmail/nossr50/skills/fishing/FishingManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java index 78e765d30..9aad1e86f 100644 --- a/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java @@ -445,6 +445,8 @@ public class FishingManager extends SkillManager { */ private FishingTreasure getFishingTreasure() { double diceRoll = Misc.getRandom().nextDouble() * 100; + diceRoll -= getPlayer().getItemInHand().getEnchantmentLevel(Enchantment.LUCK); + FishingTreasure treasure = null; for (Rarity rarity : Rarity.values()) {