Less XP orbs during Tree Feller + Knock on Wood Rank 2

This commit is contained in:
nossr50 2021-01-25 15:06:39 -08:00
parent cf21a5a163
commit 85bf33fca0
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
Version 2.1.173 Version 2.1.173
The experience orbs dropped by Knock on Wood rank 2 during Tree Feller are now much less frequent but provide more XP
mcMMO no longer damages fishing rods or drains a player's hunger when fishing mcMMO no longer damages fishing rods or drains a player's hunger when fishing
Fixed a visual bug where players who had lucky perk were shown incorrect odds when using skill commands (such as /axes) Fixed a visual bug where players who had lucky perk were shown incorrect odds when using skill commands (such as /axes)
Updated ja_JP locale (thanks ViaSnake) Updated ja_JP locale (thanks ViaSnake)

View File

@ -308,8 +308,8 @@ public class WoodcuttingManager extends SkillManager {
if(RankUtils.hasReachedRank(2, player, SubSkillType.WOODCUTTING_KNOCK_ON_WOOD)) { if(RankUtils.hasReachedRank(2, player, SubSkillType.WOODCUTTING_KNOCK_ON_WOOD)) {
if(AdvancedConfig.getInstance().isKnockOnWoodXPOrbEnabled()) { if(AdvancedConfig.getInstance().isKnockOnWoodXPOrbEnabled()) {
if(RandomChanceUtil.rollDice(75, 100)) { if(RandomChanceUtil.rollDice(10, 100)) {
int randOrbCount = Math.max(1, Misc.getRandom().nextInt(20)); int randOrbCount = Math.max(1, Misc.getRandom().nextInt(100));
Misc.spawnExperienceOrb(blockState.getLocation(), randOrbCount); Misc.spawnExperienceOrb(blockState.getLocation(), randOrbCount);
} }
} }