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