mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed bug that could result in players losing Christmas event rewards if their inventory is full
This commit is contained in:
parent
12daa614bb
commit
4fc5e088ad
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ class SantaHolidayRandomDialogue : DialogueFile() {
|
|||
30 -> npcl(FacialExpression.HAPPY, "Since you have been a good ${if (player!!.isMale) "boy" else "girl"} this year, you get a gift. Merry Christmas, ${player!!.username}!").also { stage = 31 }
|
||||
31 -> {
|
||||
val loot = Giftmas.MBOX_LOOT.roll().first()
|
||||
addItem(player!!, loot.id, loot.amount)
|
||||
addItemOrDrop(player!!, loot.id, loot.amount)
|
||||
HolidayRandoms.terminateEventNpc(player!!)
|
||||
end()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue