Falador medium achievement diary task for lighting bullseye lantern can now be obtained

This commit is contained in:
Swizey
2023-02-03 13:54:52 +00:00
committed by Ryan
parent c54f03d8cc
commit 406552fae4
5 changed files with 20 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@ object Event {
@JvmStatic val NPCKilled = NPCKillEvent::class.java
@JvmStatic val Teleported = TeleportEvent::class.java
@JvmStatic val FireLit = LitFireEvent::class.java
@JvmStatic val LightSourceLit = LitLightSourceEvent::class.java
@JvmStatic val Interacted = InteractionEvent::class.java
@JvmStatic val ButtonClicked = ButtonClickEvent::class.java
@JvmStatic val DialogueOpened = DialogueOpenEvent::class.java
@@ -51,6 +51,7 @@ abstract class DiaryEventHookBase(private val diaryType: DiaryType) : MapArea, L
player.hook(Event.NPCKilled, EventHandler(this, ::onNpcKilled))
player.hook(Event.Teleported, EventHandler(this, ::onTeleported))
player.hook(Event.FireLit, EventHandler(this, ::onFireLit))
player.hook(Event.LightSourceLit, EventHandler(this, ::onLightSourceLit))
player.hook(Event.Interacted, EventHandler(this, ::onInteracted))
player.hook(Event.ButtonClicked, EventHandler(this, ::onButtonClicked))
player.hook(Event.DialogueOpened, EventHandler(this, ::onDialogueOpened))
@@ -207,6 +208,7 @@ abstract class DiaryEventHookBase(private val diaryType: DiaryType) : MapArea, L
protected open fun onNpcKilled(player: Player, event: NPCKillEvent) {}
protected open fun onTeleported(player: Player, event: TeleportEvent) {}
protected open fun onFireLit(player: Player, event: LitFireEvent) {}
protected open fun onLightSourceLit(player: Player, event: LitLightSourceEvent) {}
protected open fun onInteracted(player: Player, event: InteractionEvent) {}
protected open fun onButtonClicked(player: Player, event: ButtonClickEvent) {}
protected open fun onDialogueOpened(player: Player, event: DialogueOpenEvent) {}
@@ -17,6 +17,7 @@ data class ResourceProducedEvent(val itemId: Int, val amount: Int, val source: N
data class NPCKillEvent(val npc: NPC) : Event
data class TeleportEvent(val type: TeleportType, val method: TeleportMethod, val source: Any, val location: Location) : Event
data class LitFireEvent(val logId: Int) : Event
data class LitLightSourceEvent(val litLightSourceId: Int) : Event
data class InteractionEvent(val target: Node, val option: String) : Event
data class ButtonClickEvent(val iface: Int, val buttonId: Int) : Event
data class DialogueOpenEvent(val dialogue: DialoguePlugin) : Event