comparison Engine/texts.cpp @ 2499:68cdef6879a0

engine folder
author Ritor1
date Fri, 19 Sep 2014 02:57:42 +0600
parents
children a902abdfc7f2
comparison
equal deleted inserted replaced
2498:92eeeb5200f2 2499:68cdef6879a0
1 #define _CRTDBG_MAP_ALLOC
2 #include <stdlib.h>
3 #include <crtdbg.h>
4
5 #define _CRT_SECURE_NO_WARNINGS
6 #include <string.h>
7
8 #include "LOD.h"
9 #include "mm7_data.h"
10 #include "texts.h"
11
12
13 std::vector<char*> Tokenize( char* input, const char separator )
14 {
15 std::vector<char*> retVect;
16 retVect.push_back(input);
17 while (*input)
18 {
19 if (*input == separator)
20 {
21 *input = '\0';
22 retVect.push_back(input + 1);
23 }
24 ++input;
25 }
26 return retVect;
27 }
28
29
30
31 static char *pGlobalTXT_Raw=nullptr;
32
33 std::array<const char *, MAX_LOC_STRINGS> pGlobalTXT_LocalizationStrings;
34
35
36
37 int sprintfex(char *buf, const char *format, ...)
38 {
39 va_list args_ptr;
40 va_start(args_ptr, format);
41 {
42 vsprintf(buf, format, args_ptr);
43 }
44 va_end(args_ptr);
45
46 extern int sprintfex_internal(char *buf);
47 return sprintfex_internal(buf);
48 }
49
50 //----- (00452B95) --------------------------------------------------------
51 void SetSomeItemsNames()
52 {
53 pSomeItemsNames[0] = pGlobalTXT_LocalizationStrings[568];
54 pSomeItemsNames[1] = pGlobalTXT_LocalizationStrings[271];
55 pSomeItemsNames[2] = pGlobalTXT_LocalizationStrings[272];
56 pSomeItemsNames[3] = pGlobalTXT_LocalizationStrings[273];
57 pSomeItemsNames[4] = pGlobalTXT_LocalizationStrings[274];
58 pSomeItemsNames[5] = pGlobalTXT_LocalizationStrings[275];
59 pSomeItemsNames[6] = pGlobalTXT_LocalizationStrings[276];
60 pSomeItemsNames[7] = pGlobalTXT_LocalizationStrings[277];
61 pSomeItemsNames[8] = pGlobalTXT_LocalizationStrings[278];
62 pSomeItemsNames[9] = pGlobalTXT_LocalizationStrings[279];
63 pSomeItemsNames[10] = pGlobalTXT_LocalizationStrings[280];
64 pSomeItemsNames[11] = pGlobalTXT_LocalizationStrings[281];
65 pSomeItemsNames[12] = pGlobalTXT_LocalizationStrings[282];
66 pSomeItemsNames[13] = pGlobalTXT_LocalizationStrings[143];
67 }
68
69 //----- (00452C30) --------------------------------------------------------
70 char *RemoveQuotes(char *pStr)
71 {
72 if ( *pStr == '"' )
73 {
74 pStr[strlen(pStr) - 1] = 0;
75 return pStr + 1;
76 }
77 return pStr;
78 }
79
80 //----- (00452C49) --------------------------------------------------------
81 void InitializeGameText()
82 {
83 //char *v0; // ebx@1
84 /*char *v1; // eax@3
85 int v2; // ebp@4
86 char v3; // dl@5
87 char *v4; // ecx@5
88 int v5; // esi@9
89 //char **v6; // [sp+10h] [bp-8h]@3
90 signed int v7; // [sp+14h] [bp-4h]@4*/
91 char *test_string; // eax@3
92 char *tmp_pos; // eax@3
93 int step; // ebp@4
94 unsigned char c; // dl@5
95 int temp_str_len; // ecx@5
96 bool string_end; // [sp+14h] [bp-4h]@4
97 //v0 = 0;
98 free(pGlobalTXT_Raw);
99 pGlobalTXT_Raw = (char *)pEvents_LOD->LoadRaw("global.txt", 0);
100
101 /* strtok(pGlobalTXT_Raw, "\r");
102 strtok(nullptr, "\r");
103 v1 = strtok(nullptr, "\r") + 1;
104
105 for (uint i = 0; i < 677; ++i)
106 {
107 char *p = v1;
108 while (*++p != '\t' && *p);
109
110 pGlobalTXT_LocalizationStrings[i] = RemoveQuotes(p + 1);
111
112 v1 = strtok(nullptr, "\r") + 1;
113 }*/
114 strtok((char *)pGlobalTXT_Raw, "\r"); //Carriage Return 0D 13
115 strtok(NULL, "\r"); //Carriage Return 0D 13
116
117 for (int i = 0; i < MAX_LOC_STRINGS; ++i)
118 {
119 test_string = strtok(NULL, "\r") + 1; //Carriage Return 0D 13
120 step = 0;
121 string_end = false;
122 do
123 {
124 c = *(unsigned char*)test_string;
125 temp_str_len = 0;
126 if (c!= '\t' ) // Horizontal tab 09
127 {
128 do
129 {
130 if ( !c )
131 break;
132 c = *(test_string+temp_str_len+1);
133 temp_str_len++;
134 }
135 while ( c != '\t' ); // Horizontal tab 09
136 }
137 tmp_pos=test_string+temp_str_len;
138 if (*tmp_pos == 0)
139 string_end = true;
140 *tmp_pos = 0;
141 if ( temp_str_len == 0)
142 string_end = true;
143 else
144 {
145 if ( step == 1 )
146 pGlobalTXT_LocalizationStrings[i] = RemoveQuotes(test_string);
147 }
148 ++step;
149 test_string=tmp_pos+1;
150 }
151 while ( step <= 2 && !string_end);
152 }
153
154 SetSomeItemsNames();
155 aMonthNames[0] = pGlobalTXT_LocalizationStrings[415]; aMonthNames[1] = pGlobalTXT_LocalizationStrings[416];
156 aMonthNames[2] = pGlobalTXT_LocalizationStrings[417]; aMonthNames[3] = pGlobalTXT_LocalizationStrings[418];
157 aMonthNames[4] = pGlobalTXT_LocalizationStrings[419]; aMonthNames[5] = pGlobalTXT_LocalizationStrings[420];
158 aMonthNames[6] = pGlobalTXT_LocalizationStrings[421]; aMonthNames[7] = pGlobalTXT_LocalizationStrings[422];
159 aMonthNames[8] = pGlobalTXT_LocalizationStrings[423]; aMonthNames[9] = pGlobalTXT_LocalizationStrings[424];
160 aMonthNames[10] = pGlobalTXT_LocalizationStrings[425]; aMonthNames[11] = pGlobalTXT_LocalizationStrings[426];
161
162 aDayNames[0] = pGlobalTXT_LocalizationStrings[145]; aDayNames[1] = pGlobalTXT_LocalizationStrings[230];
163 aDayNames[2] = pGlobalTXT_LocalizationStrings[243]; aDayNames[3] = pGlobalTXT_LocalizationStrings[227];
164 aDayNames[4] = pGlobalTXT_LocalizationStrings[91]; aDayNames[5] = pGlobalTXT_LocalizationStrings[188];
165 aDayNames[6] = pGlobalTXT_LocalizationStrings[222];
166
167
168 pClassNames [0] = pGlobalTXT_LocalizationStrings[LOCSTR_KNIGHT];
169 pClassNames [1] = pGlobalTXT_LocalizationStrings[LOCSTR_CAVALIER];
170 pClassNames [2] = pGlobalTXT_LocalizationStrings[LOCSTR_CHAMPION];
171 pClassNames [3] = pGlobalTXT_LocalizationStrings[LOCSTR_BLK_KNIGHT];
172
173 pClassNames [4] = pGlobalTXT_LocalizationStrings[LOCSTR_THIEF];
174 pClassNames [5] = pGlobalTXT_LocalizationStrings[LOCSTR_ROGUE];
175 pClassNames [6] = pGlobalTXT_LocalizationStrings[LOCSTR_SPY];
176 pClassNames [7] = pGlobalTXT_LocalizationStrings[LOCSTR_ASSASIN];
177
178 pClassNames [8] = pGlobalTXT_LocalizationStrings[LOCSTR_MONK];
179 pClassNames [9] = pGlobalTXT_LocalizationStrings[26];
180 pClassNames [10] = pGlobalTXT_LocalizationStrings[432];
181 pClassNames [11] = pGlobalTXT_LocalizationStrings[27];
182
183 pClassNames [12] = pGlobalTXT_LocalizationStrings[LOCSTR_PALADIN];
184 pClassNames [13] = pGlobalTXT_LocalizationStrings[263];
185 pClassNames [14] = pGlobalTXT_LocalizationStrings[264];
186 pClassNames [15] = pGlobalTXT_LocalizationStrings[28];
187
188 pClassNames [16] = pGlobalTXT_LocalizationStrings[LOCSTR_ARCHER];
189 pClassNames [17] = pGlobalTXT_LocalizationStrings[267];
190 pClassNames [18] = pGlobalTXT_LocalizationStrings[119];
191 pClassNames [19] = pGlobalTXT_LocalizationStrings[124];
192
193 pClassNames [20] = pGlobalTXT_LocalizationStrings[LOCSTR_RANGER];
194 pClassNames [21] = pGlobalTXT_LocalizationStrings[370];
195 pClassNames [22] = pGlobalTXT_LocalizationStrings[33];
196 pClassNames [23] = pGlobalTXT_LocalizationStrings[40];
197
198 pClassNames [24] = pGlobalTXT_LocalizationStrings[LOCSTR_CLERIC];
199 pClassNames [25] = pGlobalTXT_LocalizationStrings[257];
200 pClassNames [26] = pGlobalTXT_LocalizationStrings[44];
201 pClassNames [27] = pGlobalTXT_LocalizationStrings[46];
202
203 pClassNames [28] = pGlobalTXT_LocalizationStrings[LOCSTR_DRUID];
204 pClassNames [29] = pGlobalTXT_LocalizationStrings[269];
205 pClassNames [30] = pGlobalTXT_LocalizationStrings[270];
206 pClassNames [31] = pGlobalTXT_LocalizationStrings[48];
207
208 pClassNames [32] = pGlobalTXT_LocalizationStrings[LOCSTR_SORCERER];
209 pClassNames [33] = pGlobalTXT_LocalizationStrings[260];
210 pClassNames [34] = pGlobalTXT_LocalizationStrings[261];
211 pClassNames [35] = pGlobalTXT_LocalizationStrings[49];
212
213 aCharacterConditionNames[0] = pGlobalTXT_LocalizationStrings[52];
214 aCharacterConditionNames[1] = pGlobalTXT_LocalizationStrings[241];
215 aCharacterConditionNames[2] = pGlobalTXT_LocalizationStrings[14];
216 aCharacterConditionNames[3] = pGlobalTXT_LocalizationStrings[4];
217 aCharacterConditionNames[4] = pGlobalTXT_LocalizationStrings[69];
218 aCharacterConditionNames[5] = pGlobalTXT_LocalizationStrings[117];
219 aCharacterConditionNames[6] = pGlobalTXT_LocalizationStrings[166];
220 aCharacterConditionNames[7] = pGlobalTXT_LocalizationStrings[65];
221 aCharacterConditionNames[8] = pGlobalTXT_LocalizationStrings[166];
222 aCharacterConditionNames[9] = pGlobalTXT_LocalizationStrings[65];
223 aCharacterConditionNames[10] = pGlobalTXT_LocalizationStrings[166];
224 aCharacterConditionNames[11] = pGlobalTXT_LocalizationStrings[65];
225 aCharacterConditionNames[12] = pGlobalTXT_LocalizationStrings[162];
226 aCharacterConditionNames[13] = pGlobalTXT_LocalizationStrings[231];
227 aCharacterConditionNames[14] = pGlobalTXT_LocalizationStrings[58];
228 aCharacterConditionNames[15] = pGlobalTXT_LocalizationStrings[220];
229 aCharacterConditionNames[16] = pGlobalTXT_LocalizationStrings[76];
230 aCharacterConditionNames[17] = pGlobalTXT_LocalizationStrings[601];
231 aCharacterConditionNames[18] = pGlobalTXT_LocalizationStrings[98];
232
233 pSkillNames[0] = pGlobalTXT_LocalizationStrings[271];
234 pSkillNames[1] = pGlobalTXT_LocalizationStrings[272];
235 pSkillNames[2] = pGlobalTXT_LocalizationStrings[273];
236 pSkillNames[3] = pGlobalTXT_LocalizationStrings[274];
237 pSkillNames[4] = pGlobalTXT_LocalizationStrings[275];
238 pSkillNames[5] = pGlobalTXT_LocalizationStrings[276];
239 pSkillNames[6] = pGlobalTXT_LocalizationStrings[277];
240 pSkillNames[7] = pGlobalTXT_LocalizationStrings[278];
241 pSkillNames[8] = pGlobalTXT_LocalizationStrings[279];
242 pSkillNames[9] = pGlobalTXT_LocalizationStrings[280];
243 pSkillNames[10] = pGlobalTXT_LocalizationStrings[281];
244 pSkillNames[11] = pGlobalTXT_LocalizationStrings[282];
245 pSkillNames[12] = pGlobalTXT_LocalizationStrings[283];
246 pSkillNames[13] = pGlobalTXT_LocalizationStrings[284];
247 pSkillNames[14] = pGlobalTXT_LocalizationStrings[285];
248 pSkillNames[15] = pGlobalTXT_LocalizationStrings[286];
249 pSkillNames[16] = pGlobalTXT_LocalizationStrings[289];
250 pSkillNames[17] = pGlobalTXT_LocalizationStrings[290];
251 pSkillNames[18] = pGlobalTXT_LocalizationStrings[291];
252 pSkillNames[19] = pGlobalTXT_LocalizationStrings[287];
253 pSkillNames[20] = pGlobalTXT_LocalizationStrings[288];
254 pSkillNames[21] = pGlobalTXT_LocalizationStrings[292];
255 pSkillNames[22] = pGlobalTXT_LocalizationStrings[293];
256 pSkillNames[23] = pGlobalTXT_LocalizationStrings[294];
257 pSkillNames[24] = pGlobalTXT_LocalizationStrings[295];
258 pSkillNames[25] = pGlobalTXT_LocalizationStrings[296];
259 pSkillNames[26] = pGlobalTXT_LocalizationStrings[297];
260 pSkillNames[27] = pGlobalTXT_LocalizationStrings[298];
261 pSkillNames[28] = pGlobalTXT_LocalizationStrings[299];
262 pSkillNames[29] = pGlobalTXT_LocalizationStrings[300];
263 pSkillNames[30] = pGlobalTXT_LocalizationStrings[50];
264 pSkillNames[31] = pGlobalTXT_LocalizationStrings[77];
265 pSkillNames[32] = pGlobalTXT_LocalizationStrings[88];
266 pSkillNames[33] = pGlobalTXT_LocalizationStrings[89];
267 pSkillNames[34] = pGlobalTXT_LocalizationStrings[90];
268 pSkillNames[35] = pGlobalTXT_LocalizationStrings[95];
269 pSkillNames[36] = pGlobalTXT_LocalizationStrings[301];
270 pSkillNames[37] = pGlobalTXT_LocalizationStrings[153];
271
272 aSpellSchoolNames[0] = pGlobalTXT_LocalizationStrings[87];
273 aSpellSchoolNames[1] = pGlobalTXT_LocalizationStrings[6];
274 aSpellSchoolNames[2] = pGlobalTXT_LocalizationStrings[240];
275 aSpellSchoolNames[3] = pGlobalTXT_LocalizationStrings[70];
276 aSpellSchoolNames[4] = pGlobalTXT_LocalizationStrings[214];
277 aSpellSchoolNames[5] = pGlobalTXT_LocalizationStrings[142];
278 aSpellSchoolNames[6] = pGlobalTXT_LocalizationStrings[29];
279 aSpellSchoolNames[7] = pGlobalTXT_LocalizationStrings[133];
280 aSpellSchoolNames[8] = pGlobalTXT_LocalizationStrings[54];
281
282 aAttributeNames[0] = pGlobalTXT_LocalizationStrings[144];
283 aAttributeNames[1] = pGlobalTXT_LocalizationStrings[116];
284 aAttributeNames[2] = pGlobalTXT_LocalizationStrings[163];
285 aAttributeNames[3] = pGlobalTXT_LocalizationStrings[75];
286 aAttributeNames[4] = pGlobalTXT_LocalizationStrings[1];
287 aAttributeNames[5] = pGlobalTXT_LocalizationStrings[211];
288 aAttributeNames[6] = pGlobalTXT_LocalizationStrings[136];
289
290 aAMPMNames[0] = pGlobalTXT_LocalizationStrings[472];
291 aAMPMNames[1] = pGlobalTXT_LocalizationStrings[473];
292
293 aNPCProfessionNames[0] = pGlobalTXT_LocalizationStrings[153];
294 aNPCProfessionNames[1] = pGlobalTXT_LocalizationStrings[308];
295 aNPCProfessionNames[2] = pGlobalTXT_LocalizationStrings[309];
296 aNPCProfessionNames[3] = pGlobalTXT_LocalizationStrings[7];
297 aNPCProfessionNames[4] = pGlobalTXT_LocalizationStrings[306];
298 aNPCProfessionNames[5] = pGlobalTXT_LocalizationStrings[310];
299 aNPCProfessionNames[6] = pGlobalTXT_LocalizationStrings[311];
300 aNPCProfessionNames[7] = pGlobalTXT_LocalizationStrings[312];
301 aNPCProfessionNames[8] = pGlobalTXT_LocalizationStrings[313];
302 aNPCProfessionNames[9] = pGlobalTXT_LocalizationStrings[314];
303 aNPCProfessionNames[10] = pGlobalTXT_LocalizationStrings[105];
304 aNPCProfessionNames[11] = pGlobalTXT_LocalizationStrings[315];
305 aNPCProfessionNames[12] = pGlobalTXT_LocalizationStrings[316];
306 aNPCProfessionNames[13] = pGlobalTXT_LocalizationStrings[317];
307 aNPCProfessionNames[14] = pGlobalTXT_LocalizationStrings[115];
308 aNPCProfessionNames[15] = pGlobalTXT_LocalizationStrings[318];
309 aNPCProfessionNames[16] = pGlobalTXT_LocalizationStrings[319];
310 aNPCProfessionNames[17] = pGlobalTXT_LocalizationStrings[320];
311 aNPCProfessionNames[18] = pGlobalTXT_LocalizationStrings[321];
312 aNPCProfessionNames[19] = pGlobalTXT_LocalizationStrings[322];
313 aNPCProfessionNames[20] = pGlobalTXT_LocalizationStrings[323];
314 aNPCProfessionNames[21] = pGlobalTXT_LocalizationStrings[293];
315 aNPCProfessionNames[22] = pGlobalTXT_LocalizationStrings[324];
316 aNPCProfessionNames[23] = pGlobalTXT_LocalizationStrings[498];
317 aNPCProfessionNames[24] = pGlobalTXT_LocalizationStrings[525];
318 aNPCProfessionNames[25] = pGlobalTXT_LocalizationStrings[327];
319 aNPCProfessionNames[26] = pGlobalTXT_LocalizationStrings[328];
320 aNPCProfessionNames[27] = pGlobalTXT_LocalizationStrings[329];
321 aNPCProfessionNames[28] = pGlobalTXT_LocalizationStrings[330];
322 aNPCProfessionNames[29] = pGlobalTXT_LocalizationStrings[331];
323 aNPCProfessionNames[30] = pGlobalTXT_LocalizationStrings[332];
324 aNPCProfessionNames[31] = pGlobalTXT_LocalizationStrings[333];
325 aNPCProfessionNames[32] = pGlobalTXT_LocalizationStrings[334];
326 aNPCProfessionNames[33] = pGlobalTXT_LocalizationStrings[335];
327 aNPCProfessionNames[34] = pGlobalTXT_LocalizationStrings[336];
328 aNPCProfessionNames[35] = pGlobalTXT_LocalizationStrings[337];
329 aNPCProfessionNames[36] = pGlobalTXT_LocalizationStrings[338];
330 aNPCProfessionNames[37] = pGlobalTXT_LocalizationStrings[339];
331 aNPCProfessionNames[38] = pGlobalTXT_LocalizationStrings[340];
332 aNPCProfessionNames[39] = pGlobalTXT_LocalizationStrings[341];
333 aNPCProfessionNames[40] = pGlobalTXT_LocalizationStrings[342];
334 aNPCProfessionNames[41] = pGlobalTXT_LocalizationStrings[343];
335 aNPCProfessionNames[42] = pGlobalTXT_LocalizationStrings[596];
336 aNPCProfessionNames[43] = pGlobalTXT_LocalizationStrings[345];
337 aNPCProfessionNames[44] = pGlobalTXT_LocalizationStrings[346];
338 aNPCProfessionNames[45] = pGlobalTXT_LocalizationStrings[347];
339 aNPCProfessionNames[46] = pGlobalTXT_LocalizationStrings[348];
340 aNPCProfessionNames[47] = pGlobalTXT_LocalizationStrings[349];
341 aNPCProfessionNames[48] = pGlobalTXT_LocalizationStrings[350];
342 aNPCProfessionNames[49] = pGlobalTXT_LocalizationStrings[597];
343 aNPCProfessionNames[50] = pGlobalTXT_LocalizationStrings[352];
344 aNPCProfessionNames[51] = pGlobalTXT_LocalizationStrings[353];
345 aNPCProfessionNames[52] = pGlobalTXT_LocalizationStrings[598];
346 aNPCProfessionNames[53] = pGlobalTXT_LocalizationStrings[344];
347 aNPCProfessionNames[54] = pGlobalTXT_LocalizationStrings[26];
348 aNPCProfessionNames[55] = pGlobalTXT_LocalizationStrings[599];
349 aNPCProfessionNames[56] = pGlobalTXT_LocalizationStrings[21];
350 aNPCProfessionNames[57] = pGlobalTXT_LocalizationStrings[600];
351 aNPCProfessionNames[58] = pGlobalTXT_LocalizationStrings[370];
352
353 aMoonPhaseNames[0] = pGlobalTXT_LocalizationStrings[150];
354 aMoonPhaseNames[1] = pGlobalTXT_LocalizationStrings[171];
355 aMoonPhaseNames[2] = pGlobalTXT_LocalizationStrings[102];
356 aMoonPhaseNames[3] = pGlobalTXT_LocalizationStrings[169];
357 aMoonPhaseNames[4] = pGlobalTXT_LocalizationStrings[92];
358
359 aSpellNames[0] = pGlobalTXT_LocalizationStrings[202];
360 aSpellNames[1] = pGlobalTXT_LocalizationStrings[204];
361 aSpellNames[2] = pGlobalTXT_LocalizationStrings[219];
362 aSpellNames[3] = pGlobalTXT_LocalizationStrings[215];
363 aSpellNames[4] = pGlobalTXT_LocalizationStrings[208];
364 aSpellNames[5] = pGlobalTXT_LocalizationStrings[454];
365 aSpellNames[6] = pGlobalTXT_LocalizationStrings[24];
366 aSpellNames[7] = pGlobalTXT_LocalizationStrings[455];
367 aSpellNames[8] = pGlobalTXT_LocalizationStrings[441];
368 aSpellNames[9] = pGlobalTXT_LocalizationStrings[440];
369 aSpellNames[10] = pGlobalTXT_LocalizationStrings[218];
370 aSpellNames[11] = pGlobalTXT_LocalizationStrings[217];
371 aSpellNames[12] = pGlobalTXT_LocalizationStrings[213];
372 aSpellNames[13] = pGlobalTXT_LocalizationStrings[462];
373 aSpellNames[14] = pGlobalTXT_LocalizationStrings[279];
374 aSpellNames[15] = pGlobalTXT_LocalizationStrings[442];
375 aSpellNames[16] = pGlobalTXT_LocalizationStrings[452];
376 aSpellNames[17] = pGlobalTXT_LocalizationStrings[194];
377 aSpellNames[18] = pGlobalTXT_LocalizationStrings[456];
378 aSpellNames[19] = pGlobalTXT_LocalizationStrings[453];
379 aSpellNames[20] = pGlobalTXT_LocalizationStrings[202];
380 aSpellNames[21] = pGlobalTXT_LocalizationStrings[443];
381 aSpellNames[22] = pGlobalTXT_LocalizationStrings[204];
382 aSpellNames[23] = pGlobalTXT_LocalizationStrings[208];
383 aSpellNames[24] = pGlobalTXT_LocalizationStrings[221];
384 aSpellNames[25] = pGlobalTXT_LocalizationStrings[24];
385 aSpellNames[26] = pGlobalTXT_LocalizationStrings[228];
386 aSpellNames[27] = pGlobalTXT_LocalizationStrings[441];
387 aSpellNames[28] = pGlobalTXT_LocalizationStrings[440];
388 aSpellNames[29] = pGlobalTXT_LocalizationStrings[213];
389 aSpellNames[30] = pGlobalTXT_LocalizationStrings[229];
390 aSpellNames[31] = pGlobalTXT_LocalizationStrings[233];
391 aSpellNames[32] = pGlobalTXT_LocalizationStrings[234];
392 aSpellNames[33] = pGlobalTXT_LocalizationStrings[279];
393 aSpellNames[34] = pGlobalTXT_LocalizationStrings[442];
394 aSpellNames[35] = pGlobalTXT_LocalizationStrings[235];
395 aSpellNames[36] = pGlobalTXT_LocalizationStrings[246];
396 aSpellNames[37] = pGlobalTXT_LocalizationStrings[247];
397 aSpellNames[38] = pGlobalTXT_LocalizationStrings[248];
398 aSpellNames[39] = pGlobalTXT_LocalizationStrings[674];
399 aSpellNames[40] = pGlobalTXT_LocalizationStrings[249];
400 aSpellNames[41] = pGlobalTXT_LocalizationStrings[258];
401 aSpellNames[42] = pGlobalTXT_LocalizationStrings[194];
402 aSpellNames[43] = pGlobalTXT_LocalizationStrings[657];
403 }
404 //----- (00413FF1) --------------------------------------------------------
405 void SetMonthNames()
406 {
407 aMonthNames[0] = pGlobalTXT_LocalizationStrings[415];
408 aMonthNames[1] = pGlobalTXT_LocalizationStrings[416];
409 aMonthNames[2] = pGlobalTXT_LocalizationStrings[417];
410 aMonthNames[3] = pGlobalTXT_LocalizationStrings[418];
411 aMonthNames[4] = pGlobalTXT_LocalizationStrings[419];
412 aMonthNames[5] = pGlobalTXT_LocalizationStrings[420];
413 aMonthNames[6] = pGlobalTXT_LocalizationStrings[421];
414 aMonthNames[7] = pGlobalTXT_LocalizationStrings[422];
415 aMonthNames[8] = pGlobalTXT_LocalizationStrings[423];
416 aMonthNames[9] = pGlobalTXT_LocalizationStrings[424];
417 aMonthNames[10] = pGlobalTXT_LocalizationStrings[425];
418 aMonthNames[11] = pGlobalTXT_LocalizationStrings[426];
419 }
420
421 //----- (0041406F) --------------------------------------------------------
422 void SetDayNames()
423 {
424 aDayNames[0] = pGlobalTXT_LocalizationStrings[145];
425 aDayNames[1] = pGlobalTXT_LocalizationStrings[230];
426 aDayNames[2] = pGlobalTXT_LocalizationStrings[243];
427 aDayNames[3] = pGlobalTXT_LocalizationStrings[227];
428 aDayNames[4] = pGlobalTXT_LocalizationStrings[91];
429 aDayNames[5] = pGlobalTXT_LocalizationStrings[188];
430 aDayNames[6] = pGlobalTXT_LocalizationStrings[222];
431 }
432
433 //----- (004140BB) --------------------------------------------------------
434 void SetSpellSchoolNames()
435 {
436 aSpellSchoolNames[0] = pGlobalTXT_LocalizationStrings[87];
437 aSpellSchoolNames[1] = pGlobalTXT_LocalizationStrings[6];
438 aSpellSchoolNames[2] = pGlobalTXT_LocalizationStrings[240];
439 aSpellSchoolNames[3] = pGlobalTXT_LocalizationStrings[70];
440 aSpellSchoolNames[4] = pGlobalTXT_LocalizationStrings[214];
441 aSpellSchoolNames[5] = pGlobalTXT_LocalizationStrings[142];
442 aSpellSchoolNames[6] = pGlobalTXT_LocalizationStrings[29];
443 aSpellSchoolNames[7] = pGlobalTXT_LocalizationStrings[133];
444 aSpellSchoolNames[8] = pGlobalTXT_LocalizationStrings[54];
445 }
446
447 //----- (0041411B) --------------------------------------------------------
448 void SetAttributeNames()
449 {
450 aAttributeNames[0] = pGlobalTXT_LocalizationStrings[144];
451 aAttributeNames[1] = pGlobalTXT_LocalizationStrings[116];
452 aAttributeNames[2] = pGlobalTXT_LocalizationStrings[163];
453 aAttributeNames[3] = pGlobalTXT_LocalizationStrings[75];
454 aAttributeNames[4] = pGlobalTXT_LocalizationStrings[1];
455 aAttributeNames[5] = pGlobalTXT_LocalizationStrings[211];
456 aAttributeNames[6] = pGlobalTXT_LocalizationStrings[136];
457 }
458 //----- (00410AF5) --------------------------------------------------------
459 void SetMoonPhaseNames()
460 {
461 aMoonPhaseNames[0] = pGlobalTXT_LocalizationStrings[150];
462 aMoonPhaseNames[1] = pGlobalTXT_LocalizationStrings[171];
463 aMoonPhaseNames[2] = pGlobalTXT_LocalizationStrings[102];
464 aMoonPhaseNames[3] = pGlobalTXT_LocalizationStrings[169];
465 aMoonPhaseNames[4] = pGlobalTXT_LocalizationStrings[92];
466 }
467
468