You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Revise some constant definitions
This commit is contained in:
@@ -17,7 +17,7 @@ LoadSGBLayoutCGB:
|
||||
ld l, a
|
||||
ld h, 0
|
||||
add hl, hl
|
||||
ld de, .Jumptable
|
||||
ld de, CGBLayoutJumptable
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
@@ -28,7 +28,8 @@ LoadSGBLayoutCGB:
|
||||
.done:
|
||||
ret
|
||||
|
||||
.Jumptable:
|
||||
CGBLayoutJumptable:
|
||||
table_width 2, CGBLayoutJumptable
|
||||
dw _CGB_BattleGrayscale
|
||||
dw _CGB_BattleColors
|
||||
dw _CGB_PokegearPals
|
||||
@@ -60,6 +61,7 @@ LoadSGBLayoutCGB:
|
||||
dw _CGB_TrainerOrMonFrontpicPals
|
||||
dw _CGB_MysteryGift
|
||||
dw _CGB_Unused1E
|
||||
assert_table_length NUM_SCGB_LAYOUTS
|
||||
|
||||
_CGB_BattleGrayscale:
|
||||
ld hl, PalPacket_BattleGrayscale + 1
|
||||
|
||||
@@ -74,13 +74,13 @@ _LoadFontsBattleExtra::
|
||||
LoadFrame:
|
||||
ld a, [wTextboxFrame]
|
||||
maskbits NUM_FRAMES
|
||||
ld bc, 6 * LEN_1BPP_TILE
|
||||
ld bc, TEXTBOX_FRAME_TILES * LEN_1BPP_TILE
|
||||
ld hl, Frames
|
||||
call AddNTimes
|
||||
ld d, h
|
||||
ld e, l
|
||||
ld hl, vTiles2 tile "┌" ; $79
|
||||
lb bc, BANK(Frames), 6 ; "┌" to "┘"
|
||||
lb bc, BANK(Frames), TEXTBOX_FRAME_TILES ; "┌" to "┘"
|
||||
call Get1bppViaHDMA
|
||||
ld hl, vTiles2 tile " " ; $7f
|
||||
ld de, TextboxSpaceGFX
|
||||
|
||||
@@ -12,7 +12,7 @@ LoadSGBLayout:
|
||||
ld l, a
|
||||
ld h, 0
|
||||
add hl, hl
|
||||
ld de, .Jumptable
|
||||
ld de, SGBLayoutJumptable
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld h, [hl]
|
||||
@@ -21,7 +21,8 @@ LoadSGBLayout:
|
||||
push de
|
||||
jp hl
|
||||
|
||||
.Jumptable:
|
||||
SGBLayoutJumptable:
|
||||
table_width 2, SGBLayoutJumptable
|
||||
dw .SGB_BattleGrayscale
|
||||
dw .SGB_BattleColors
|
||||
dw .SGB_PokegearPals
|
||||
@@ -53,6 +54,7 @@ LoadSGBLayout:
|
||||
dw .SGB_TrainerOrMonFrontpicPals
|
||||
dw .SGB_MysteryGift
|
||||
dw .SGB_Unused1E
|
||||
assert_table_length NUM_SCGB_LAYOUTS
|
||||
|
||||
.SGB_BattleGrayscale:
|
||||
ld hl, PalPacket_BattleGrayscale
|
||||
|
||||
@@ -1956,7 +1956,7 @@ PlayRadio:
|
||||
.PlayStation:
|
||||
ld a, ENTER_MAP_MUSIC
|
||||
ld [wPokegearRadioMusicPlaying], a
|
||||
ld hl, .StationPointers
|
||||
ld hl, PlayRadioStationPointers
|
||||
ld d, 0
|
||||
add hl, de
|
||||
add hl, de
|
||||
@@ -1983,9 +1983,10 @@ PlayRadio:
|
||||
call WaitBGMap
|
||||
ret
|
||||
|
||||
.StationPointers:
|
||||
PlayRadioStationPointers:
|
||||
; entries correspond to MAPRADIO_* constants
|
||||
dw .OakOrPnP
|
||||
table_width 2, PlayRadioStationPointers
|
||||
dw LoadStation_PokemonChannel
|
||||
dw LoadStation_OaksPokemonTalk
|
||||
dw LoadStation_PokedexShow
|
||||
dw LoadStation_PokemonMusic
|
||||
@@ -1994,8 +1995,9 @@ PlayRadio:
|
||||
dw LoadStation_PlacesAndPeople
|
||||
dw LoadStation_LetsAllSing
|
||||
dw LoadStation_RocketRadio
|
||||
assert_table_length NUM_MAP_RADIO_STATIONS
|
||||
|
||||
.OakOrPnP:
|
||||
LoadStation_PokemonChannel:
|
||||
call IsInJohto
|
||||
and a
|
||||
jr nz, .kanto
|
||||
@@ -2005,7 +2007,7 @@ PlayRadio:
|
||||
jp z, LoadStation_PokedexShow
|
||||
jp LoadStation_OaksPokemonTalk
|
||||
|
||||
.kanto
|
||||
.kanto:
|
||||
jp LoadStation_PlacesAndPeople
|
||||
|
||||
PokegearMap:
|
||||
|
||||
Reference in New Issue
Block a user