mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-02 04:25:26 +02:00
Inner Peace added to /fishing
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user