shithub: pokered

ref: 5e1865a7b160696de4f82f7d172c038f3b4726e0
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"