aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/PewterCity.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2024-09-25 00:45:00 -0500
committerdannye <33dannye@gmail.com>2024-09-25 00:45:00 -0500
commita02a98ee7ada1a658e28698484058be2796dc0df (patch)
tree945986054565bd8b5212fc755415096050d1d3a8 /scripts/PewterCity.asm
parentUse long option flags for rgbgfx, same as tools/gfx (diff)
parentUse `const_skip` (diff)
downloadpokeyellow-a02a98ee7ada1a658e28698484058be2796dc0df.tar.gz
pokeyellow-a02a98ee7ada1a658e28698484058be2796dc0df.tar.xz
pokeyellow-a02a98ee7ada1a658e28698484058be2796dc0df.zip
Merge branch 'master' of https://github.com/pret/pokered
Diffstat (limited to 'scripts/PewterCity.asm')
-rw-r--r--scripts/PewterCity.asm22
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/PewterCity.asm b/scripts/PewterCity.asm
index 9437a55d..6cd96acc 100644
--- a/scripts/PewterCity.asm
+++ b/scripts/PewterCity.asm
@@ -37,7 +37,7 @@ ENDC
ld a, SELECT | START | D_RIGHT | D_LEFT | D_UP | D_DOWN
ld [wJoyIgnore], a
ld a, TEXT_PEWTERCITY_YOUNGSTER
- ldh [hSpriteIndexOrTextID], a
+ ldh [hTextID], a
jp DisplayTextID
PewterCityPlayerLeavingEastCoords:
@@ -60,10 +60,10 @@ PewterCitySuperNerd1ShowsPlayerMuseumScript:
ldh [hSpriteImageIndex], a
call SpriteFunc_34a1
call PlayDefaultMusic
- ld hl, wFlags_0xcd60
- set 4, [hl]
+ ld hl, wMiscFlags
+ set BIT_NO_SPRITE_UPDATES, [hl]
ld a, TEXT_PEWTERCITY_SUPER_NERD1_ITS_RIGHT_HERE
- ldh [hSpriteIndexOrTextID], a
+ ldh [hTextID], a
call DisplayTextID
ld a, $3c
ldh [hSpriteScreenYCoord], a
@@ -92,8 +92,8 @@ MovementData_PewterMuseumGuyExit:
db -1 ; end
PewterCityHideSuperNerd1Script:
- ld a, [wd730]
- bit 0, a
+ ld a, [wStatusFlags5]
+ bit BIT_SCRIPTED_NPC_MOVEMENT, a
ret nz
ld a, HS_MUSEUM_GUY
ld [wMissableObjectIndex], a
@@ -125,10 +125,10 @@ PewterCityYoungsterShowsPlayerGymScript:
ldh [hSpriteFacingDirection], a
call SpriteFunc_34a1
call PlayDefaultMusic
- ld hl, wFlags_0xcd60
- set 4, [hl]
+ ld hl, wMiscFlags
+ set BIT_NO_SPRITE_UPDATES, [hl]
ld a, TEXT_PEWTERCITY_YOUNGSTER_GO_TAKE_ON_BROCK
- ldh [hSpriteIndexOrTextID], a
+ ldh [hTextID], a
call DisplayTextID
ld a, $3c
ldh [hSpriteScreenYCoord], a
@@ -158,8 +158,8 @@ MovementData_PewterGymGuyExit:
db -1 ; end
PewterCityHideYoungsterScript:
- ld a, [wd730]
- bit 0, a
+ ld a, [wStatusFlags5]
+ bit BIT_SCRIPTED_NPC_MOVEMENT, a
ret nz
ld a, HS_GYM_GUY
ld [wMissableObjectIndex], a