Satchels can now be emptied by using on a banker npc

This is to address some banks (like zanaris) not having a bank booth
This commit is contained in:
randy 2025-04-01 11:55:26 -06:00
parent 54055e36d0
commit 415aa512fb

View file

@ -18,6 +18,7 @@ import core.game.component.Component
import core.game.component.CloseEvent
import core.game.container.access.InterfaceContainer
import content.global.handlers.scenery.BankBoothListener
import content.global.handlers.npc.BankerNPC
/**
* Listener for satchels from Creature Creation, repurposed for Snowscape
@ -175,5 +176,13 @@ class SnowscapeSatchelListener : InteractionListener {
return@onUseWith true
}
//6362 is the Ourania Altar banker.
val bankers = intArrayOf(*BankerNPC.NPC_IDS, *BankerNPC.SPECIAL_NPC_IDS, 6362)
onUseWith(IntType.NPC, satchelIds, *bankers) { player, used, with ->
emptySatchel(player, used.asItem().getId(), true)
return@onUseWith true
}
}
}