Made the swaying tree authentically work exactly the same as the dramen tree
This commit is contained in:
@@ -50,7 +50,7 @@ class WoodcuttingListener : InteractionListener {
|
|||||||
defineInteraction(
|
defineInteraction(
|
||||||
IntType.SCENERY,
|
IntType.SCENERY,
|
||||||
ids = WoodcuttingNode.values().map { it.id }.toIntArray(),
|
ids = WoodcuttingNode.values().map { it.id }.toIntArray(),
|
||||||
"chop-down", "chop", "chop down", "cut down",
|
"chop-down", "chop", "chop down", "cut down", "cut-branch",
|
||||||
persistent = true,
|
persistent = true,
|
||||||
allowedDistance = 1,
|
allowedDistance = 1,
|
||||||
handler = ::handleWoodcutting
|
handler = ::handleWoodcutting
|
||||||
@@ -74,10 +74,10 @@ class WoodcuttingListener : InteractionListener {
|
|||||||
if (clockReady(player, Clocks.SKILLING)) {
|
if (clockReady(player, Clocks.SKILLING)) {
|
||||||
animateWoodcutting(player)
|
animateWoodcutting(player)
|
||||||
|
|
||||||
if (resource == WoodcuttingNode.DRAMEN_TREE) {
|
if (resource in arrayOf(WoodcuttingNode.DRAMEN_TREE, WoodcuttingNode.SWAYING_TREE)) {
|
||||||
// Reward after one chop and then abort chopping (this is authentic)
|
// Reward after one chop and then abort chopping (this is authentic)
|
||||||
queueScript(player, 1, QueueStrength.STRONG) {
|
queueScript(player, 1, QueueStrength.STRONG) {
|
||||||
sendMessage(player, "You cut a branch from the Dramen tree.")
|
sendMessage(player, "You cut a branch from the ${if (resource == WoodcuttingNode.DRAMEN_TREE) "Dramen" else "strangely musical"} tree.")
|
||||||
addItem(player, resource.getReward())
|
addItem(player, resource.getReward())
|
||||||
return@queueScript clearScripts(player)
|
return@queueScript clearScripts(player)
|
||||||
}
|
}
|
||||||
|
|||||||
-5
@@ -260,11 +260,6 @@ class TFTInteractionListeners : InteractionListener {
|
|||||||
return@on true
|
return@on true
|
||||||
}
|
}
|
||||||
|
|
||||||
on(SWAYING_TREE, IntType.SCENERY, "cut-branch"){ player, node ->
|
|
||||||
player.pulseManager.run(WoodcuttingSkillPulse(player, node as Scenery))
|
|
||||||
return@on true
|
|
||||||
}
|
|
||||||
|
|
||||||
on(SHOPNPCS, IntType.NPC, "Trade") { player, npc ->
|
on(SHOPNPCS, IntType.NPC, "Trade") { player, npc ->
|
||||||
if(isQuestComplete(player, Quests.THE_FREMENNIK_TRIALS)){
|
if(isQuestComplete(player, Quests.THE_FREMENNIK_TRIALS)){
|
||||||
npc.asNpc().openShop(player)
|
npc.asNpc().openShop(player)
|
||||||
|
|||||||
Reference in New Issue
Block a user