Inner Peace added to /fishing

This commit is contained in:
nossr50
2019-04-10 05:54:19 -07:00
parent 9c1f38ce6d
commit 21e1d54ad5
3 changed files with 25 additions and 23 deletions

View File

@@ -210,7 +210,7 @@ public class FishingManager extends SkillManager {
return AdvancedConfig.getInstance().getShakeChance(getLootTier());
}
protected int getVanillaXPBoostModifier() {
public int getInnerPeaceMultiplier() {
return mcMMO.getConfigManager().getConfigFishing().getVanillaXPMultInnerPeace(RankUtils.getRank(getPlayer(), SubSkillType.FISHING_INNER_PEACE));
}
@@ -345,8 +345,8 @@ public class FishingManager extends SkillManager {
*
* @return the modified event damage
*/
public int handleVanillaXpBoost(int experience) {
return experience * getVanillaXpMultiplier();
public int addInnerPeaceVanillaXPBoost(int experience) {
return experience * getInnerPeaceMultiplier();
}
public Location getHookLocation() {
@@ -594,13 +594,4 @@ public class FishingManager extends SkillManager {
Fishing.getInstance().getEnchantableCache().put(dropType, possibleEnchantments);
return possibleEnchantments;
}
/**
* Gets the vanilla XP multiplier
*
* @return the vanilla XP multiplier
*/
private int getVanillaXpMultiplier() {
return getVanillaXPBoostModifier();
}
}