You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Make the map setup commands match the actual function names better
These functions used as map setup commands are used in other places, too, so I can't prefix them under the same. The names should match except I won't repeat "map" in a map setup command name.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
; Audio interfaces.
|
||||
|
||||
MapSetup_Sound_Off::
|
||||
InitSound::
|
||||
push hl
|
||||
push de
|
||||
push bc
|
||||
@@ -8,11 +8,11 @@ MapSetup_Sound_Off::
|
||||
|
||||
ldh a, [hROMBank]
|
||||
push af
|
||||
ld a, BANK(_MapSetup_Sound_Off)
|
||||
ld a, BANK(_InitSound)
|
||||
ldh [hROMBank], a
|
||||
ld [MBC3RomBank], a
|
||||
|
||||
call _MapSetup_Sound_Off
|
||||
call _InitSound
|
||||
|
||||
pop af
|
||||
ldh [hROMBank], a
|
||||
@@ -71,7 +71,7 @@ PlayMusic::
|
||||
|
||||
ldh a, [hROMBank]
|
||||
push af
|
||||
ld a, BANK(_PlayMusic) ; aka BANK(_MapSetup_Sound_Off)
|
||||
ld a, BANK(_PlayMusic) ; aka BANK(_InitSound)
|
||||
ldh [hROMBank], a
|
||||
ld [MBC3RomBank], a
|
||||
|
||||
@@ -83,7 +83,7 @@ PlayMusic::
|
||||
jr .end
|
||||
|
||||
.nomusic
|
||||
call _MapSetup_Sound_Off
|
||||
call _InitSound
|
||||
|
||||
.end
|
||||
pop af
|
||||
@@ -359,7 +359,8 @@ PlayMapMusic::
|
||||
pop hl
|
||||
ret
|
||||
|
||||
EnterMapMusic::
|
||||
PlayMapMusicBike::
|
||||
; If the player's on a bike, play the bike music instead of the map music
|
||||
push hl
|
||||
push de
|
||||
push bc
|
||||
|
@@ -1,6 +1,6 @@
|
||||
Reset::
|
||||
di
|
||||
call MapSetup_Sound_Off
|
||||
call InitSound
|
||||
xor a
|
||||
ldh [hMapAnims], a
|
||||
call ClearPalettes
|
||||
@@ -162,7 +162,7 @@ Init::
|
||||
|
||||
predef InitSGBBorder ; SGB init
|
||||
|
||||
call MapSetup_Sound_Off
|
||||
call InitSound
|
||||
xor a
|
||||
ld [wMapMusic], a
|
||||
jp GameInit
|
||||
|
19
home/map.asm
19
home/map.asm
@@ -380,11 +380,11 @@ LoadMapAttributes::
|
||||
call CopyMapPartialAndAttributes
|
||||
call SwitchToMapScriptsBank
|
||||
call ReadMapScripts
|
||||
xor a ; do not skip object_events
|
||||
xor a ; do not skip object events
|
||||
call ReadMapEvents
|
||||
ret
|
||||
|
||||
LoadMapAttributes_SkipPeople::
|
||||
LoadMapAttributes_SkipObjects::
|
||||
call CopyMapPartialAndAttributes
|
||||
call SwitchToMapScriptsBank
|
||||
call ReadMapScripts
|
||||
@@ -656,7 +656,7 @@ ClearObjectStructs::
|
||||
jr nz, .loop
|
||||
ret
|
||||
|
||||
RestoreFacingAfterWarp::
|
||||
GetWarpDestCoords::
|
||||
call GetMapScriptsBank
|
||||
rst Bankswitch
|
||||
|
||||
@@ -684,7 +684,7 @@ endr
|
||||
call .backup
|
||||
|
||||
.skip
|
||||
farcall GetCoordOfUpperLeftCorner
|
||||
farcall GetMapScreenCoords
|
||||
ret
|
||||
|
||||
.backup
|
||||
@@ -1437,7 +1437,7 @@ SaveScreen::
|
||||
.vertical
|
||||
ld b, SCREEN_META_WIDTH
|
||||
ld c, SCREEN_META_HEIGHT - 1
|
||||
jr SaveScreen_LoadNeighbor
|
||||
jr SaveScreen_LoadConnection
|
||||
|
||||
.left
|
||||
ld de, wScreenSave + 1
|
||||
@@ -1449,9 +1449,9 @@ SaveScreen::
|
||||
.horizontal
|
||||
ld b, SCREEN_META_WIDTH - 1
|
||||
ld c, SCREEN_META_HEIGHT
|
||||
jr SaveScreen_LoadNeighbor
|
||||
jr SaveScreen_LoadConnection
|
||||
|
||||
LoadNeighboringBlockData::
|
||||
LoadConnectionBlockData::
|
||||
ld hl, wOverworldMapAnchor
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
@@ -1463,7 +1463,7 @@ LoadNeighboringBlockData::
|
||||
ld b, SCREEN_META_WIDTH
|
||||
ld c, SCREEN_META_HEIGHT
|
||||
|
||||
SaveScreen_LoadNeighbor::
|
||||
SaveScreen_LoadConnection::
|
||||
.row
|
||||
push bc
|
||||
push hl
|
||||
@@ -1480,7 +1480,6 @@ SaveScreen_LoadNeighbor::
|
||||
ld e, a
|
||||
jr nc, .okay
|
||||
inc d
|
||||
|
||||
.okay
|
||||
pop hl
|
||||
ldh a, [hConnectionStripLength]
|
||||
@@ -2259,7 +2258,7 @@ GetFishingGroup::
|
||||
pop de
|
||||
ret
|
||||
|
||||
LoadTileset::
|
||||
LoadMapTileset::
|
||||
push hl
|
||||
push bc
|
||||
|
||||
|
@@ -39,7 +39,7 @@ CloseText::
|
||||
ld a, $90
|
||||
ldh [hWY], a
|
||||
call ReplaceKrisSprite
|
||||
farcall ReturnFromMapSetupScript
|
||||
farcall InitMapNameSign
|
||||
farcall LoadOverworldFont
|
||||
ret
|
||||
|
||||
|
Reference in New Issue
Block a user