mirror of
https://github.com/pret/pokered.git
synced 2024-10-23 15:08:23 +00:00
6ef36800b0
To do: turn constants into labels and use ldh
15 lines
233 B
NASM
Executable file
15 lines
233 B
NASM
Executable file
RemoveGuardDrink::
|
|
ld hl, GuardDrinksList
|
|
.drinkLoop
|
|
ld a, [hli]
|
|
ld [hItemToRemoveID], a
|
|
and a
|
|
ret z
|
|
push hl
|
|
ld b, a
|
|
call IsItemInBag
|
|
pop hl
|
|
jr z, .drinkLoop
|
|
jpba RemoveItemByID
|
|
|
|
INCLUDE "data/items/guard_drink_items.asm"
|