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