diff options
author | pikalaxalt <PikalaxALT@gmail.com> | 2016-06-11 20:37:15 -0400 |
---|---|---|
committer | pikalaxalt <PikalaxALT@gmail.com> | 2016-06-11 20:37:15 -0400 |
commit | f5983c0f813d3d908b6016db3ed866e4ca9437dc (patch) | |
tree | d6888723f443557ce45c9a00d873caa5e7a8930e /scripts/silphcoelevator.asm | |
parent | 041c4f28a3c35e31329222769534942439b70f29 (diff) | |
parent | 401d6e7f36e86aa246a2c0591195e1f0f01e879f (diff) |
Merge branch 'master' of github.com:pret/pokeyellow
Diffstat (limited to 'scripts/silphcoelevator.asm')
-rwxr-xr-x | scripts/silphcoelevator.asm | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/silphcoelevator.asm b/scripts/silphcoelevator.asm index d080cfef..df4d08c7 100755 --- a/scripts/silphcoelevator.asm +++ b/scripts/silphcoelevator.asm @@ -1,5 +1,5 @@ -SilphCoElevatorScript: ; 457c0 (11:57c0) - ld hl, wd126 +SilphCoElevatorScript: + ld hl, wCurrentMapScriptFlags bit 5, [hl] res 5, [hl] push hl @@ -14,7 +14,7 @@ SilphCoElevatorScript: ; 457c0 (11:57c0) ld [wDoNotWaitForButtonPressAfterDisplayingText], a ret -SilphCoElevatorScript_457dc: ; 457dc (11:57dc) +SilphCoElevatorScript_457dc: ld hl, wWarpEntries ld a, [wWarpedFromWhichWarp] ld b, a @@ -22,7 +22,7 @@ SilphCoElevatorScript_457dc: ; 457dc (11:57dc) ld c, a call SilphCoElevatorScript_457ea -SilphCoElevatorScript_457ea: ; 457ea (11:57ea) +SilphCoElevatorScript_457ea: inc hl inc hl ld a, b @@ -31,7 +31,7 @@ SilphCoElevatorScript_457ea: ; 457ea (11:57ea) ld [hli], a ret -SilphCoElevatorScript_457f1: ; 457f1 (11:57f1) +SilphCoElevatorScript_457f1: ld hl, SilphCoElavatorFloors call LoadItemList ld hl, SilphCoElevatorWarpMaps @@ -40,7 +40,7 @@ SilphCoElevatorScript_457f1: ; 457f1 (11:57f1) call CopyData ret -SilphCoElavatorFloors: ; 45804 (11:45804) +SilphCoElavatorFloors: db $0B ; num elements in list db FLOOR_1F db FLOOR_2F @@ -55,7 +55,7 @@ SilphCoElavatorFloors: ; 45804 (11:45804) db FLOOR_11F db $FF ; terminator -SilphCoElevatorWarpMaps: ; 45811 (11:45811) +SilphCoElevatorWarpMaps: ; first byte is warp number ; second byte is map number ; These specify where the player goes after getting out of the elevator. @@ -72,15 +72,15 @@ SilphCoElevatorWarpMaps: ; 45811 (11:45811) db $01, SILPH_CO_11F SilphCoElevatorWarpMapsEnd: -SilphCoElevatorScript_45827: ; 45827 (11:5827) +SilphCoElevatorScript_45827: call Delay3 callba ShakeElevator ret -SilphCoElevatorTextPointers: ; 45833 (11:5833) +SilphCoElevatorTextPointers: dw SilphCoElevatorText1 -SilphCoElevatorText1: ; 45835 (11:5835) +SilphCoElevatorText1: TX_ASM call SilphCoElevatorScript_457f1 ld hl, SilphCoElevatorWarpMaps |