فهرست منبع

Increase TreasureHunter chances for Luck enchantment

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.
TfT_02 11 سال پیش
والد
کامیت
225de799e8
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java

+ 2 - 0
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()) {