summaryrefslogtreecommitdiff
path: root/scripts/route22.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2015-07-21 10:36:03 -0700
committerYamaArashi <shadow962@live.com>2015-07-21 10:36:03 -0700
commit73171bfff573fa8900563319c014f3e626db6b3e (patch)
tree402ca266578eb759a30f52e05b031bad93d45ee6 /scripts/route22.asm
parentcbcdb2ec2a013beba4f321988e393419a8eed10e (diff)
named most of the used events
Diffstat (limited to 'scripts/route22.asm')
-rwxr-xr-xscripts/route22.asm18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/route22.asm b/scripts/route22.asm
index dec8afd6..73fe2f55 100755
--- a/scripts/route22.asm
+++ b/scripts/route22.asm
@@ -55,7 +55,7 @@ Route22RivalMovementData: ; 50efb (14:4efb)
db $FF
Route22Script0: ; 50f00 (14:4f00)
- CheckEvent EVENT_527
+ CheckEvent EVENT_ROUTE22_RIVAL_WANTS_FIGHT
ret z
ld hl, .Route22RivalBattleCoords
call ArePlayerCoordsInArray
@@ -68,9 +68,9 @@ Route22Script0: ; 50f00 (14:4f00)
ld [wJoyIgnore], a
ld a, PLAYER_DIR_LEFT
ld [wPlayerMovingDirection], a
- CheckEvent EVENT_520
+ CheckEvent EVENT_1ST_ROUTE22_RIVAL_BATTLE
jr nz, .firstRivalBattle
- CheckEventReuseA EVENT_521 ; is this the rival at the end of the game?
+ CheckEventReuseA EVENT_2ND_ROUTE22_RIVAL_BATTLE ; is this the rival at the end of the game?
jp nz, Route22Script_5104e
ret
@@ -163,7 +163,7 @@ Route22Script2: ; 50fb5 (14:4fb5)
call SetSpriteFacingDirectionAndDelay
ld a, $f0
ld [wJoyIgnore], a
- SetEvent EVENT_525
+ SetEvent EVENT_BEAT_ROUTE22_RIVAL_1ST_FIGHT
ld a, $1
ld [hSpriteIndexOrTextID], a
call DisplayTextID
@@ -227,7 +227,7 @@ Route22Script3: ; 5102a (14:502a)
ld [wcc4d], a
predef HideObject
call PlayDefaultMusic
- ResetEvents EVENT_520, EVENT_527
+ ResetEvents EVENT_1ST_ROUTE22_RIVAL_BATTLE, EVENT_ROUTE22_RIVAL_WANTS_FIGHT
ld a, $0
ld [W_ROUTE22CURSCRIPT], a
ret
@@ -322,7 +322,7 @@ Route22Script5: ; 510df (14:50df)
call SetSpriteFacingDirectionAndDelay
ld a, $f0
ld [wJoyIgnore], a
- SetEvent EVENT_526
+ SetEvent EVENT_BEAT_ROUTE22_RIVAL_2ND_FIGHT
ld a, $2
ld [hSpriteIndexOrTextID], a
call DisplayTextID
@@ -372,7 +372,7 @@ Route22Script6: ; 51151 (14:5151)
ld [wcc4d], a
predef HideObject
call PlayDefaultMusic
- ResetEvents EVENT_521, EVENT_527
+ ResetEvents EVENT_2ND_ROUTE22_RIVAL_BATTLE, EVENT_ROUTE22_RIVAL_WANTS_FIGHT
ld a, $7
ld [W_ROUTE22CURSCRIPT], a
ret
@@ -384,7 +384,7 @@ Route22TextPointers: ; 51175 (14:5175)
Route22Text1: ; 5117b (14:517b)
TX_ASM
- CheckEvent EVENT_525
+ CheckEvent EVENT_BEAT_ROUTE22_RIVAL_1ST_FIGHT
jr z, .asm_5118b
ld hl, Route22RivalAfterBattleText1
call PrintText
@@ -397,7 +397,7 @@ Route22Text1: ; 5117b (14:517b)
Route22Text2: ; 51194 (14:5194)
TX_ASM
- CheckEvent EVENT_526
+ CheckEvent EVENT_BEAT_ROUTE22_RIVAL_2ND_FIGHT
jr z, .asm_511a4
ld hl, Route22RivalAfterBattleText2
call PrintText