mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-22 23:22:26 +13:00
Pull a lot of engine out of main.asm
This commit is contained in:
parent
ea3ba4cde3
commit
15427f5320
110 changed files with 39093 additions and 38990 deletions
18
engine/overworld/saffron_guards.asm
Executable file
18
engine/overworld/saffron_guards.asm
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
RemoveGuardDrink: ; 5a59f (16:659f)
|
||||
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
|
||||
ld b, BANK(RemoveItemByID)
|
||||
ld hl, RemoveItemByID
|
||||
jp Bankswitch
|
||||
|
||||
GuardDrinksList: ; 5a5b7 (16:65b7)
|
||||
db FRESH_WATER, SODA_POP, LEMONADE, $00
|
||||
Loading…
Add table
Add a link
Reference in a new issue