store book in poh

This commit is contained in:
Aidan Schieuer 2026-04-19 11:40:30 -05:00 committed by aidan
parent ac074d0aa7
commit 74bc12749c
2 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,7 @@
package content.region.kandarin.seers.quest.elementalworkshop
import content.global.handlers.iface.BookInterface
import core.api.storeBookInHouse
import core.game.interaction.IntType
import core.game.interaction.InteractionListener
import core.game.node.entity.player.Player
@ -25,6 +26,7 @@ class SlashedBookHandler : InteractionListener {
override fun defineListeners() {
on(Items.SLASHED_BOOK_9715, IntType.ITEM, "read") { player, _ ->
BookInterface.openBook(player, BookInterface.FANCY_BOOK_3_49, ::display)
storeBookInHouse(player, Items.BATTERED_BOOK_2886)
return@on true
}
}

View file

@ -201,7 +201,7 @@ class BeatenBook : InteractionListener {
}
override fun defineListeners() {
on(Items.BEATEN_BOOK_9717, IntType.ITEM, "read") { player, _ ->
on(Items.BEATEN_BOOK_9717, IntType.ITEM, "read") { player, node ->
// the first time you open the book, the scroll will drop.
if (getQuestStage(player, Quests.ELEMENTAL_WORKSHOP_II) == 1) {
addItemOrDrop(player, Items.SCROLL_9721)
@ -215,9 +215,9 @@ class BeatenBook : InteractionListener {
setQuestStage(player, Quests.ELEMENTAL_WORKSHOP_II, 2)
setVarbit(player, EW2StageVarbit, 2, true)
// storeBookInHouse(player, node) // todo uncomment this when poh costume room is in
storeBookInHouse(player, node)
} else {
// storeBookInHouse(player, node) // todo uncomment this when poh costume room is in
storeBookInHouse(player, node)
BookInterface.openBook(player, BookInterface.FANCY_BOOK_3_49, ::display)
}
return@on true