mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Made the shake rank chance configurable
This commit is contained in:
parent
f5f07f7016
commit
00364afd8f
@ -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); }
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user