diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2022-03-14 16:40:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 16:40:54 -0400 |
commit | 5160520639f913c45a336e6a8117fb8522fb9c4c (patch) | |
tree | bdd04d9d83f6f5715ae09a1ebd259408919b4f4c /include/constants/battle_string_ids.h | |
parent | 33c05cefe2ca688c4dcc7e551bc3d86548afaa0d (diff) | |
parent | d66413557288082f0b553b209b51fede7d8810c8 (diff) |
Merge pull request #1642 from GriffinRichards/bstrings
Add usage of battle strings table offset constant
Diffstat (limited to 'include/constants/battle_string_ids.h')
-rw-r--r-- | include/constants/battle_string_ids.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/constants/battle_string_ids.h b/include/constants/battle_string_ids.h index c8d37aac6..d5d0698b9 100644 --- a/include/constants/battle_string_ids.h +++ b/include/constants/battle_string_ids.h @@ -1,10 +1,6 @@ #ifndef GUARD_CONSTANTS_BATTLE_STRING_IDS_H #define GUARD_CONSTANTS_BATTLE_STRING_IDS_H -#define BATTLESTRINGS_COUNT 369 - -#define BATTLESTRINGS_ID_ADDER 12 // all battlestrings have its ID + 12, because first 5 are reserved - #define STRINGID_INTROMSG 0 #define STRINGID_INTROSENDOUT 1 #define STRINGID_RETURNMON 2 @@ -383,6 +379,12 @@ #define STRINGID_TRAINER1WINTEXT 379 #define STRINGID_TRAINER2WINTEXT 380 +#define BATTLESTRINGS_COUNT 381 + +// This is the string id that gBattleStringsTable starts with. +// String ids before this (e.g. STRINGID_INTROMSG) are not in the table, +// and are instead handled explicitly by BufferStringBattle. +#define BATTLESTRINGS_TABLE_START STRINGID_TRAINER1LOSETEXT // The below IDs are all indexes into battle message tables, // used to determine which of a set of messages to print. |