summaryrefslogtreecommitdiff
path: root/scripts/PewterGym.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/PewterGym.asm')
-rwxr-xr-xscripts/PewterGym.asm19
1 files changed, 16 insertions, 3 deletions
diff --git a/scripts/PewterGym.asm b/scripts/PewterGym.asm
index a1fda3b9..76a58b71 100755
--- a/scripts/PewterGym.asm
+++ b/scripts/PewterGym.asm
@@ -14,7 +14,8 @@ PewterGym_Script:
.LoadNames:
ld hl, .CityName
ld de, .LeaderName
- jp LoadGymLeaderAndCityName
+ call LoadGymLeaderAndCityName
+ ret
.CityName:
db "PEWTER CITY@"
@@ -41,7 +42,6 @@ PewterGymScript3:
jp z, PewterGymScript_5c3bf
ld a, $f0
ld [wJoyIgnore], a
-
PewterGymScript_5c3df:
ld a, $4
ldh [hSpriteIndexOrTextID], a
@@ -151,7 +151,7 @@ PewterGymText6:
PewterGymText_5c4bc:
text_far _PewterGymText_5c4bc
- sound_level_up ; probably supposed to play SFX_GET_ITEM_1 but the wrong music bank is loaded
+ sound_get_item_1
text_far _PewterGymText_5c4c1
text_end
@@ -184,6 +184,9 @@ PewterGymText3:
ld a, [wCurrentMenuItem]
and a
jr nz, .asm_5c4fe
+ ld a, [wd472]
+ bit 7, a
+ jp nz, .asm_5c3fa
ld hl, PewterGymText_5c51a
call PrintText
jr .asm_5c504
@@ -200,6 +203,11 @@ PewterGymText3:
.asm_5c512
jp TextScriptEnd
+.asm_5c3fa
+ ld hl, PewterGymText_5c41c
+ call PrintText
+ jp TextScriptEnd
+
PewterGymText_5c515:
text_far _PewterGymText_5c515
text_end
@@ -219,3 +227,8 @@ PewterGymText_5c524:
PewterGymText_5c529:
text_far _PewterGymText_5c529
text_end
+
+PewterGymText_5c41c:
+ text_far _PewterGymGuyText
+ text_end
+