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