Authenticity improvements for the dramen tree

The dramen tree now has the highest possible chop speed
Chopping the dramen tree now aborts once the branch has been obtained
The tree spirit no longer uses the rare seed drop table, instead drops nothing
The tree spirit can now be attacked by other players
This commit is contained in:
Player Name 2023-12-13 12:09:57 +00:00 committed by Ryan
parent 25e9104375
commit 0cad82029d
4 changed files with 7 additions and 10 deletions

View file

@ -11523,7 +11523,7 @@
{
"default": [],
"charm": [],
"ids": "438,439,440,441,442,443,655,4470",
"ids": "438,439,440,441,442,443,4470",
"description": "Tree Spirit (Hostile Woodcutting Random Event/Enchanted Valley)",
"main": [
{

View file

@ -320,6 +320,10 @@ public enum WoodcuttingNode {
experience = 25.0;
level = 36;
rewardAmount = Integer.MAX_VALUE;
baseLow = 255;
baseHigh = 255;
tierModLow = 0;
tierModHigh = 0;
break;
case 30:
reward = 3692;

View file

@ -164,9 +164,10 @@ public class WoodcuttingSkillPulse extends Pulse {
player.getSkills().addExperience(Skills.WOODCUTTING, experience, true);
//send the message for the resource reward
//send the message for the resource reward, and in the case of the dramen tree, authentically abort the chopping action
if (resource == WoodcuttingNode.DRAMEN_TREE) {
player.getPacketDispatch().sendMessage("You cut a branch from the Dramen tree.");
stop();
} else {
player.getPacketDispatch().sendMessage("You get some " + ItemDefinition.forId(reward).getName().toLowerCase() + ".");
}

View file

@ -54,12 +54,4 @@ class TreeSpiritNPC(id: Int = 0, location: Location? = null) : AbstractNPC(id, l
}
}
}
override fun isAttackable(entity: Entity, style: CombatStyle, message: Boolean): Boolean {
if(entity != target) {
return false
}
return super.isAttackable(entity, style, message)
}
}