mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-17 00:15:11 -06:00
whoopsie doopsie
This commit is contained in:
parent
69888a00d7
commit
c9da5af1c3
1 changed files with 7 additions and 1 deletions
|
|
@ -26,8 +26,9 @@ import rs09.game.world.GameWorld
|
|||
*/
|
||||
class AbyssPlugin : InteractionListener() {
|
||||
|
||||
val OBSTACLE = AbbysalObstacle.values().filter { it != AbbysalObstacle.MINE }.map { it.option }.toTypedArray()
|
||||
val OBSTACLE = AbbysalObstacle.values().filter { it != AbbysalObstacle.MINE && it != AbbysalObstacle.SQUEEZE }.map { it.option }.toTypedArray()
|
||||
val miningObstacle = 7158
|
||||
val agilityObstacle = 7164
|
||||
|
||||
override fun defineListeners() {
|
||||
definePlugin(AbyssalNPC())
|
||||
|
|
@ -56,6 +57,11 @@ class AbyssPlugin : InteractionListener() {
|
|||
obstacle!!.handle(player, node as Scenery)
|
||||
return@on true
|
||||
}
|
||||
on(agilityObstacle, SCENERY, "squeeze-through"){ player, node ->
|
||||
val obstacle = AbbysalObstacle.forObject(node as Scenery)
|
||||
obstacle!!.handle(player, node as Scenery)
|
||||
return@on true
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue