0
|
1 #include <stdlib.h>
|
|
2
|
|
3 #include "Spells.h"
|
|
4 #include "Overlays.h"
|
|
5 #include "Allocator.h"
|
|
6 #include "LOD.h"
|
|
7 #include "stru123.h"
|
189
|
8 #include "texts.h"
|
0
|
9
|
|
10 #include "mm7_data.h"
|
|
11
|
|
12
|
|
13
|
|
14
|
|
15
|
|
16 struct SpellStats *pSpellStats;
|
|
17
|
|
18
|
488
|
19 stru324_spell stru_4E3ACC[100] =
|
|
20 {
|
|
21 {10, 0},
|
|
22 {1000, 0}, {1010, 0}, {1020, 0}, {1030, 0}, {1040, 0}, {1050, 0}, {1060, 0}, {1070, 0}, {1080, 0}, {1090, 0}, {1100, 0},
|
|
23 {2000, 0}, {2010, 0}, {2020, 0}, {2030, 0}, {2040, 0}, {2050, 0}, {2060, 0}, {2070, 0}, {2080, 0}, {2090, 0}, {2100, 0},
|
|
24 {3000, 0}, {3010, 0}, {3020, 0}, {3030, 0}, {3040, 0}, {3050, 0}, {3060, 0}, {3070, 0}, {3080, 0}, {3090, 0}, {3100, 0},
|
|
25 {4000, 0}, {4010, 0}, {4020, 0}, {4030, 0}, {4040, 0}, {4050, 0}, {4060, 0}, {4070, 0}, {4080, 0}, {4090, 0}, {4100, 0},
|
|
26 {5000, 0}, {5010, 0}, {5020, 0}, {5030, 0}, {5040, 0}, {5050, 0}, {5060, 0}, {5070, 0}, {5080, 0}, {5090, 0}, {5100, 0},
|
|
27 {6000, 0}, {6010, 0}, {6020, 0}, {6030, 0}, {6040, 0}, {6050, 0}, {6060, 0}, {6070, 0}, {6080, 0}, {6090, 0}, {6100, 0},
|
|
28 {7000, 0}, {7010, 0}, {7020, 0}, {7030, 0}, {7040, 0}, {7050, 0}, {7060, 0}, {7070, 0}, {7080, 0}, {7090, 0}, {7100, 0},
|
|
29 {8000, 0}, {8010, 0}, {8020, 0}, {8030, 0}, {8040, 0}, {8050, 0}, {8060, 0}, {8070, 0}, {8080, 0}, {8090, 0}, {8100, 0},
|
|
30 {9000, 0}, {9010, 0}, {9020, 0}, {9030, 0}, {9040, 0}, {9050, 0}, {9060, 0}, {9070, 0}, {9080, 0}, {9090, 0}, {9100, 0}
|
|
31 //{545, 0},
|
|
32 //{545, 0},
|
|
33 //{555, 0}
|
|
34 };
|
363
|
35 //9 spellbook pages 11 spells per page 9*11 =99 +1 zero struct at 0. It counted from 1!
|
192
|
36 SpellData pSpellDatas[100]={
|
363
|
37 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
|
|
38
|
|
39 {1, 1, 1, 1, 60, 60, 60, 40, 0, 0},//0
|
192
|
40 {2, 2, 2, 2, 110, 110, 100, 90, 768, 0},
|
|
41 {3, 3, 3, 3, 120, 120, 120, 120, 0, 0},
|
|
42 {4, 4, 4, 4, 120, 120, 120, 120, 0, 0},
|
|
43 {5, 5, 5, 5, 120, 120, 120, 120, 0, 0},
|
|
44 {8, 8, 8, 8, 100, 100, 90, 80, 1536, 0},
|
|
45 {10, 10, 10, 10, 150, 150, 150, 150, 1536, 0},
|
|
46 {15, 15, 15, 15, 120, 120, 120, 120, 1536, 0},
|
|
47 {20, 20, 20, 20, 100, 100, 100, 90, 264, 0},
|
|
48 {25, 25, 25, 25, 100, 100, 100, 90, 268, 0},
|
|
49 {30, 30, 30, 30, 90, 90, 90, 90, 3855, 0},
|
363
|
50
|
|
51 {1, 1, 1, 0, 60, 60, 60, 60, 0, 0}, //1
|
192
|
52 {2, 2, 2, 2, 120, 120, 120, 100, 0, 0},
|
|
53 {3, 3, 3, 3, 120, 120, 120, 120, 0, 0},
|
|
54 {4, 4, 4, 4, 110, 100, 90, 80, 258, 0},
|
|
55 {5, 5, 5, 5, 90, 90, 70, 50, 0, 0},
|
|
56 {8, 8, 8, 8, 120, 120, 120, 120, 0, 0},
|
|
57 {10, 10, 10, 10, 100, 100, 90, 70, 2048, 0},
|
|
58 {15, 15, 15, 15, 200, 200, 200, 200, 0, 0},
|
|
59 {20, 20, 20, 20, 100, 100, 100, 90, 2570, 0},
|
|
60 {25, 25, 25, 25, 250, 250, 250, 250, 0, 0},
|
|
61 {30, 30, 30, 30, 90, 90, 90, 90, 276, 0},
|
363
|
62
|
|
63 {1, 1, 1, 1, 60, 60, 60, 20, 0, 0}, //2
|
192
|
64 {2, 2, 2, 2, 110, 100, 90, 70, 514, 0},
|
|
65 {3, 3, 3, 3, 120, 120, 120, 120, 0, 0},
|
|
66 {4, 4, 4, 4, 110, 100, 90, 80, 1024, 0},
|
|
67 {5, 5, 5, 5, 150, 150, 150, 150, 0, 0},
|
|
68 {8, 8, 8, 8, 200, 200, 200, 200, 0, 0},
|
|
69 {10, 10, 10, 10, 100, 100, 90, 80, 2313, 0},
|
|
70 {15, 15, 15, 15, 140, 140, 140, 140, 0, 0},
|
|
71 {20, 20, 20, 20, 200, 200, 200, 200, 0, 0},
|
|
72 {25, 25, 25, 25, 80, 80, 80, 80, 780, 0},
|
|
73 {30, 30, 30, 30, 250, 250, 250, 250, 0, 0},
|
363
|
74
|
|
75 {1, 1, 1, 1, 80, 80, 80, 80, 0, 0}, //3
|
192
|
76 {2, 2, 2, 2, 100, 100, 100, 100, 0, 0},
|
|
77 {3, 3, 3, 3, 120, 120, 120, 120, 0, 0},
|
|
78 {4, 4, 4, 4, 110, 100, 90, 80, 773, 0},
|
|
79 {5, 5, 5, 5, 120, 120, 120, 120, 0, 0},
|
|
80 {8, 8, 8, 8, 100, 100, 90, 80, 2304, 0},
|
|
81 {10, 10, 10, 10, 140, 140, 140, 140, 0, 0},
|
|
82 {15, 15, 15, 15, 90, 90, 90, 80, 2048, 0},
|
|
83 {20, 20, 20, 20, 150, 150, 150, 150, 0, 0},
|
|
84 {25, 25, 25, 25, 100, 100, 100, 90, 276, 0},
|
|
85 {30, 30, 30, 30, 90, 90, 90, 90, 25, 0},
|
363
|
86
|
|
87 {1, 1, 1, 1, 100, 100, 100, 100, 0, 0}, //4
|
192
|
88 {2, 2, 2, 2, 100, 100, 100, 100, 0, 0},
|
|
89 {3, 3, 3, 3, 90, 90, 90, 90, 0, 0},
|
|
90 {4, 4, 4, 4, 120, 120, 120, 120, 0, 0},
|
|
91 {5, 5, 5, 5, 120, 120, 120, 120, 0, 0},
|
|
92 {8, 8, 8, 8, 120, 120, 120, 120, 0, 0},
|
|
93 {10, 10, 10, 10, 120, 120, 120, 120, 0, 0},
|
|
94 {15, 15, 15, 15, 100, 100, 100, 100, 2058, 0},
|
|
95 {20, 20, 20, 20, 240, 240, 240, 240, 0, 0},
|
|
96 {25, 25, 25, 25, 150, 150, 150, 150, 0, 0},
|
|
97 {30, 30, 30, 30, 1000, 1000, 1000, 1000, 0, 0},
|
363
|
98
|
|
99 {1, 1, 1, 1, 120, 120, 120, 120, 0, 0}, //5
|
192
|
100 {2, 2, 2, 2, 110, 110, 110, 110, 771, 0},
|
|
101 {3, 3, 3, 3, 120, 120, 120, 120, 0, 0},
|
|
102 {4, 4, 4, 4, 110, 100, 90, 80, 0, 0},
|
|
103 {5, 5, 5, 5, 100, 100, 100, 100, 0, 0},
|
|
104 {8, 8, 8, 8, 120, 120, 120, 120, 0, 0},
|
|
105 {10, 10, 10, 10, 120, 120, 120, 120, 0, 0},
|
|
106 {15, 15, 15, 15, 80, 80, 80, 80, 0, 0},
|
|
107 {20, 20, 20, 20, 120, 120, 120, 120, 0, 0},
|
|
108 {25, 25, 25, 25, 110, 110, 110, 100, 268, 0},
|
|
109 {30, 30, 30, 30, 120, 120, 120, 120, 0, 0},
|
363
|
110
|
|
111 {1, 1, 1, 1, 120, 120, 120, 120, 0, 0}, //6
|
192
|
112 {2, 2, 2, 2, 100, 100, 100, 100, 0, 0},
|
|
113 {3, 3, 3, 3, 120, 120, 120, 120, 0, 0},
|
|
114 {4, 4, 4, 4, 110, 100, 90, 80, 520, 0},
|
|
115 {5, 5, 5, 5, 110, 110, 110, 110, 0, 0},
|
|
116 {8, 8, 8, 8, 120, 120, 120, 120, 0, 0},
|
|
117 {10, 10, 10, 10, 120, 120, 120, 120, 0, 0},
|
|
118 {15, 15, 15, 15, 120, 120, 120, 120, 0, 0},
|
|
119 {20, 20, 20, 20, 120, 120, 120, 120, 0, 0},
|
|
120 {25, 25, 25, 25, 110, 110, 110, 100, 1310, 0},
|
|
121 {30, 30, 30, 30, 100, 100, 100, 100, 0, 0},
|
363
|
122
|
|
123 {5, 5, 5, 5, 110, 100, 90, 80, 1024, 0}, //7
|
192
|
124 {10, 10, 10, 10, 120, 110, 100, 90, 4112, 0},
|
|
125 {15, 15, 15, 15, 120, 110, 100, 90, 0, 0},
|
|
126 {20, 20, 20, 20, 160, 140, 120, 100, 0, 0},
|
|
127 {25, 25, 25, 25, 140, 140, 140, 140, 0, 0},
|
|
128 {30, 30, 30, 30, 500, 500, 500, 500, 0, 0},
|
|
129 {35, 35, 35, 35, 135, 135, 120, 100, 281, 0},
|
|
130 {40, 40, 40, 40, 500, 500, 500, 500, 0, 0},
|
|
131 {45, 45, 45, 45, 250, 250, 250, 250, 0, 0},
|
|
132 {50, 50, 50, 50, 150, 150, 150, 135, 5140, 0},
|
|
133 {55, 55, 55, 55, 300, 300, 300, 300, 0, 0},
|
363
|
134
|
|
135 {10, 10, 10, 10, 140, 140, 140, 140, 0, 0}, //8
|
192
|
136 {15, 15, 15, 15, 120, 110, 100, 90, 2585, 0},
|
|
137 {20, 20, 20, 20, 120, 100, 90, 120, 0, 0},
|
|
138 {25, 25, 25, 25, 120, 120, 120, 120, 0, 0},
|
|
139 {30, 30, 30, 30, 90, 90, 80, 70, 1542, 0},
|
|
140 {35, 35, 35, 35, 120, 120, 100, 80, 0, 0},
|
|
141 {40, 40, 40, 40, 110, 110, 110, 110, 0, 0},
|
|
142 {45, 45, 45, 45, 200, 200, 200, 150, 0, 0},
|
|
143 {50, 50, 50, 50, 120, 120, 120, 100, 6400, 0},
|
|
144 {55, 55, 55, 55, 250, 250, 250, 250, 306, 0},
|
|
145 {60, 60, 60, 60, 300, 300, 300, 300, 2073, 0}
|
|
146 };
|
0
|
147
|
357
|
148 unsigned char pSpellbookSpellIndices[9][12] = // 4E2430
|
363
|
149 { //0 1 2 3 4 5 6 7 8 9 10 11
|
357
|
150 {0, 3, 1, 8, 11, 7, 4, 10, 6, 2, 5, 9},
|
|
151 {0, 11, 2, 9, 6, 8, 5, 10, 3, 7, 1, 4},
|
|
152 {0, 4, 8, 9, 1, 10, 3, 11, 7, 6, 2, 5},
|
|
153 {0, 7, 10, 8, 2, 11, 1, 5, 3, 6, 4, 9},
|
|
154 {0, 5, 10, 11, 7, 2, 8, 1, 4, 9, 3, 6},
|
|
155 {0, 5, 9, 8, 3, 7, 6, 4, 1, 11, 2, 10},
|
|
156 {0, 1, 6, 9, 3, 5, 8, 11, 7, 10, 4, 2},
|
|
157 {0, 1, 10, 11, 9, 4, 3, 6, 5, 7, 8, 2},
|
|
158 {0, 9, 3, 7, 1, 5, 2, 10, 11, 8, 6, 4}
|
|
159 };
|
0
|
160
|
363
|
161 struct SpellBookIconPos pIconPos[9][12]={
|
|
162
|
|
163 {{ 0, 0}, { 17, 13}, {115, 2}, {217, 15},
|
|
164 {299, 6}, { 28, 125}, {130, 133}, {294, 114},
|
|
165 { 11, 232}, {134, 233}, {237, 171}, {296, 231}},
|
0
|
166
|
363
|
167 {{ 0, 0}, {19, 9}, {117, 3}, {206, 13},
|
|
168 {285, 7}, {16, 123}, {113, 101}, {201, 118},
|
|
169 {317, 110}, {11, 230}, {149, 236}, {296, 234}},
|
357
|
170
|
363
|
171 {{ 0, 0}, {17, 9}, {140, 0}, {210, 34},
|
|
172 {293, 5}, {15, 98}, { 78, 121}, {175, 136},
|
|
173 {301, 115}, {15, 226}, {154, 225}, {272, 220}},
|
357
|
174
|
363
|
175 {{ 0, 0}, { 7, 9}, {156, 2}, {277, 9},
|
|
176 { 11, 117}, {111, 82}, {180, 102}, {303, 108},
|
|
177 { 10, 229}, {120, 221}, {201, 217}, {296, 225}},
|
357
|
178
|
363
|
179 {{ 0, 0}, {18, 8}, { 89, 15}, {192, 14},
|
|
180 {292, 7}, {22, 129}, {125, 146}, {217, 136},
|
|
181 {305, 115}, {22, 226}, {174, 237}, {290, 231}},
|
357
|
182
|
363
|
183 {{ 0, 0}, { 18, 12}, {148, 9}, {292, 7},
|
|
184 { 17, 122}, {121, 99}, {220, 87}, {293, 112},
|
|
185 { 13, 236}, {128, 213}, {220, 223}, {315, 223}},
|
357
|
186
|
363
|
187 {{ 0, 0}, {23, 14}, {127, 8}, {204, 0},
|
|
188 {306, 8}, {14, 115}, {122, 132}, {200, 116},
|
|
189 {293, 122}, {20, 228}, {154, 228}, {294, 239}},
|
357
|
190
|
363
|
191 {{ 0, 0}, { 19, 14}, {124, 10}, {283, 12},
|
|
192 { 8, 105}, {113, 89}, {190, 82}, {298, 108},
|
|
193 { 18, 181}, {101, 204}, {204, 203}, {285, 218}},
|
357
|
194
|
363
|
195 {{ 0, 0}, {18, 17}, {110, 16}, {201, 15},
|
|
196 {307, 15}, {18, 148}, {125, 166}, {201, 123},
|
|
197 {275, 120}, {28, 235}, {217, 222}, {324, 216}}};
|
0
|
198
|
|
199
|
|
200 //----- (0042EB31) --------------------------------------------------------
|
|
201 bool SpellBuff::NotExpired()
|
|
202 {
|
189
|
203 return (signed __int64)this->uExpireTime > 0 ? true:false;
|
0
|
204 }
|
|
205
|
|
206
|
|
207 //----- (00458585) --------------------------------------------------------
|
|
208 void SpellBuff::Reset()
|
|
209 {
|
|
210 SpellBuff *v1; // esi@1
|
|
211 unsigned __int16 v2; // ax@1
|
|
212
|
|
213 this->uSkill = 0;
|
|
214 this->uPower = 0;
|
|
215 this->uExpireTime = 0i64;
|
|
216 this->uCaster = 0;
|
|
217 this->uFlags = 0;
|
189
|
218 if ( this->uOverlayID )
|
0
|
219 {
|
189
|
220 ((OtherOverlay *)&stru_5E4C90._decor_events[20 * this->uOverlayID + 105])->Reset();
|
142
|
221 pOtherOverlayList->bRedraw = true;
|
189
|
222 this->uOverlayID = 0;
|
0
|
223 }
|
|
224 }
|
|
225
|
|
226 //----- (004585CA) --------------------------------------------------------
|
|
227 signed int SpellBuff::_4585CA(__int64 a2)
|
|
228 {
|
|
229 signed int result; // eax@3
|
|
230
|
|
231 if ( this->uExpireTime && (signed __int64)this->uExpireTime < a2 )
|
|
232 {
|
|
233 this->uExpireTime = 0i64;
|
|
234 this->uPower = 0;
|
|
235 this->uSkill = 0;
|
|
236 this->uOverlayID = 0;
|
|
237 result = 1;
|
|
238 }
|
|
239 else
|
|
240 {
|
|
241 result = 0;
|
|
242 }
|
|
243 return result;
|
|
244 }
|
|
245
|
|
246 //----- (004584E0) --------------------------------------------------------
|
|
247 signed int SpellBuff::Apply(unsigned __int64 uExpireTime, unsigned __int16 uSkillLevel, unsigned __int16 uPower, int a5, unsigned __int8 a6)
|
|
248 {
|
|
249 SpellBuff *v6; // esi@1
|
|
250 signed int result; // eax@3
|
|
251 int v8; // eax@4
|
|
252
|
|
253 v6 = this;
|
|
254 if ( this->uExpireTime && (signed __int64)uExpireTime < (signed __int64)this->uExpireTime )
|
|
255 {
|
|
256 result = 0;
|
|
257 }
|
|
258 else
|
|
259 {
|
|
260 this->uSkill = uSkillLevel;
|
|
261 this->uPower = uPower;
|
|
262 LOWORD(v8) = this->uOverlayID;
|
|
263 this->uExpireTime = uExpireTime;
|
|
264 if ( (short)v8 )
|
|
265 {
|
|
266 v8 = (unsigned __int16)v8;
|
|
267 if ( (unsigned __int16)v8 != a5 )
|
|
268 {
|
|
269 ((OtherOverlay *)&stru_5E4C90._decor_events[20 * v8 + 105])->Reset();
|
142
|
270 pOtherOverlayList->bRedraw = true;
|
0
|
271 v6->uOverlayID = 0;
|
|
272 }
|
|
273 }
|
|
274 v6->uOverlayID = a5;
|
|
275 v6->uCaster = a6;
|
|
276 result = 1;
|
|
277 }
|
|
278 return result;
|
|
279 }
|
|
280
|
|
281 //----- (0045384A) --------------------------------------------------------
|
|
282 void SpellStats::Initialize()
|
191
|
283 {
|
0
|
284
|
191
|
285 int decode_step;
|
|
286 char* test_string;
|
|
287 bool break_loop;
|
|
288 unsigned char c;
|
|
289 unsigned int temp_str_len;
|
|
290 char* tmp_pos;
|
189
|
291
|
191
|
292 if ( pSpellsTXT_Raw )
|
|
293 pAllocator->FreeChunk(pSpellsTXT_Raw);
|
|
294 pSpellsTXT_Raw = NULL;
|
189
|
295
|
191
|
296 pSpellsTXT_Raw = (char *)pEvents_LOD->LoadRaw("spells.txt", 0);
|
|
297 strtok(pSpellsTXT_Raw, "\r");
|
|
298 strtok(NULL, "\r");
|
|
299 for(int i=1; i<100; ++i)
|
|
300 {
|
|
301 test_string=strtok(NULL, "\r")+1;
|
|
302 decode_step =0;
|
|
303 break_loop=false;
|
|
304 do
|
|
305 {
|
|
306 c = *(unsigned char*)test_string;
|
|
307 temp_str_len = 0;
|
|
308 while((c!='\t')&&(c>0))
|
|
309 {
|
|
310 ++temp_str_len;
|
|
311 c=test_string[temp_str_len];
|
|
312 }
|
|
313 tmp_pos=test_string+temp_str_len;
|
|
314 if (*tmp_pos == 0)
|
|
315 break_loop = true;
|
|
316 *tmp_pos = 0;
|
|
317 if (temp_str_len)
|
|
318 {
|
|
319 switch (decode_step)
|
|
320 {
|
|
321 case 2:
|
|
322 pInfos[i].pName=RemoveQuotes(test_string);
|
|
323 break;
|
|
324 case 3:
|
192
|
325 pInfos[i].uSchool = SPELL_SCHOOL_NONE;
|
191
|
326 if (!_strcmpi("fire", test_string) )
|
|
327 {
|
192
|
328 pInfos[i].uSchool =SPELL_SCHOOL_FIRE;
|
191
|
329 break;
|
|
330 }
|
|
331 if ( !_strcmpi("air", test_string) )
|
|
332 {
|
192
|
333 pInfos[i].uSchool = SPELL_SCHOOL_AIR;
|
191
|
334 break;
|
|
335 }
|
|
336 if ( !_strcmpi("water", test_string))
|
|
337 {
|
192
|
338 pInfos[i].uSchool = SPELL_SCHOOL_WATER;
|
191
|
339 break;
|
|
340 }
|
|
341 if ( !_strcmpi("earth", test_string))
|
|
342 {
|
192
|
343 pInfos[i].uSchool = SPELL_SCHOOL_EARTH;
|
191
|
344 break;
|
|
345 }
|
|
346 if ( !_strcmpi("spirit", test_string))
|
|
347 {
|
192
|
348 pInfos[i].uSchool = SPELL_SCHOOL_SPIRIT;
|
191
|
349 break;
|
|
350 }
|
|
351 if ( !_strcmpi("mind", test_string))
|
|
352 {
|
192
|
353 pInfos[i].uSchool = SPELL_SCHOOL_MIND;
|
191
|
354 break;
|
|
355 }
|
|
356 if ( !_strcmpi("body", test_string) )
|
|
357 {
|
192
|
358 pInfos[i].uSchool = SPELL_SCHOOL_BODY;
|
191
|
359 break;
|
|
360 }
|
|
361 if ( !_strcmpi("light", test_string) )
|
|
362 {
|
192
|
363 pInfos[i].uSchool = SPELL_SCHOOL_LIGHT;
|
191
|
364 break;
|
|
365 }
|
|
366 if ( !_strcmpi("dark", test_string))
|
|
367 {
|
192
|
368 pInfos[i].uSchool = SPELL_SCHOOL_DARK;
|
191
|
369 break;
|
|
370 }
|
|
371
|
|
372 if ( !_strcmpi("magic", test_string))
|
|
373 {
|
192
|
374 pInfos[i].uSchool = SPELL_SCHOOL_MAGIC;
|
191
|
375 break;
|
|
376 }
|
|
377 break;
|
|
378 case 4:
|
|
379 pInfos[i].pShortName=RemoveQuotes(test_string);
|
|
380 break;
|
|
381 case 5:
|
|
382 pInfos[i].pDescription=RemoveQuotes(test_string);
|
|
383 break;
|
|
384 case 6:
|
|
385 pInfos[i].pBasicSkillDesc=RemoveQuotes(test_string);
|
|
386 break;
|
|
387 case 7:
|
|
388 pInfos[i].pExpertSkillDesc=RemoveQuotes(test_string);
|
|
389 break;
|
|
390 case 8:
|
|
391 pInfos[i].pMasterSkillDesc=RemoveQuotes(test_string);
|
|
392 break;
|
|
393 case 9:
|
|
394 pInfos[i].pGrandmasterSkillDesc=RemoveQuotes(test_string);
|
|
395 break;
|
|
396 case 10:
|
|
397 int in_string_pos=0;
|
192
|
398 unsigned char test;
|
191
|
399 int in_str_len=strlen(test_string);
|
192
|
400 for (int j=0; j<in_str_len; ++j)
|
|
401 {
|
|
402 test= tolower(test_string[j]);
|
|
403 switch (test)
|
|
404 {
|
|
405 case 109:
|
|
406 pSpellDatas[i].field_12|=1;
|
|
407 break;
|
|
408 case 101:
|
|
409 pSpellDatas[i].field_12|=2;
|
|
410 break;
|
|
411 case 99:
|
|
412 pSpellDatas[i].field_12|=4;
|
|
413 break;
|
|
414 case 120:
|
|
415 pSpellDatas[i].field_12|=8;
|
|
416 break;
|
|
417 }
|
|
418 }
|
191
|
419 break;
|
|
420 }
|
|
421 }
|
|
422 else
|
|
423 break_loop=true;
|
|
424 ++decode_step;
|
|
425 test_string=tmp_pos+1;
|
|
426 } while ((decode_step<11)&&!break_loop);
|
|
427 if ((i%11)==0)
|
|
428 strtok(NULL, "\r");
|
|
429 }
|
|
430
|
|
431 } |