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