summaryrefslogtreecommitdiff
path: root/scripts/halloffameroom.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/halloffameroom.asm')
-rwxr-xr-xscripts/halloffameroom.asm74
1 files changed, 35 insertions, 39 deletions
diff --git a/scripts/halloffameroom.asm b/scripts/halloffameroom.asm
index c44622c7..94e64431 100755
--- a/scripts/halloffameroom.asm
+++ b/scripts/halloffameroom.asm
@@ -1,65 +1,61 @@
-HallofFameRoomScript: ; 5a49e (16:649e)
+HallofFameRoomScript:
call EnableAutoTextBoxDrawing
ld hl, HallofFameRoomScriptPointers
- ld a, [W_HALLOFFAMEROOMCURSCRIPT]
+ ld a, [wHallOfFameRoomCurScript]
jp CallFunctionInTable
-HallofFameRoomScript_5a4aa: ; 5a4aa (16:64aa)
+HallofFameRoomScript_5a4aa:
xor a
ld [wJoyIgnore], a
- ld [W_HALLOFFAMEROOMCURSCRIPT], a
+ ld [wHallOfFameRoomCurScript], a
ret
-HallofFameRoomScriptPointers: ; 5a4b2 (16:64b2)
+HallofFameRoomScriptPointers:
dw HallofFameRoomScript0
dw HallofFameRoomScript1
dw HallofFameRoomScript2
dw HallofFameRoomScript3
-HallofFameRoomScript3: ; 5a4ba (16:64ba)
+HallofFameRoomScript3:
ret
-HallofFameRoomScript2: ; 5a4bb (16:64bb)
+HallofFameRoomScript2:
call Delay3
- ld a, [wd358]
+ ld a, [wLetterPrintingDelayFlags]
push af
xor a
ld [wJoyIgnore], a
predef HallOfFamePC
pop af
- ld [wd358], a
- ld hl, W_FLAGS_D733
+ ld [wLetterPrintingDelayFlags], a
+ ld hl, wFlags_D733
res 1, [hl]
inc hl
set 0, [hl]
xor a
- ld hl, W_LORELEICURSCRIPT
- ld [hli], a
- ld [hli], a
- ld [hl], a
- ld [W_LANCECURSCRIPT], a
- ld [W_HALLOFFAMEROOMCURSCRIPT], a
- ld hl, wd863
- ld [hli], a
- ld [hli], a
+ ld hl, wLoreleiCurScript
ld [hli], a
ld [hli], a
ld [hl], a
+ ld [wLanceCurScript], a
+ ld [wHallOfFameRoomCurScript], a
+ ; Elite 4 events
+ ResetEventRange ELITE4_EVENTS_START, ELITE4_CHAMPION_EVENTS_END, 1
xor a
- ld [W_HALLOFFAMEROOMCURSCRIPT], a
+ ld [wHallOfFameRoomCurScript], a
ld a, PALLET_TOWN
ld [wLastBlackoutMap], a
callba SaveSAVtoSRAM
ld b, 5
-.asm_5a4ff
+.delayLoop
ld c, 600 / 5
call DelayFrames
dec b
- jr nz, .asm_5a4ff ; 0x5a505 $f8
+ jr nz, .delayLoop
call WaitForTextScrollButtonPress
jp Init
-HallofFameRoomScript0: ; 5a50d (16:650d)
+HallofFameRoomScript0:
ld a, $ff
ld [wJoyIgnore], a
ld hl, wSimulatedJoypadStatesEnd
@@ -69,45 +65,45 @@ HallofFameRoomScript0: ; 5a50d (16:650d)
ld [wSimulatedJoypadStatesIndex], a
call StartSimulatingJoypadStates
ld a, $1
- ld [W_HALLOFFAMEROOMCURSCRIPT], a
+ ld [wHallOfFameRoomCurScript], a
ret
-RLEMovement5a528: ; 5a528 (16:6528)
- db $40,$5
+RLEMovement5a528:
+ db D_UP,$5
db $ff
-HallofFameRoomScript1: ; 5a52b (16:652b)
+HallofFameRoomScript1:
ld a, [wSimulatedJoypadStatesIndex]
and a
ret nz
+ ld a, PLAYER_DIR_RIGHT
+ ld [wPlayerMovingDirection], a
ld a, $1
- ld [wd528], a
- ld a, $1
- ld [$ff8c], a
+ ld [H_SPRITEINDEX], a
call SetSpriteMovementBytesToFF
- ld a, $8
- ld [$ff8d], a
+ ld a, SPRITE_FACING_LEFT
+ ld [hSpriteFacingDirection], a
call SetSpriteFacingDirectionAndDelay
call Delay3
xor a
ld [wJoyIgnore], a
- inc a
- ld [wd528], a
+ inc a ; PLAYER_DIR_RIGHT
+ ld [wPlayerMovingDirection], a
ld a, $1
- ld [$ff8c], a
+ ld [hSpriteIndexOrTextID], a
call DisplayTextID
ld a, $ff
ld [wJoyIgnore], a
ld a, HS_UNKNOWN_DUNGEON_GUY
- ld [wcc4d], a
+ ld [wMissableObjectIndex], a
predef HideObject
ld a, $2
- ld [W_HALLOFFAMEROOMCURSCRIPT], a
+ ld [wHallOfFameRoomCurScript], a
ret
-HallofFameRoomTextPointers: ; 5a56a (16:656a)
+HallofFameRoomTextPointers:
dw HallofFameRoomText1
-HallofFameRoomText1: ; 5a56c (16:656c)
+HallofFameRoomText1:
TX_FAR _HallofFameRoomText1
db "@"