comparison Spells.cpp @ 1138:f947bedb2859

Слияние
author Ritor1
date Sat, 01 Jun 2013 10:32:31 +0600
parents 5d5c78088274
children 29a8defbad9e
comparison
equal deleted inserted replaced
1137:62c759bc49f7 1138:f947bedb2859
22 } ; 22 } ;
23 23
24 struct SpellStats *pSpellStats; 24 struct SpellStats *pSpellStats;
25 25
26 26
27 stru324_spell stru_4E3ACC[100] = 27 stru324_spell stru_4E3ACC[103] =
28 { 28 {
29 {10, 0}, 29 {10, 0},
30 {1000, 0}, {1010, 0}, {1020, 0}, {1030, 0}, {1040, 0}, {1050, 0}, {1060, 0}, {1070, 0}, {1080, 0}, {1090, 0}, {1100, 0}, 30 {1000, 0}, {1010, 0}, {1020, 0}, {1030, 0}, {1040, 0}, {1050, 0}, {1060, 0}, {1070, 0}, {1080, 0}, {1090, 0}, {1100, 0},
31 {2000, 0}, {2010, 0}, {2020, 0}, {2030, 0}, {2040, 0}, {2050, 0}, {2060, 0}, {2070, 0}, {2080, 0}, {2090, 0}, {2100, 0}, 31 {2000, 0}, {2010, 0}, {2020, 0}, {2030, 0}, {2040, 0}, {2050, 0}, {2060, 0}, {2070, 0}, {2080, 0}, {2090, 0}, {2100, 0},
32 {3000, 0}, {3010, 0}, {3020, 0}, {3030, 0}, {3040, 0}, {3050, 0}, {3060, 0}, {3070, 0}, {3080, 0}, {3090, 0}, {3100, 0}, 32 {3000, 0}, {3010, 0}, {3020, 0}, {3030, 0}, {3040, 0}, {3050, 0}, {3060, 0}, {3070, 0}, {3080, 0}, {3090, 0}, {3100, 0},
33 {4000, 0}, {4010, 0}, {4020, 0}, {4030, 0}, {4040, 0}, {4050, 0}, {4060, 0}, {4070, 0}, {4080, 0}, {4090, 0}, {4100, 0}, 33 {4000, 0}, {4010, 0}, {4020, 0}, {4030, 0}, {4040, 0}, {4050, 0}, {4060, 0}, {4070, 0}, {4080, 0}, {4090, 0}, {4100, 0},
34 {5000, 0}, {5010, 0}, {5020, 0}, {5030, 0}, {5040, 0}, {5050, 0}, {5060, 0}, {5070, 0}, {5080, 0}, {5090, 0}, {5100, 0}, 34 {5000, 0}, {5010, 0}, {5020, 0}, {5030, 0}, {5040, 0}, {5050, 0}, {5060, 0}, {5070, 0}, {5080, 0}, {5090, 0}, {5100, 0},
35 {6000, 0}, {6010, 0}, {6020, 0}, {6030, 0}, {6040, 0}, {6050, 0}, {6060, 0}, {6070, 0}, {6080, 0}, {6090, 0}, {6100, 0}, 35 {6000, 0}, {6010, 0}, {6020, 0}, {6030, 0}, {6040, 0}, {6050, 0}, {6060, 0}, {6070, 0}, {6080, 0}, {6090, 0}, {6100, 0},
36 {7000, 0}, {7010, 0}, {7020, 0}, {7030, 0}, {7040, 0}, {7050, 0}, {7060, 0}, {7070, 0}, {7080, 0}, {7090, 0}, {7100, 0}, 36 {7000, 0}, {7010, 0}, {7020, 0}, {7030, 0}, {7040, 0}, {7050, 0}, {7060, 0}, {7070, 0}, {7080, 0}, {7090, 0}, {7100, 0},
37 {8000, 0}, {8010, 0}, {8020, 0}, {8030, 0}, {8040, 0}, {8050, 0}, {8060, 0}, {8070, 0}, {8080, 0}, {8090, 0}, {8100, 0}, 37 {8000, 0}, {8010, 0}, {8020, 0}, {8030, 0}, {8040, 0}, {8050, 0}, {8060, 0}, {8070, 0}, {8080, 0}, {8090, 0}, {8100, 0},
38 {9000, 0}, {9010, 0}, {9020, 0}, {9030, 0}, {9040, 0}, {9050, 0}, {9060, 0}, {9070, 0}, {9080, 0}, {9090, 0}, {9100, 0} 38 {9000, 0}, {9010, 0}, {9020, 0}, {9030, 0}, {9040, 0}, {9050, 0}, {9060, 0}, {9070, 0}, {9080, 0}, {9090, 0}, {9100, 0},
39 //{545, 0}, 39 {545, 0},
40 //{545, 0}, 40 {545, 0},
41 //{555, 0} 41 {555, 0}
42 }; 42 };
43 //9 spellbook pages 11 spells per page 9*11 =99 +1 zero struct at 0. It counted from 1! 43 //9 spellbook pages 11 spells per page 9*11 =99 +1 zero struct at 0. It counted from 1!
44 SpellData pSpellDatas[100]={ 44 SpellData pSpellDatas[100]={
45 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 45 {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
46 46
321 case 2: 321 case 2:
322 pInfos[i].pName=RemoveQuotes(test_string); 322 pInfos[i].pName=RemoveQuotes(test_string);
323 break; 323 break;
324 case 3: 324 case 3:
325 pInfos[i].uSchool = SPELL_SCHOOL_NONE; 325 pInfos[i].uSchool = SPELL_SCHOOL_NONE;
326 if (!_strcmpi("fire", test_string) ) 326 if (!_stricmp("fire", test_string) )
327 { 327 {
328 pInfos[i].uSchool =SPELL_SCHOOL_FIRE; 328 pInfos[i].uSchool =SPELL_SCHOOL_FIRE;
329 break; 329 break;
330 } 330 }
331 if ( !_strcmpi("air", test_string) ) 331 if ( !_stricmp("air", test_string) )
332 { 332 {
333 pInfos[i].uSchool = SPELL_SCHOOL_AIR; 333 pInfos[i].uSchool = SPELL_SCHOOL_AIR;
334 break; 334 break;
335 } 335 }
336 if ( !_strcmpi("water", test_string)) 336 if ( !_stricmp("water", test_string))
337 { 337 {
338 pInfos[i].uSchool = SPELL_SCHOOL_WATER; 338 pInfos[i].uSchool = SPELL_SCHOOL_WATER;
339 break; 339 break;
340 } 340 }
341 if ( !_strcmpi("earth", test_string)) 341 if ( !_stricmp("earth", test_string))
342 { 342 {
343 pInfos[i].uSchool = SPELL_SCHOOL_EARTH; 343 pInfos[i].uSchool = SPELL_SCHOOL_EARTH;
344 break; 344 break;
345 } 345 }
346 if ( !_strcmpi("spirit", test_string)) 346 if ( !_stricmp("spirit", test_string))
347 { 347 {
348 pInfos[i].uSchool = SPELL_SCHOOL_SPIRIT; 348 pInfos[i].uSchool = SPELL_SCHOOL_SPIRIT;
349 break; 349 break;
350 } 350 }
351 if ( !_strcmpi("mind", test_string)) 351 if ( !_stricmp("mind", test_string))
352 { 352 {
353 pInfos[i].uSchool = SPELL_SCHOOL_MIND; 353 pInfos[i].uSchool = SPELL_SCHOOL_MIND;
354 break; 354 break;
355 } 355 }
356 if ( !_strcmpi("body", test_string) ) 356 if ( !_stricmp("body", test_string) )
357 { 357 {
358 pInfos[i].uSchool = SPELL_SCHOOL_BODY; 358 pInfos[i].uSchool = SPELL_SCHOOL_BODY;
359 break; 359 break;
360 } 360 }
361 if ( !_strcmpi("light", test_string) ) 361 if ( !_stricmp("light", test_string) )
362 { 362 {
363 pInfos[i].uSchool = SPELL_SCHOOL_LIGHT; 363 pInfos[i].uSchool = SPELL_SCHOOL_LIGHT;
364 break; 364 break;
365 } 365 }
366 if ( !_strcmpi("dark", test_string)) 366 if ( !_stricmp("dark", test_string))
367 { 367 {
368 pInfos[i].uSchool = SPELL_SCHOOL_DARK; 368 pInfos[i].uSchool = SPELL_SCHOOL_DARK;
369 break; 369 break;
370 } 370 }
371 371
372 if ( !_strcmpi("magic", test_string)) 372 if ( !_stricmp("magic", test_string))
373 { 373 {
374 pInfos[i].uSchool = SPELL_SCHOOL_MAGIC; 374 pInfos[i].uSchool = SPELL_SCHOOL_MAGIC;
375 break; 375 break;
376 } 376 }
377 break; 377 break;