Made the shake rank chance configurable

This commit is contained in:
TfT_02 2012-11-07 14:02:30 +01:00
parent f5f07f7016
commit 00364afd8f
2 changed files with 12 additions and 5 deletions

View File

@ -153,6 +153,13 @@ public class Config extends ConfigLoader {
public int getFishingTierLevelsTier4() { return config.getInt("Fishing.Tier_Levels.Tier4", 600); } public int getFishingTierLevelsTier4() { return config.getInt("Fishing.Tier_Levels.Tier4", 600); }
public int getFishingTierLevelsTier5() { return config.getInt("Fishing.Tier_Levels.Tier5", 800); } 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 */ /* Herbalism */
public int getHerbalismXPSugarCane() { return config.getInt("Experience.Herbalism.Sugar_Cane", 30); } public int getHerbalismXPSugarCane() { return config.getInt("Experience.Herbalism.Sugar_Cane", 30); }
public int getHerbalismXPWheat() { return config.getInt("Experience.Herbalism.Wheat", 50); } public int getHerbalismXPWheat() { return config.getInt("Experience.Herbalism.Wheat", 50); }

View File

@ -214,23 +214,23 @@ public class Fishing {
switch (getFishingLootTier(profile)) { switch (getFishingLootTier(profile)) {
case 1: case 1:
dropChance = 10; dropChance = Config.getInstance().getShakeChanceRank1();
break; break;
case 2: case 2:
dropChance = 30; dropChance = Config.getInstance().getShakeChanceRank2();
break; break;
case 3: case 3:
dropChance = 50; dropChance = Config.getInstance().getShakeChanceRank3();
break; break;
case 4: case 4:
dropChance = 60; dropChance = Config.getInstance().getShakeChanceRank4();
break; break;
case 5: case 5:
dropChance = 75; dropChance = Config.getInstance().getShakeChanceRank5();
break; break;
default: default: