Implemented POH bookshelf, fancy dress box, armour case, magic wardrobe, treasure chests, cape rack, and toy box
Implemented ::ifaces commmand Implemented ::pohstorableitems command to fetch all storable items Implemented storing books in house POH now included in item checks
This commit is contained in:
@@ -5,6 +5,7 @@ import content.global.handlers.iface.BookLine
|
||||
import content.global.handlers.iface.Page
|
||||
import content.global.handlers.iface.PageSet
|
||||
import core.api.setAttribute
|
||||
import core.api.storeBookInHouse
|
||||
import core.game.interaction.IntType
|
||||
import core.game.interaction.InteractionListener
|
||||
import core.game.node.entity.player.Player
|
||||
@@ -126,8 +127,9 @@ class SecurityBookPlugin : InteractionListener {
|
||||
}
|
||||
|
||||
override fun defineListeners() {
|
||||
on(Items.SECURITY_BOOK_9003, IntType.ITEM, "read") { player, _ ->
|
||||
on(Items.SECURITY_BOOK_9003, IntType.ITEM, "read") { player, node ->
|
||||
BookInterface.openBook(player, BookInterface.FANCY_BOOK_2_27, ::display)
|
||||
storeBookInHouse(player, node)
|
||||
return@on true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user