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