mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-21 22:52:15 +13:00
Add subdirectories to engine/ similar to pokecrystal
This commit is contained in:
parent
5559d51c86
commit
f275790aec
124 changed files with 342 additions and 346 deletions
48
engine/events/elevator.asm
Executable file
48
engine/events/elevator.asm
Executable file
|
|
@ -0,0 +1,48 @@
|
|||
DisplayElevatorFloorMenu:
|
||||
ld hl, WhichFloorText
|
||||
call PrintText
|
||||
ld hl, wItemList
|
||||
ld a, l
|
||||
ld [wListPointer], a
|
||||
ld a, h
|
||||
ld [wListPointer + 1], a
|
||||
ld a, [wListScrollOffset]
|
||||
push af
|
||||
xor a
|
||||
ld [wCurrentMenuItem], a
|
||||
ld [wListScrollOffset], a
|
||||
ld [wPrintItemPrices], a
|
||||
ld a, SPECIALLISTMENU
|
||||
ld [wListMenuID], a
|
||||
call DisplayListMenuID
|
||||
pop bc
|
||||
ld a, b
|
||||
ld [wListScrollOffset], a
|
||||
ret c
|
||||
ld hl, wCurrentMapScriptFlags
|
||||
set 7, [hl]
|
||||
ld hl, wElevatorWarpMaps
|
||||
ld a, [wWhichPokemon]
|
||||
add a
|
||||
ld d, 0
|
||||
ld e, a
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld b, a
|
||||
ld a, [hl]
|
||||
ld c, a
|
||||
ld hl, wWarpEntries
|
||||
call .UpdateWarp
|
||||
|
||||
.UpdateWarp
|
||||
inc hl
|
||||
inc hl
|
||||
ld a, b
|
||||
ld [hli], a ; destination warp ID
|
||||
ld a, c
|
||||
ld [hli], a ; destination map ID
|
||||
ret
|
||||
|
||||
WhichFloorText:
|
||||
TX_FAR _WhichFloorText
|
||||
db "@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue