summaryrefslogtreecommitdiff
path: root/engine/predefs7.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2020-11-04 00:06:44 -0600
committerdannye <33dannye@gmail.com>2020-11-04 00:06:44 -0600
commit5647ca687b92954dcf37a6ea6bfbc9a341c32de4 (patch)
treedde1937a1bfdb3a835f4155e1c2eb8f1aaf86f63 /engine/predefs7.asm
parent53fcd05aa24693093d8af1dc8ec4fedd3957decc (diff)
Sync with pokered
Diffstat (limited to 'engine/predefs7.asm')
-rwxr-xr-xengine/predefs7.asm54
1 files changed, 0 insertions, 54 deletions
diff --git a/engine/predefs7.asm b/engine/predefs7.asm
deleted file mode 100755
index bfa0ab57..00000000
--- a/engine/predefs7.asm
+++ /dev/null
@@ -1,54 +0,0 @@
-DisplayElevatorFloorMenu:
- ld hl, wd730
- ld a, [hl]
- push af
- set 6, [hl]
- ld hl, WhichFloorText
- call PrintText
- pop af
- ld [wd730], a
- 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 "@"