Index gBardSounds_Moves and gBardSounds_Pokemon with constants
This commit is contained in:
+1
-3
@@ -1,5 +1,3 @@
|
||||
|
||||
// Includes
|
||||
#include "global.h"
|
||||
#include "bard_music.h"
|
||||
#include "constants/easy_chat.h"
|
||||
@@ -21,7 +19,7 @@ const struct BardSound *GetWordSounds(u16 word)
|
||||
u32 subword;
|
||||
const struct BardSound (*ptr)[6];
|
||||
|
||||
if (ECWord_CheckIfOutsideOfValidRange(word))
|
||||
if (IsBardWordInvalid(word))
|
||||
{
|
||||
return gBardSound_InvalidWord;
|
||||
}
|
||||
|
||||
+358
-358
File diff suppressed because it is too large
Load Diff
+414
-414
File diff suppressed because it is too large
Load Diff
+3
-3
@@ -4876,7 +4876,7 @@ bool8 sub_811EAA4(u16 easyChatWord)
|
||||
}
|
||||
}
|
||||
|
||||
bool8 ECWord_CheckIfOutsideOfValidRange(u16 easyChatWord)
|
||||
bool8 IsBardWordInvalid(u16 easyChatWord)
|
||||
{
|
||||
int numWordsInGroup;
|
||||
u8 groupId = EC_GROUP(easyChatWord);
|
||||
@@ -4888,11 +4888,11 @@ bool8 ECWord_CheckIfOutsideOfValidRange(u16 easyChatWord)
|
||||
{
|
||||
case EC_GROUP_POKEMON:
|
||||
case EC_GROUP_POKEMON_2:
|
||||
numWordsInGroup = gNumSpeciesNames;
|
||||
numWordsInGroup = gNumBardWords_Species;
|
||||
break;
|
||||
case EC_GROUP_MOVE_1:
|
||||
case EC_GROUP_MOVE_2:
|
||||
numWordsInGroup = gUnknown_085FA1D4;
|
||||
numWordsInGroup = gNumBardWords_Moves;
|
||||
break;
|
||||
default:
|
||||
numWordsInGroup = gEasyChatGroups[groupId].numWords;
|
||||
|
||||
Reference in New Issue
Block a user