more accurate script names: refreshscreen -> reanchormap, and reloadmappart -> refreshmap (#1078)

This commit is contained in:
xCrystal 2024-01-07 14:37:46 +01:00
parent f72f078c0e
commit 7f3b87950a
42 changed files with 115 additions and 115 deletions

View File

@ -257,7 +257,7 @@ If <code><i>item_id</i></code> = `USE_SCRIPT_VAR`, then it uses `[wScriptVar]` i
## `$47`: `opentext`
## `$48`: <code>refreshscreen [<i>dummy</i>=0]</code>
## `$48`: <code>reanchormap [<i>dummy</i>=0]</code>
## `$49`: `closetext`
@ -419,7 +419,7 @@ If <code><i>item_id</i></code> = `USE_SCRIPT_VAR`, then it uses `[wScriptVar]` i
## `$7B`: `reloadmap`
## `$7C`: `reloadmappart`
## `$7C`: `refreshmap`
## `$7D`: <code>writecmdqueue <i>queue_pointer</i></code>

View File

@ -27,7 +27,7 @@ ItemFinder:
ret
.Script_FoundSomething:
reloadmappart
refreshmap
special UpdateTimePals
callasm .ItemfinderSound
writetext .ItemfinderItemNearbyText
@ -35,7 +35,7 @@ ItemFinder:
end
.Script_FoundNothing:
reloadmappart
refreshmap
special UpdateTimePals
writetext .ItemfinderNopeText
closetext

View File

@ -200,13 +200,13 @@ CheckMapForSomethingToCut:
ret
Script_CutFromMenu:
reloadmappart
refreshmap
special UpdateTimePals
Script_Cut:
callasm GetPartyNickname
writetext UseCutText
reloadmappart
refreshmap
callasm CutDownTreeOrGrass
closetext
end
@ -307,7 +307,7 @@ UseFlash:
jp QueueScript
Script_UseFlash:
reloadmappart
refreshmap
special UpdateTimePals
writetext UseFlashTextScript
callasm BlindingFlash
@ -608,7 +608,7 @@ FlyFunction:
ret
.FlyScript:
reloadmappart
refreshmap
callasm HideSprites
special UpdateTimePals
callasm FlyFromAnim
@ -668,7 +668,7 @@ CheckMapCanWaterfall:
ret
Script_WaterfallFromMenu:
reloadmappart
refreshmap
special UpdateTimePals
Script_UsedWaterfall:
@ -838,13 +838,13 @@ EscapeRopeOrDig:
text_end
.UsedEscapeRopeScript:
reloadmappart
refreshmap
special UpdateTimePals
writetext .UseEscapeRopeText
sjump .UsedDigOrEscapeRopeScript
.UsedDigScript:
reloadmappart
refreshmap
special UpdateTimePals
writetext .UseDigText
@ -930,11 +930,11 @@ TeleportFunction:
text_end
.TeleportScript:
reloadmappart
refreshmap
special UpdateTimePals
writetext .TeleportReturnText
pause 60
reloadmappart
refreshmap
closetext
playsound SFX_WARP_TO
applymovement PLAYER, .TeleportFrom
@ -1000,7 +1000,7 @@ SetStrengthFlag:
ret
Script_StrengthFromMenu:
reloadmappart
refreshmap
special UpdateTimePals
Script_UsedStrength:
@ -1159,13 +1159,13 @@ TryWhirlpoolMenu:
ret
Script_WhirlpoolFromMenu:
reloadmappart
refreshmap
special UpdateTimePals
Script_UsedWhirlpool:
callasm GetPartyNickname
writetext UseWhirlpoolText
reloadmappart
refreshmap
callasm DisappearWhirlpool
closetext
end
@ -1258,14 +1258,14 @@ HeadbuttNothingText:
text_end
HeadbuttFromMenuScript:
reloadmappart
refreshmap
special UpdateTimePals
HeadbuttScript:
callasm GetPartyNickname
writetext UseHeadbuttText
reloadmappart
refreshmap
callasm ShakeHeadbuttTree
callasm TreeMonEncounter
@ -1355,7 +1355,7 @@ GetFacingObject:
ret
RockSmashFromMenuScript:
reloadmappart
refreshmap
special UpdateTimePals
RockSmashScript:
@ -1582,7 +1582,7 @@ Fishing_CheckFacingUp:
ret
Script_FishCastRod:
reloadmappart
refreshmap
loadmem hBGMapMode, $0
special UpdateTimePals
loademote EMOTE_ROD
@ -1704,7 +1704,7 @@ BikeFunction:
ret
Script_GetOnBike:
reloadmappart
refreshmap
special UpdateTimePals
loadvar VAR_MOVEMENT, PLAYER_BIKE
writetext GotOnBikeText
@ -1724,7 +1724,7 @@ Overworld_DummyFunction: ; unreferenced
ret
Script_GetOffBike:
reloadmappart
refreshmap
special UpdateTimePals
loadvar VAR_MOVEMENT, PLAYER_NORMAL
writetext GotOffBikeText

View File

@ -47,7 +47,7 @@ CheckAnyFaintedMon:
SacredAshScript:
special HealParty
reloadmappart
refreshmap
playsound SFX_WARP_TO
special FadeOutToWhite
special FadeInFromWhite

View File

@ -6,7 +6,7 @@ _Squirtbottle:
ret
.SquirtbottleScript:
reloadmappart
refreshmap
special UpdateTimePals
callasm .CheckCanUseSquirtbottle
iffalse .SquirtbottleNothingScript

View File

@ -6,7 +6,7 @@ SweetScentFromMenu:
ret
.SweetScent:
reloadmappart
refreshmap
special UpdateTimePals
callasm GetPartyNickname
writetext UseSweetScentText

View File

@ -3,7 +3,7 @@ Script_BattleWhiteout::
sjump Script_Whiteout
OverworldWhiteoutScript::
refreshscreen
reanchormap
callasm OverworldBGMap
Script_Whiteout:

View File

@ -136,7 +136,7 @@ ScriptCommandTable:
dw Script_itemnotify ; 45
dw Script_pocketisfull ; 46
dw Script_opentext ; 47
dw Script_refreshscreen ; 48
dw Script_reanchormap ; 48
dw Script_closetext ; 49
dw Script_writeunusedbyte ; 4a
dw Script_farwritetext ; 4b
@ -188,7 +188,7 @@ ScriptCommandTable:
dw Script_changemapblocks ; 79
dw Script_changeblock ; 7a
dw Script_reloadmap ; 7b
dw Script_reloadmappart ; 7c
dw Script_refreshmap ; 7c
dw Script_writecmdqueue ; 7d
dw Script_delcmdqueue ; 7e
dw Script_playmusic ; 7f
@ -2157,7 +2157,7 @@ Script_changeblock:
call BufferScreen
ret
Script_reloadmappart::
Script_refreshmap::
xor a
ldh [hBGMapMode], a
call LoadOverworldTilemapAndAttrmapPals
@ -2192,8 +2192,8 @@ Script_opentext:
call OpenText
ret
Script_refreshscreen:
call RefreshScreen
Script_reanchormap:
call ReanchorMap
call GetScriptByte
ret

View File

@ -139,7 +139,7 @@ UseRegisteredItem:
ret
.Party:
call RefreshScreen
call ReanchorMap
call FadeToMenu
call DoItemEffect
call CloseSubmenu
@ -148,7 +148,7 @@ UseRegisteredItem:
ret
.Overworld:
call RefreshScreen
call ReanchorMap
ld a, 1
ld [wUsingItemWithSelect], a
call DoItemEffect
@ -163,7 +163,7 @@ UseRegisteredItem:
ret
.CantUse:
call RefreshScreen
call ReanchorMap
._cantuse
call CantUseItem

View File

@ -422,7 +422,7 @@ WrongNumber:
text_end
Script_ReceivePhoneCall:
refreshscreen
reanchormap
callasm RingTwice_StartCall
memcall wCallerContact + PHONE_CONTACT_SCRIPT2_BANK
waitbutton

View File

@ -196,7 +196,7 @@ DoEggStep::
jr .loop
OverworldHatchEgg::
call RefreshScreen
call ReanchorMap
call LoadStandardMenuHeader
call HatchEggs
call ExitAllMenus

View File

@ -1,4 +1,4 @@
RefreshScreen::
ReanchorMap::
call ClearWindowData
ldh a, [hROMBank]
push af

View File

@ -476,12 +476,12 @@ MACRO opentext
db opentext_command
ENDM
const refreshscreen_command ; $48
MACRO refreshscreen
const reanchormap_command ; $48
MACRO reanchormap
if _NARG == 0
refreshscreen 0
reanchormap 0
else
db refreshscreen_command
db reanchormap_command
db \1 ; dummy
endc
ENDM
@ -789,9 +789,9 @@ MACRO reloadmap
db reloadmap_command
ENDM
const reloadmappart_command ; $7c
MACRO reloadmappart
db reloadmappart_command
const refreshmap_command ; $7c
MACRO refreshmap
db refreshmap_command
ENDM
const writecmdqueue_command ; $7d

View File

@ -29,11 +29,11 @@ BrunosRoomDoorsCallback:
BrunosRoomDoorLocksBehindYouScript:
applymovement PLAYER, BrunosRoom_EnterMovement
refreshscreen $86
reanchormap $86
playsound SFX_STRENGTH
earthquake 80
changeblock 4, 14, $2a ; wall
reloadmappart
refreshmap
closetext
setscene SCENE_BRUNOSROOM_NOOP
setevent EVENT_BRUNOS_ROOM_ENTRANCE_CLOSED
@ -59,7 +59,7 @@ BrunoScript_Battle:
closetext
playsound SFX_ENTER_DOOR
changeblock 4, 2, $16 ; open door
reloadmappart
refreshmap
closetext
setevent EVENT_BRUNOS_ROOM_EXIT_OPEN
waitsfx

View File

@ -105,7 +105,7 @@ BurnedTowerRivalBattleScript:
playsound SFX_ENTER_DOOR
waitsfx
changeblock 10, 8, $25 ; hole
reloadmappart
refreshmap
pause 15
applymovement PLAYER, BurnedTower1FMovement_PlayerStartsToFall
playsound SFX_KINESIS

View File

@ -90,9 +90,9 @@ ReleaseTheBeasts:
setevent EVENT_BURNED_TOWER_MORTY
setevent EVENT_BURNED_TOWER_1F_EUSINE
appear BURNEDTOWERB1F_EUSINE
refreshscreen
reanchormap
changeblock 6, 14, $1b ; ladder
reloadmappart
refreshmap
closetext
setscene SCENE_BURNEDTOWERB1F_NOOP
end

View File

@ -111,21 +111,21 @@ CeladonGameCornerPoster2Script:
CeladonGameCornerLuckySlotMachineScript:
random 6
ifequal 0, CeladonGameCornerSlotMachineScript
refreshscreen
reanchormap
setval FALSE
special SlotMachine
closetext
end
CeladonGameCornerSlotMachineScript:
refreshscreen
reanchormap
setval TRUE
special SlotMachine
closetext
end
CeladonGameCornerCardFlipScript:
refreshscreen
reanchormap
special CardFlip
closetext
end

View File

@ -160,7 +160,7 @@ CyndaquilPokeBallScript:
checkevent EVENT_GOT_A_POKEMON_FROM_ELM
iftrue LookAtElmPokeBallScript
turnobject ELMSLAB_ELM, DOWN
refreshscreen
reanchormap
pokepic CYNDAQUIL
cry CYNDAQUIL
waitbutton
@ -190,7 +190,7 @@ TotodilePokeBallScript:
checkevent EVENT_GOT_A_POKEMON_FROM_ELM
iftrue LookAtElmPokeBallScript
turnobject ELMSLAB_ELM, DOWN
refreshscreen
reanchormap
pokepic TOTODILE
cry TOTODILE
waitbutton
@ -218,7 +218,7 @@ ChikoritaPokeBallScript:
checkevent EVENT_GOT_A_POKEMON_FROM_ELM
iftrue LookAtElmPokeBallScript
turnobject ELMSLAB_ELM, DOWN
refreshscreen
reanchormap
pokepic CHIKORITA
cry CHIKORITA
waitbutton

View File

@ -300,21 +300,21 @@ GoldenrodGameCornerLeftTheirDrinkScript:
GoldenrodGameCornerSlotsMachineScript:
random 6
ifequal 0, GoldenrodGameCornerLuckySlotsMachineScript
refreshscreen
reanchormap
setval FALSE
special SlotMachine
closetext
end
GoldenrodGameCornerLuckySlotsMachineScript:
refreshscreen
reanchormap
setval TRUE
special SlotMachine
closetext
end
GoldenrodGameCornerCardFlipMachineScript:
refreshscreen
reanchormap
special CardFlip
closetext
end

View File

@ -386,7 +386,7 @@ BasementDoorScript::
waitbutton
closetext
changeblock 18, 6, $2e ; unlocked door
reloadmappart
refreshmap
closetext
setevent EVENT_USED_BASEMENT_KEY
end

View File

@ -402,7 +402,7 @@ GoldenrodUndergroundSwitchRoomEntrances_UpdateDoors:
scall .Clear12
scall .Clear13
scall .Clear14
reloadmappart
refreshmap
closetext
end
@ -415,7 +415,7 @@ GoldenrodUndergroundSwitchRoomEntrances_UpdateDoors:
scall .Clear11
scall .Clear12
scall .Clear14
reloadmappart
refreshmap
closetext
end
@ -428,7 +428,7 @@ GoldenrodUndergroundSwitchRoomEntrances_UpdateDoors:
scall .Clear10
scall .Clear13
scall .Clear14
reloadmappart
refreshmap
closetext
end
@ -441,7 +441,7 @@ GoldenrodUndergroundSwitchRoomEntrances_UpdateDoors:
scall .Clear11
scall .Clear12
scall .Clear14
reloadmappart
refreshmap
closetext
end
@ -454,7 +454,7 @@ GoldenrodUndergroundSwitchRoomEntrances_UpdateDoors:
scall .Clear10
scall .Clear13
scall .Clear14
reloadmappart
refreshmap
closetext
end
@ -467,7 +467,7 @@ GoldenrodUndergroundSwitchRoomEntrances_UpdateDoors:
scall .Clear11
scall .Clear12
scall .Clear14
reloadmappart
refreshmap
closetext
end
@ -480,7 +480,7 @@ GoldenrodUndergroundSwitchRoomEntrances_UpdateDoors:
scall .Clear4
scall .Clear10
scall .Clear13
reloadmappart
refreshmap
closetext
end
@ -497,7 +497,7 @@ GoldenrodUndergroundSwitchRoomEntrances_UpdateDoors:
scall .Set12
scall .Clear13
scall .Set14
reloadmappart
refreshmap
closetext
setval 6
writemem wUndergroundSwitchPositions

View File

@ -29,11 +29,11 @@ KarensRoomDoorsCallback:
KarensRoomDoorLocksBehindYouScript:
applymovement PLAYER, KarensRoom_EnterMovement
refreshscreen $86
reanchormap $86
playsound SFX_STRENGTH
earthquake 80
changeblock 4, 14, $2a ; wall
reloadmappart
refreshmap
closetext
setscene SCENE_KARENSROOM_NOOP
setevent EVENT_KARENS_ROOM_ENTRANCE_CLOSED
@ -59,7 +59,7 @@ KarenScript_Battle:
closetext
playsound SFX_ENTER_DOOR
changeblock 4, 2, $16 ; open door
reloadmappart
refreshmap
closetext
setevent EVENT_KARENS_ROOM_EXIT_OPEN
waitsfx

View File

@ -29,11 +29,11 @@ KogasRoomDoorsCallback:
KogasRoomDoorLocksBehindYouScript:
applymovement PLAYER, KogasRoom_EnterMovement
refreshscreen $86
reanchormap $86
playsound SFX_STRENGTH
earthquake 80
changeblock 4, 14, $2a ; wall
reloadmappart
refreshmap
closetext
setscene SCENE_KOGASROOM_NOOP
setevent EVENT_KOGAS_ROOM_ENTRANCE_CLOSED
@ -59,7 +59,7 @@ KogaScript_Battle:
closetext
playsound SFX_ENTER_DOOR
changeblock 4, 2, $16 ; open door
reloadmappart
refreshmap
closetext
setevent EVENT_KOGAS_ROOM_EXIT_OPEN
waitsfx

View File

@ -31,11 +31,11 @@ LancesRoomDoorsCallback:
LancesRoomDoorLocksBehindYouScript:
applymovement PLAYER, LancesRoom_EnterMovement
refreshscreen $86
reanchormap $86
playsound SFX_STRENGTH
earthquake 80
changeblock 4, 22, $34 ; wall
reloadmappart
refreshmap
closetext
setscene SCENE_LANCESROOM_APPROACH_LANCE
setevent EVENT_LANCES_ROOM_ENTRANCE_CLOSED
@ -68,7 +68,7 @@ LancesRoomLanceScript:
closetext
playsound SFX_ENTER_DOOR
changeblock 4, 0, $0b ; open door
reloadmappart
refreshmap
closetext
setevent EVENT_LANCES_ROOM_ENTRANCE_CLOSED
musicfadeout MUSIC_BEAUTY_ENCOUNTER, 16

View File

@ -88,7 +88,7 @@ MahoganyMart1FLanceUncoversStaircaseScript:
showemote EMOTE_SHOCK, MAHOGANYMART1F_PHARMACIST, 10
playsound SFX_FAINT
changeblock 6, 2, $1e ; stairs
reloadmappart
refreshmap
closetext
setevent EVENT_UNCOVERED_STAIRCASE_IN_MAHOGANY_MART
turnobject MAHOGANYMART1F_LANCE, LEFT

View File

@ -18,7 +18,7 @@ MobileBattleRoomInitializeAndPreparePokecenter2FScript:
end
MobileBattleRoomConsoleScript:
refreshscreen
reanchormap
special Function1037c2
ifequal $1, .one
special Function1037eb
@ -37,7 +37,7 @@ MobileBattleRoomConsoleScript:
pause 60
special FadeInFromWhite
special RestartMapMusic
refreshscreen
reanchormap
.two_
special StubbedTrainerRankings_Healings
special HealParty
@ -47,7 +47,7 @@ MobileBattleRoomConsoleScript:
special Function10387b
writetext MobileBattleRoom_EstablishingCommsText
waitbutton
reloadmappart
refreshmap
special Function101225
.false
closetext

View File

@ -18,11 +18,11 @@ MobileTradeRoomInitializeAndPreparePokecenter2FScript:
end
MobileTradeRoomConsoleScript:
refreshscreen
reanchormap
special Function1037c2
writetext MobileTradeRoom_EstablishingCommsText
waitbutton
reloadmappart
refreshmap
special Function101231
closetext
end

View File

@ -581,7 +581,7 @@ Script_LeftTimeCapsule:
end
Pokecenter2FLinkRecordSign:
refreshscreen
reanchormap
special DisplayLinkRecord
closetext
end

View File

@ -22,7 +22,7 @@ PokecomCenterAdminOfficeMobileComputer1:
writetext PokecomCenterAdminOfficeMobileComputer1Text
waitbutton
.loop:
reloadmappart
refreshmap
loadmenu .Computer1MenuHeader
verticalmenu
closewindow
@ -64,7 +64,7 @@ PokecomCenterAdminOfficeMobileComputer2:
writetext PokecomCenterAdminOfficeMobileComputer2Text
waitbutton
.loop:
reloadmappart
refreshmap
loadmenu .Computer2MenuHeader
verticalmenu
closewindow

View File

@ -133,7 +133,7 @@ Buena:
waitbutton
closetext
turnobject RADIOTOWER2F_BUENA, DOWN
refreshscreen
reanchormap
special BuenasPassword
closetext
iffalse .WrongAnswer

View File

@ -143,7 +143,7 @@ CardKeySlotScript::
playsound SFX_ENTER_DOOR
changeblock 14, 2, $2a ; open shutter
changeblock 14, 4, $01 ; floor
reloadmappart
refreshmap
closetext
waitsfx
end

View File

@ -39,14 +39,14 @@ RuinsOfAlphAerodactylChamberWallOpenScript:
pause 30
playsound SFX_STRENGTH
changeblock 4, 0, $30 ; open wall
reloadmappart
refreshmap
earthquake 50
setscene SCENE_RUINSOFALPHAERODACTYLCHAMBER_NOOP
closetext
end
RuinsOfAlphAerodactylChamberPuzzle:
refreshscreen
reanchormap
setval UNOWNPUZZLE_AERODACTYL
special UnownPuzzle
closetext
@ -62,7 +62,7 @@ RuinsOfAlphAerodactylChamberPuzzle:
showemote EMOTE_SHOCK, PLAYER, 15
changeblock 2, 2, $18 ; left hole
changeblock 4, 2, $19 ; right hole
reloadmappart
refreshmap
playsound SFX_STRENGTH
earthquake 80
applymovement PLAYER, RuinsOfAlphAerodactylChamberSkyfallTopMovement

View File

@ -40,14 +40,14 @@ RuinsOfAlphHoOhChamberWallOpenScript:
pause 30
playsound SFX_STRENGTH
changeblock 4, 0, $30 ; open wall
reloadmappart
refreshmap
earthquake 50
setscene SCENE_RUINSOFALPHHOOHCHAMBER_NOOP
closetext
end
RuinsOfAlphHoOhChamberPuzzle:
refreshscreen
reanchormap
setval UNOWNPUZZLE_HO_OH
special UnownPuzzle
closetext
@ -63,7 +63,7 @@ RuinsOfAlphHoOhChamberPuzzle:
showemote EMOTE_SHOCK, PLAYER, 15
changeblock 2, 2, $18 ; left hole
changeblock 4, 2, $19 ; right hole
reloadmappart
refreshmap
playsound SFX_STRENGTH
earthquake 80
applymovement PLAYER, RuinsOfAlphHoOhChamberSkyfallTopMovement

View File

@ -43,7 +43,7 @@ RuinsOfAlphKabutoChamberWallOpenScript:
pause 30
playsound SFX_STRENGTH
changeblock 4, 0, $30 ; open wall
reloadmappart
refreshmap
earthquake 50
setscene SCENE_RUINSOFALPHKABUTOCHAMBER_NOOP
closetext
@ -53,7 +53,7 @@ RuinsOfAlphKabutoChamberReceptionistScript:
jumptextfaceplayer RuinsOfAlphKabutoChamberReceptionistText
RuinsOfAlphKabutoChamberPuzzle:
refreshscreen
reanchormap
setval UNOWNPUZZLE_KABUTO
special UnownPuzzle
closetext
@ -70,7 +70,7 @@ RuinsOfAlphKabutoChamberPuzzle:
showemote EMOTE_SHOCK, PLAYER, 15
changeblock 2, 2, $18 ; left hole
changeblock 4, 2, $19 ; right hole
reloadmappart
refreshmap
playsound SFX_STRENGTH
earthquake 80
applymovement PLAYER, RuinsOfAlphKabutoChamberSkyfallTopMovement

View File

@ -40,14 +40,14 @@ RuinsOfAlphOmanyteChamberWallOpenScript:
pause 30
playsound SFX_STRENGTH
changeblock 4, 0, $30 ; open wall
reloadmappart
refreshmap
earthquake 50
setscene SCENE_RUINSOFALPHOMANYTECHAMBER_NOOP
closetext
end
RuinsOfAlphOmanyteChamberPuzzle:
refreshscreen
reanchormap
setval UNOWNPUZZLE_OMANYTE
special UnownPuzzle
closetext
@ -63,7 +63,7 @@ RuinsOfAlphOmanyteChamberPuzzle:
showemote EMOTE_SHOCK, PLAYER, 15
changeblock 2, 2, $18 ; left hole
changeblock 4, 2, $19 ; right hole
reloadmappart
refreshmap
playsound SFX_STRENGTH
earthquake 80
applymovement PLAYER, RuinsOfAlphOmanyteChamberSkyfallTopMovement

View File

@ -30,7 +30,7 @@ Red:
special FadeInFromBlack
pause 30
special HealParty
refreshscreen
reanchormap
credits
end

View File

@ -329,7 +329,7 @@ TeamRocketBaseB2FLockedDoor:
waitbutton
playsound SFX_ENTER_DOOR
changeblock 14, 12, $07 ; floor
reloadmappart
refreshmap
closetext
setevent EVENT_OPENED_DOOR_TO_ROCKET_HIDEOUT_TRANSMITTER
waitsfx

View File

@ -193,7 +193,7 @@ TeamRocketBaseB3FLockedDoor:
waitbutton
playsound SFX_ENTER_DOOR
changeblock 10, 8, $07 ; floor
reloadmappart
refreshmap
closetext
setevent EVENT_OPENED_DOOR_TO_GIOVANNIS_OFFICE
waitsfx

View File

@ -195,12 +195,12 @@ TinTower1FSage5Script:
promptbutton
verbosegiveitem RAINBOW_WING
closetext
refreshscreen
reanchormap
earthquake 72
waitsfx
playsound SFX_STRENGTH
changeblock 10, 2, $20 ; stairs
reloadmappart
refreshmap
setevent EVENT_GOT_RAINBOW_WING
closetext
opentext

View File

@ -29,11 +29,11 @@ WillsRoomDoorsCallback:
WillsRoomDoorLocksBehindYouScript:
applymovement PLAYER, WillsRoom_EnterMovement
refreshscreen $86
reanchormap $86
playsound SFX_STRENGTH
earthquake 80
changeblock 4, 14, $2a ; wall
reloadmappart
refreshmap
closetext
setscene SCENE_WILLSROOM_NOOP
setevent EVENT_WILLS_ROOM_ENTRANCE_CLOSED
@ -59,7 +59,7 @@ WillScript_Battle:
closetext
playsound SFX_ENTER_DOOR
changeblock 4, 2, $16 ; open door
reloadmappart
refreshmap
closetext
setevent EVENT_WILLS_ROOM_EXIT_OPEN
waitsfx

View File

@ -360,7 +360,7 @@ Function100276:
ret
.asm_100296
farcall Script_reloadmappart
farcall Script_refreshmap
ld c, $04
ret
@ -370,7 +370,7 @@ Function100276:
ret
.asm_1002a5
farcall Script_reloadmappart
farcall Script_refreshmap
call Function1002ed
ld c, $03
ret
@ -2737,7 +2737,7 @@ Jumptable_101247:
Function101251:
call UpdateSprites
call RefreshScreen
call ReanchorMap
ld hl, ClosingLinkText
call Function1021e0
call Function1020ea
@ -2752,7 +2752,7 @@ Function101265:
Function10126c:
call UpdateSprites
farcall Script_reloadmappart
farcall Script_refreshmap
ld hl, ClosingLinkText
call Function1021e0
ret
@ -7652,7 +7652,7 @@ Function10383c:
ld hl, PickThreeMonForMobileBattleText
call PrintText
call JoyWaitAorB
farcall Script_reloadmappart
farcall Script_refreshmap
farcall Function4a94e
jr c, .asm_103870
ld hl, wd002

View File

@ -1303,8 +1303,8 @@ SECTION "Video", WRAM0
UNION
; bg map
wBGMapBuffer:: ds 40
wBGMapPalBuffer:: ds 40
wBGMapBuffer:: ds 2 * SCREEN_WIDTH
wBGMapPalBuffer:: ds 2 * SCREEN_WIDTH
wBGMapBufferPointers:: ds 20 * 2
wBGMapBufferEnd::