aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/SilphCo11F_2.asm
diff options
context:
space:
mode:
authorUserWest <WestofMystic@gmail.com>2021-11-05 20:38:01 -0400
committerGitHub <noreply@github.com>2021-11-05 20:38:01 -0400
commit40b07c571e9a19edbc7201fc6b4ad466827ef071 (patch)
treee336d9fb6b3da002e755fe058f82563aef171444 /scripts/SilphCo11F_2.asm
parentIdentify starter pikachu happiness boost medicine check (#72) (diff)
downloadpokeyellow-40b07c571e9a19edbc7201fc6b4ad466827ef071.tar.gz
pokeyellow-40b07c571e9a19edbc7201fc6b4ad466827ef071.tar.xz
pokeyellow-40b07c571e9a19edbc7201fc6b4ad466827ef071.zip
Label Saffron City hide/show function (#73)
Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
Diffstat (limited to 'scripts/SilphCo11F_2.asm')
-rw-r--r--scripts/SilphCo11F_2.asm28
1 files changed, 14 insertions, 14 deletions
diff --git a/scripts/SilphCo11F_2.asm b/scripts/SilphCo11F_2.asm
index c8fd9c3e..658e79eb 100644
--- a/scripts/SilphCo11F_2.asm
+++ b/scripts/SilphCo11F_2.asm
@@ -1,28 +1,28 @@
-Func_f25a0::
- ld hl, MissableObjects_f25ce
-.asm_f25a3
+SaffronCityHideRocketsShowCitizens::
+ ld hl, SaffronCityRockets
+.hideLoop
ld a, [hli]
- cp $ff
- jr z, .asm_f25b4
+ cp $ff ; have we run out of rockets to hide?
+ jr z, .showCitizens ; if so, start showing the citizens
push hl
ld [wMissableObjectIndex], a
predef HideObject
pop hl
- jr .asm_f25a3
+ jr .hideLoop
-.asm_f25b4
- ld hl, MissableObjects_f25c7
-.asm_f25b7
+.showCitizens
+ ld hl, SaffronCityCitizens
+.showLoop
ld a, [hli]
- cp $ff
- ret z
+ cp $ff ; have we run out of citizens to show?
+ ret z ; if so, we're done here
push hl
ld [wMissableObjectIndex], a
predef ShowObject
pop hl
- jr .asm_f25b7
+ jr .showLoop
-MissableObjects_f25c7:
+SaffronCityCitizens:
db HS_SAFFRON_CITY_8
db HS_SAFFRON_CITY_9
db HS_SAFFRON_CITY_A
@@ -31,7 +31,7 @@ MissableObjects_f25c7:
db HS_SAFFRON_CITY_D
db $FF
-MissableObjects_f25ce:
+SaffronCityRockets:
db HS_SAFFRON_CITY_1
db HS_SAFFRON_CITY_2
db HS_SAFFRON_CITY_3