diff --git a/src/main/java/com/gmail/nossr50/config/Config.java b/src/main/java/com/gmail/nossr50/config/Config.java index 8554d5f78..e33b52c66 100644 --- a/src/main/java/com/gmail/nossr50/config/Config.java +++ b/src/main/java/com/gmail/nossr50/config/Config.java @@ -152,6 +152,13 @@ public class Config extends ConfigLoader { public int getFishingTierLevelsTier3() { return config.getInt("Fishing.Tier_Levels.Tier3", 400); } public int getFishingTierLevelsTier4() { return config.getInt("Fishing.Tier_Levels.Tier4", 600); } public int getFishingTierLevelsTier5() { return config.getInt("Fishing.Tier_Levels.Tier5", 800); } + + /* Shake */ + public int getShakeChanceRank1() { return config.getInt("Shake.Chance.Rank_1", 25); } + public int getShakeChanceRank2() { return config.getInt("Shake.Chance.Rank_2", 40); } + public int getShakeChanceRank3() { return config.getInt("Shake.Chance.Rank_3", 55); } + public int getShakeChanceRank4() { return config.getInt("Shake.Chance.Rank_4", 60); } + public int getShakeChanceRank5() { return config.getInt("Shake.Chance.Rank_5", 75); } /* Herbalism */ public int getHerbalismXPSugarCane() { return config.getInt("Experience.Herbalism.Sugar_Cane", 30); } diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java b/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java index 8aeaa891a..028262a8f 100755 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/Fishing.java @@ -214,23 +214,23 @@ public class Fishing { switch (getFishingLootTier(profile)) { case 1: - dropChance = 10; + dropChance = Config.getInstance().getShakeChanceRank1(); break; case 2: - dropChance = 30; + dropChance = Config.getInstance().getShakeChanceRank2(); break; case 3: - dropChance = 50; + dropChance = Config.getInstance().getShakeChanceRank3(); break; case 4: - dropChance = 60; + dropChance = Config.getInstance().getShakeChanceRank4(); break; case 5: - dropChance = 75; + dropChance = Config.getInstance().getShakeChanceRank5(); break; default: