mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00
16 lines
217 B
NASM
Executable file
16 lines
217 B
NASM
Executable file
RemoveGuardDrink::
|
|
ld hl, GuardDrinksList
|
|
.drinkLoop
|
|
ld a, [hli]
|
|
ld [$ffdb], a
|
|
and a
|
|
ret z
|
|
push hl
|
|
ld b, a
|
|
call IsItemInBag
|
|
pop hl
|
|
jr z, .drinkLoop
|
|
jpba RemoveItemByID
|
|
|
|
INCLUDE "data/guard_drink_items.asm"
|