mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
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:
parent
25e9104375
commit
0cad82029d
4 changed files with 7 additions and 10 deletions
|
|
@ -11523,7 +11523,7 @@
|
||||||
{
|
{
|
||||||
"default": [],
|
"default": [],
|
||||||
"charm": [],
|
"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)",
|
"description": "Tree Spirit (Hostile Woodcutting Random Event/Enchanted Valley)",
|
||||||
"main": [
|
"main": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -320,6 +320,10 @@ public enum WoodcuttingNode {
|
||||||
experience = 25.0;
|
experience = 25.0;
|
||||||
level = 36;
|
level = 36;
|
||||||
rewardAmount = Integer.MAX_VALUE;
|
rewardAmount = Integer.MAX_VALUE;
|
||||||
|
baseLow = 255;
|
||||||
|
baseHigh = 255;
|
||||||
|
tierModLow = 0;
|
||||||
|
tierModHigh = 0;
|
||||||
break;
|
break;
|
||||||
case 30:
|
case 30:
|
||||||
reward = 3692;
|
reward = 3692;
|
||||||
|
|
|
||||||
|
|
@ -164,9 +164,10 @@ public class WoodcuttingSkillPulse extends Pulse {
|
||||||
|
|
||||||
player.getSkills().addExperience(Skills.WOODCUTTING, experience, true);
|
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) {
|
if (resource == WoodcuttingNode.DRAMEN_TREE) {
|
||||||
player.getPacketDispatch().sendMessage("You cut a branch from the Dramen tree.");
|
player.getPacketDispatch().sendMessage("You cut a branch from the Dramen tree.");
|
||||||
|
stop();
|
||||||
} else {
|
} else {
|
||||||
player.getPacketDispatch().sendMessage("You get some " + ItemDefinition.forId(reward).getName().toLowerCase() + ".");
|
player.getPacketDispatch().sendMessage("You get some " + ItemDefinition.forId(reward).getName().toLowerCase() + ".");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue