summaryrefslogtreecommitdiff
path: root/constants/radio_constants.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-03-03 22:22:41 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2021-03-05 16:10:25 -0500
commit5454e1e0deefc6b4fc8c4de0e63314052fceebc0 (patch)
tree565805b252fa596aab3f80b3128ebc91b1fae540 /constants/radio_constants.asm
parentb423e94be700cc6434465cf1dcccf0b677489192 (diff)
Verify data table sizes with table_width and assert_table_length macros
It also uncovered some off-by-one issues with defining some constants. A few structs now use rsreset/_RS to define their offset constants.
Diffstat (limited to 'constants/radio_constants.asm')
-rw-r--r--constants/radio_constants.asm5
1 files changed, 2 insertions, 3 deletions
diff --git a/constants/radio_constants.asm b/constants/radio_constants.asm
index 557b7dde..0a6f5d49 100644
--- a/constants/radio_constants.asm
+++ b/constants/radio_constants.asm
@@ -14,6 +14,7 @@
const POKE_FLUTE_RADIO ; 07
const UNOWN_RADIO ; 08
const EVOLUTION_RADIO ; 09
+NUM_RADIO_CHANNELS EQU const_value
; internal indexes for channel segments
const OAKS_POKEMON_TALK_2 ; 0a
const OAKS_POKEMON_TALK_3 ; 0b
@@ -72,6 +73,7 @@
const POKEDEX_SHOW_6 ; 40
const POKEDEX_SHOW_7 ; 41
const POKEDEX_SHOW_8 ; 42
+NUM_RADIO_SEGMENTS EQU const_value
; PlayRadio.StationPointers indexes (see engine/pokegear/pokegear.asm)
const_def
@@ -85,9 +87,6 @@
const MAPRADIO_LETS_ALL_SING
const MAPRADIO_ROCKET
-; OaksPKMNTalkRoutes size (see data/radio/oaks_pkmn_talk_routes.asm)
-NUM_OAKS_POKEMON_TALK_ROUTES EQU 15
-
; These tables in engine/pokegear/radio.asm are all sized to a power of 2
; so there's no need for a rejection sampling loop
NUM_OAKS_POKEMON_TALK_ADVERBS EQU 16 ; OaksPKMNTalk8.Adverbs