summaryrefslogtreecommitdiff
path: root/scripts/SaffronGym.asm
diff options
context:
space:
mode:
authordeak311andris <deak311andris@gmail.com>2019-10-07 07:23:57 +0200
committerdeak311andris <deak311andris@gmail.com>2019-10-07 07:23:57 +0200
commit2e45c2946a3cf7ba18de6b9d6fc4549165666864 (patch)
tree5f49f623a6dbd03975e12620b35fe08b40054b87 /scripts/SaffronGym.asm
parent8d2afb7c1324adf6f6b70637a8300073c0a2cb81 (diff)
Deobfuscate gyms consistently
Diffstat (limited to 'scripts/SaffronGym.asm')
-rwxr-xr-xscripts/SaffronGym.asm18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/SaffronGym.asm b/scripts/SaffronGym.asm
index e51763e5..0539d613 100755
--- a/scripts/SaffronGym.asm
+++ b/scripts/SaffronGym.asm
@@ -54,12 +54,12 @@ SaffronGymText_5d068:
ld [hSpriteIndexOrTextID], a
call DisplayTextID
SetEvent EVENT_GOT_TM46
- jr .asm_5d091
+ jr .gymVictory
.BagFull
ld a, $c
ld [hSpriteIndexOrTextID], a
call DisplayTextID
-.asm_5d091
+.gymVictory
ld hl, wObtainedBadges
set 5, [hl]
ld hl, wBeatGymFlags
@@ -152,17 +152,17 @@ SaffronGymTrainerHeader6:
SaffronGymText1:
TX_ASM
CheckEvent EVENT_BEAT_SABRINA
- jr z, .asm_5d134
+ jr z, .beginBattle
CheckEventReuseA EVENT_GOT_TM46
- jr nz, .asm_5d12c
+ jr nz, .afterVictory
call z, SaffronGymText_5d068
call DisableWaitingAfterTextDisplay
- jr .asm_5d15f
-.asm_5d12c
+ jr .done
+.afterVictory
ld hl, SaffronGymText_5d16e
call PrintText
- jr .asm_5d15f
-.asm_5d134
+ jr .done
+.beginBattle
ld hl, SaffronGymText_5d162
call PrintText
ld hl, wd72d
@@ -179,7 +179,7 @@ SaffronGymText1:
ld [wGymLeaderNo], a
ld a, $3
ld [wSaffronGymCurScript], a
-.asm_5d15f
+.done
jp TextScriptEnd
SaffronGymText_5d162: