shithub: pokered

ref: 72a0e98c9393b0fdbe5bf209eac6591dddd9cfc5
dir: /engine/events/saffron_guards.asm/

View raw version
RemoveGuardDrink::
	ld hl, GuardDrinksList
.drinkLoop
	ld a, [hli]
	ldh [hItemToRemoveID], a
	and a
	ret z
	push hl
	ld b, a
	call IsItemInBag
	pop hl
	jr z, .drinkLoop
	farjp RemoveItemByID

INCLUDE "data/items/guard_drink_items.asm"