Skip to content

Commit a3d0978

Browse files
authored
Replace easy_chat alphabetialOrder magic numbers with EC_INDEX values (#2096)
1 parent e83f7c7 commit a3d0978

18 files changed

+1008
-1008
lines changed

src/data/easy_chat/easy_chat_group_actions.h

Lines changed: 78 additions & 78 deletions
Large diffs are not rendered by default.

src/data/easy_chat/easy_chat_group_adjectives.h

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -39,217 +39,217 @@ const struct EasyChatWordInfo gEasyChatGroup_Adjectives[] = {
3939
[EC_INDEX(EC_WORD_WANDERING)] =
4040
{
4141
.text = gEasyChatWord_Wandering,
42-
.alphabeticalOrder = 35,
42+
.alphabeticalOrder = EC_INDEX(EC_WORD_ANTICIPATION),
4343
.enabled = TRUE,
4444
},
4545
[EC_INDEX(EC_WORD_RICKETY)] =
4646
{
4747
.text = gEasyChatWord_Rickety,
48-
.alphabeticalOrder = 23,
48+
.alphabeticalOrder = EC_INDEX(EC_WORD_AWESOME),
4949
.enabled = TRUE,
5050
},
5151
[EC_INDEX(EC_WORD_ROCK_SOLID)] =
5252
{
5353
.text = gEasyChatWord_RockSolid,
54-
.alphabeticalOrder = 20,
54+
.alphabeticalOrder = EC_INDEX(EC_WORD_BREAK),
5555
.enabled = TRUE,
5656
},
5757
[EC_INDEX(EC_WORD_HUNGRY)] =
5858
{
5959
.text = gEasyChatWord_Hungry,
60-
.alphabeticalOrder = 31,
60+
.alphabeticalOrder = EC_INDEX(EC_WORD_DESTROYED),
6161
.enabled = TRUE,
6262
},
6363
[EC_INDEX(EC_WORD_TIGHT)] =
6464
{
6565
.text = gEasyChatWord_Tight,
66-
.alphabeticalOrder = 14,
66+
.alphabeticalOrder = EC_INDEX(EC_WORD_DROOLING),
6767
.enabled = TRUE,
6868
},
6969
[EC_INDEX(EC_WORD_TICKLISH)] =
7070
{
7171
.text = gEasyChatWord_Ticklish,
72-
.alphabeticalOrder = 15,
72+
.alphabeticalOrder = EC_INDEX(EC_WORD_EXCITING),
7373
.enabled = TRUE,
7474
},
7575
[EC_INDEX(EC_WORD_TWIRLING)] =
7676
{
7777
.text = gEasyChatWord_Twirling,
78-
.alphabeticalOrder = 32,
78+
.alphabeticalOrder = EC_INDEX(EC_WORD_FIERY),
7979
.enabled = TRUE,
8080
},
8181
[EC_INDEX(EC_WORD_SPIRALING)] =
8282
{
8383
.text = gEasyChatWord_Spiraling,
84-
.alphabeticalOrder = 34,
84+
.alphabeticalOrder = EC_INDEX(EC_WORD_HAPPILY),
8585
.enabled = TRUE,
8686
},
8787
[EC_INDEX(EC_WORD_THIRSTY)] =
8888
{
8989
.text = gEasyChatWord_Thirsty,
90-
.alphabeticalOrder = 12,
90+
.alphabeticalOrder = EC_INDEX(EC_WORD_HOPELESS),
9191
.enabled = TRUE,
9292
},
9393
[EC_INDEX(EC_WORD_LOLLING)] =
9494
{
9595
.text = gEasyChatWord_Lolling,
96-
.alphabeticalOrder = 3,
96+
.alphabeticalOrder = EC_INDEX(EC_WORD_HUNGRY),
9797
.enabled = TRUE,
9898
},
9999
[EC_INDEX(EC_WORD_SILKY)] =
100100
{
101101
.text = gEasyChatWord_Silky,
102-
.alphabeticalOrder = 29,
102+
.alphabeticalOrder = EC_INDEX(EC_WORD_INCREASING),
103103
.enabled = TRUE,
104104
},
105105
[EC_INDEX(EC_WORD_SADLY)] =
106106
{
107107
.text = gEasyChatWord_Sadly,
108-
.alphabeticalOrder = 9,
108+
.alphabeticalOrder = EC_INDEX(EC_WORD_LOLLING),
109109
.enabled = TRUE,
110110
},
111111
[EC_INDEX(EC_WORD_HOPELESS)] =
112112
{
113113
.text = gEasyChatWord_Hopeless,
114-
.alphabeticalOrder = 33,
114+
.alphabeticalOrder = EC_INDEX(EC_WORD_LOVEY_DOVEY),
115115
.enabled = TRUE,
116116
},
117117
[EC_INDEX(EC_WORD_USELESS)] =
118118
{
119119
.text = gEasyChatWord_Useless,
120-
.alphabeticalOrder = 1,
120+
.alphabeticalOrder = EC_INDEX(EC_WORD_RICKETY),
121121
.enabled = TRUE,
122122
},
123123
[EC_INDEX(EC_WORD_DROOLING)] =
124124
{
125125
.text = gEasyChatWord_Drooling,
126-
.alphabeticalOrder = 27,
126+
.alphabeticalOrder = EC_INDEX(EC_WORD_RIPPED),
127127
.enabled = TRUE,
128128
},
129129
[EC_INDEX(EC_WORD_EXCITING)] =
130130
{
131131
.text = gEasyChatWord_Exciting,
132-
.alphabeticalOrder = 2,
132+
.alphabeticalOrder = EC_INDEX(EC_WORD_ROCK_SOLID),
133133
.enabled = TRUE,
134134
},
135135
[EC_INDEX(EC_WORD_THICK)] =
136136
{
137137
.text = gEasyChatWord_Thick,
138-
.alphabeticalOrder = 11,
138+
.alphabeticalOrder = EC_INDEX(EC_WORD_SADLY),
139139
.enabled = TRUE,
140140
},
141141
[EC_INDEX(EC_WORD_SMOOTH)] =
142142
{
143143
.text = gEasyChatWord_Smooth,
144-
.alphabeticalOrder = 22,
144+
.alphabeticalOrder = EC_INDEX(EC_WORD_SCATTER),
145145
.enabled = TRUE,
146146
},
147147
[EC_INDEX(EC_WORD_SLIMY)] =
148148
{
149149
.text = gEasyChatWord_Slimy,
150-
.alphabeticalOrder = 26,
150+
.alphabeticalOrder = EC_INDEX(EC_WORD_SHAKY),
151151
.enabled = TRUE,
152152
},
153153
[EC_INDEX(EC_WORD_THIN)] =
154154
{
155155
.text = gEasyChatWord_Thin,
156-
.alphabeticalOrder = 28,
156+
.alphabeticalOrder = EC_INDEX(EC_WORD_SHREDDED),
157157
.enabled = TRUE,
158158
},
159159
[EC_INDEX(EC_WORD_BREAK)] =
160160
{
161161
.text = gEasyChatWord_Break,
162-
.alphabeticalOrder = 10,
162+
.alphabeticalOrder = EC_INDEX(EC_WORD_SILKY),
163163
.enabled = TRUE,
164164
},
165165
[EC_INDEX(EC_WORD_VORACIOUS)] =
166166
{
167167
.text = gEasyChatWord_Voracious,
168-
.alphabeticalOrder = 18,
168+
.alphabeticalOrder = EC_INDEX(EC_WORD_SLIMY),
169169
.enabled = TRUE,
170170
},
171171
[EC_INDEX(EC_WORD_SCATTER)] =
172172
{
173173
.text = gEasyChatWord_Scatter,
174-
.alphabeticalOrder = 17,
174+
.alphabeticalOrder = EC_INDEX(EC_WORD_SMOOTH),
175175
.enabled = TRUE,
176176
},
177177
[EC_INDEX(EC_WORD_AWESOME)] =
178178
{
179179
.text = gEasyChatWord_Awesome,
180-
.alphabeticalOrder = 7,
180+
.alphabeticalOrder = EC_INDEX(EC_WORD_SPIRALING),
181181
.enabled = TRUE,
182182
},
183183
[EC_INDEX(EC_WORD_WIMPY)] =
184184
{
185185
.text = gEasyChatWord_Wimpy,
186-
.alphabeticalOrder = 16,
186+
.alphabeticalOrder = EC_INDEX(EC_WORD_THICK),
187187
.enabled = TRUE,
188188
},
189189
[EC_INDEX(EC_WORD_WOBBLY)] =
190190
{
191191
.text = gEasyChatWord_Wobbly,
192-
.alphabeticalOrder = 19,
192+
.alphabeticalOrder = EC_INDEX(EC_WORD_THIN),
193193
.enabled = TRUE,
194194
},
195195
[EC_INDEX(EC_WORD_SHAKY)] =
196196
{
197197
.text = gEasyChatWord_Shaky,
198-
.alphabeticalOrder = 8,
198+
.alphabeticalOrder = EC_INDEX(EC_WORD_THIRSTY),
199199
.enabled = TRUE,
200200
},
201201
[EC_INDEX(EC_WORD_RIPPED)] =
202202
{
203203
.text = gEasyChatWord_Ripped,
204-
.alphabeticalOrder = 5,
204+
.alphabeticalOrder = EC_INDEX(EC_WORD_TICKLISH),
205205
.enabled = TRUE,
206206
},
207207
[EC_INDEX(EC_WORD_SHREDDED)] =
208208
{
209209
.text = gEasyChatWord_Shredded,
210-
.alphabeticalOrder = 4,
210+
.alphabeticalOrder = EC_INDEX(EC_WORD_TIGHT),
211211
.enabled = TRUE,
212212
},
213213
[EC_INDEX(EC_WORD_INCREASING)] =
214214
{
215215
.text = gEasyChatWord_Increasing,
216-
.alphabeticalOrder = 6,
216+
.alphabeticalOrder = EC_INDEX(EC_WORD_TWIRLING),
217217
.enabled = TRUE,
218218
},
219219
[EC_INDEX(EC_WORD_YET)] =
220220
{
221221
.text = gEasyChatWord_Yet,
222-
.alphabeticalOrder = 13,
222+
.alphabeticalOrder = EC_INDEX(EC_WORD_USELESS),
223223
.enabled = TRUE,
224224
},
225225
[EC_INDEX(EC_WORD_DESTROYED)] =
226226
{
227227
.text = gEasyChatWord_Destroyed,
228-
.alphabeticalOrder = 21,
228+
.alphabeticalOrder = EC_INDEX(EC_WORD_VORACIOUS),
229229
.enabled = TRUE,
230230
},
231231
[EC_INDEX(EC_WORD_FIERY)] =
232232
{
233233
.text = gEasyChatWord_Fiery,
234-
.alphabeticalOrder = 0,
234+
.alphabeticalOrder = EC_INDEX(EC_WORD_WANDERING),
235235
.enabled = TRUE,
236236
},
237237
[EC_INDEX(EC_WORD_LOVEY_DOVEY)] =
238238
{
239239
.text = gEasyChatWord_LoveyDovey,
240-
.alphabeticalOrder = 24,
240+
.alphabeticalOrder = EC_INDEX(EC_WORD_WIMPY),
241241
.enabled = TRUE,
242242
},
243243
[EC_INDEX(EC_WORD_HAPPILY)] =
244244
{
245245
.text = gEasyChatWord_Happily,
246-
.alphabeticalOrder = 25,
246+
.alphabeticalOrder = EC_INDEX(EC_WORD_WOBBLY),
247247
.enabled = TRUE,
248248
},
249249
[EC_INDEX(EC_WORD_ANTICIPATION)] =
250250
{
251251
.text = gEasyChatWord_Anticipation,
252-
.alphabeticalOrder = 30,
252+
.alphabeticalOrder = EC_INDEX(EC_WORD_YET),
253253
.enabled = TRUE,
254254
},
255255
};

0 commit comments

Comments
 (0)