Array count for easy chat word groups

This commit is contained in:
GriffinR 2021-01-14 03:48:49 -05:00
parent f63bc6e27a
commit 46e0a0607d

View File

@ -26,112 +26,112 @@
const struct EasyChatGroup gEasyChatGroups[] = { const struct EasyChatGroup gEasyChatGroups[] = {
{ {
.wordData = {.valueList = gEasyChatGroup_Pokemon}, .wordData = {.valueList = gEasyChatGroup_Pokemon},
.numWords = 202, .numWords = ARRAY_COUNT(gEasyChatGroup_Pokemon),
.numEnabledWords = 202, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Pokemon),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Trainer}, .wordData = {.words = gEasyChatGroup_Trainer},
.numWords = 27, .numWords = ARRAY_COUNT(gEasyChatGroup_Trainer),
.numEnabledWords = 21, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Trainer) - 6, // Excludes Red, Green, Flame, Gold, Leaf, and Silver
}, },
{ {
.wordData = {.words = gEasyChatGroup_Status}, .wordData = {.words = gEasyChatGroup_Status},
.numWords = 109, .numWords = ARRAY_COUNT(gEasyChatGroup_Status),
.numEnabledWords = 109, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Status),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Battle}, .wordData = {.words = gEasyChatGroup_Battle},
.numWords = 63, .numWords = ARRAY_COUNT(gEasyChatGroup_Battle),
.numEnabledWords = 63, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Battle),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Greetings}, .wordData = {.words = gEasyChatGroup_Greetings},
.numWords = 42, .numWords = ARRAY_COUNT(gEasyChatGroup_Greetings),
.numEnabledWords = 42, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Greetings),
}, },
{ {
.wordData = {.words = gEasyChatGroup_People}, .wordData = {.words = gEasyChatGroup_People},
.numWords = 75, .numWords = ARRAY_COUNT(gEasyChatGroup_People),
.numEnabledWords = 75, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_People),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Voices}, .wordData = {.words = gEasyChatGroup_Voices},
.numWords = 63, .numWords = ARRAY_COUNT(gEasyChatGroup_Voices),
.numEnabledWords = 63, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Voices),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Speech}, .wordData = {.words = gEasyChatGroup_Speech},
.numWords = 60, .numWords = ARRAY_COUNT(gEasyChatGroup_Speech),
.numEnabledWords = 60, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Speech),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Endings}, .wordData = {.words = gEasyChatGroup_Endings},
.numWords = 69, .numWords = ARRAY_COUNT(gEasyChatGroup_Endings),
.numEnabledWords = 69, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Endings),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Feelings}, .wordData = {.words = gEasyChatGroup_Feelings},
.numWords = 69, .numWords = ARRAY_COUNT(gEasyChatGroup_Feelings),
.numEnabledWords = 69, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Feelings),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Conditions}, .wordData = {.words = gEasyChatGroup_Conditions},
.numWords = 69, .numWords = ARRAY_COUNT(gEasyChatGroup_Conditions),
.numEnabledWords = 69, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Conditions),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Actions}, .wordData = {.words = gEasyChatGroup_Actions},
.numWords = 78, .numWords = ARRAY_COUNT(gEasyChatGroup_Actions),
.numEnabledWords = 78, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Actions),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Lifestyle}, .wordData = {.words = gEasyChatGroup_Lifestyle},
.numWords = 45, .numWords = ARRAY_COUNT(gEasyChatGroup_Lifestyle),
.numEnabledWords = 45, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Lifestyle),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Hobbies}, .wordData = {.words = gEasyChatGroup_Hobbies},
.numWords = 54, .numWords = ARRAY_COUNT(gEasyChatGroup_Hobbies),
.numEnabledWords = 54, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Hobbies),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Time}, .wordData = {.words = gEasyChatGroup_Time},
.numWords = 45, .numWords = ARRAY_COUNT(gEasyChatGroup_Time),
.numEnabledWords = 45, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Time),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Misc}, .wordData = {.words = gEasyChatGroup_Misc},
.numWords = 42, .numWords = ARRAY_COUNT(gEasyChatGroup_Misc),
.numEnabledWords = 42, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Misc),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Adjectives}, .wordData = {.words = gEasyChatGroup_Adjectives},
.numWords = 36, .numWords = ARRAY_COUNT(gEasyChatGroup_Adjectives),
.numEnabledWords = 36, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Adjectives),
}, },
{ {
.wordData = {.words = gEasyChatGroup_Events}, .wordData = {.words = gEasyChatGroup_Events},
.numWords = 29, .numWords = ARRAY_COUNT(gEasyChatGroup_Events),
.numEnabledWords = 29, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Events),
}, },
{ {
.wordData = {.valueList = gEasyChatGroup_Move1}, .wordData = {.valueList = gEasyChatGroup_Move1},
.numWords = 154, .numWords = ARRAY_COUNT(gEasyChatGroup_Move1),
.numEnabledWords = 154, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Move1),
}, },
{ {
.wordData = {.valueList = gEasyChatGroup_Move2}, .wordData = {.valueList = gEasyChatGroup_Move2},
.numWords = 200, .numWords = ARRAY_COUNT(gEasyChatGroup_Move2),
.numEnabledWords = 200, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Move2),
}, },
{ {
.wordData = {.words = gEasyChatGroup_TrendySaying}, .wordData = {.words = gEasyChatGroup_TrendySaying},
.numWords = 33, .numWords = ARRAY_COUNT(gEasyChatGroup_TrendySaying),
.numEnabledWords = 33, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_TrendySaying),
}, },
{ {
.wordData = {.valueList = gEasyChatGroup_Pokemon2}, .wordData = {.valueList = gEasyChatGroup_Pokemon2},
.numWords = 251, .numWords = ARRAY_COUNT(gEasyChatGroup_Pokemon2),
.numEnabledWords = 251, .numEnabledWords = ARRAY_COUNT(gEasyChatGroup_Pokemon2),
}, },
}; };