Mercurial > mm7
comparison Party.cpp @ 1014:a704435d3285
comtinue player cleaning
author | Gloval |
---|---|
date | Sun, 19 May 2013 20:38:49 +0400 |
parents | ae747684f644 |
children | 306ec23b37df |
comparison
equal
deleted
inserted
replaced
1012:9e823ad5eaa6 | 1014:a704435d3285 |
---|---|
329 pHireling2Name[0] = 0; | 329 pHireling2Name[0] = 0; |
330 pParty->field_709 = 0; | 330 pParty->field_709 = 0; |
331 memset(pHirelings, 0, 2 * sizeof(*pHirelings)); | 331 memset(pHirelings, 0, 2 * sizeof(*pHirelings)); |
332 | 332 |
333 strcpy(this->pPlayers[0].pName, pGlobalTXT_LocalizationStrings[509]); //Zoltan | 333 strcpy(this->pPlayers[0].pName, pGlobalTXT_LocalizationStrings[509]); //Zoltan |
334 pParty->pPlayers[0].field_1928 = 17; | 334 pParty->pPlayers[0].uPrevFace = 17; |
335 pParty->pPlayers[0].uFace = 17; | 335 pParty->pPlayers[0].uCurrentFace = 17; |
336 pParty->pPlayers[0].field_1924 = 17; | 336 pParty->pPlayers[0].uPrevVoiceID = 17; |
337 pParty->pPlayers[0].uVoiceID = 17; | 337 pParty->pPlayers[0].uVoiceID = 17; |
338 pParty->pPlayers[0].uMight = 30; | 338 pParty->pPlayers[0].uMight = 30; |
339 pParty->pPlayers[0].uIntelligence = 5; | 339 pParty->pPlayers[0].uIntelligence = 5; |
340 pParty->pPlayers[0].uWillpower = 5; | 340 pParty->pPlayers[0].uWillpower = 5; |
341 pParty->pPlayers[0].uEndurance = 13; | 341 pParty->pPlayers[0].uEndurance = 13; |
344 pParty->pPlayers[0].uLuck = 7; | 344 pParty->pPlayers[0].uLuck = 7; |
345 pParty->pPlayers[0].pActiveSkills[PLAYER_SKILL_LEATHER] = 1; // leather | 345 pParty->pPlayers[0].pActiveSkills[PLAYER_SKILL_LEATHER] = 1; // leather |
346 pParty->pPlayers[0].pActiveSkills[PLAYER_SKILL_ARMSMASTER] = 1; // armsmaster | 346 pParty->pPlayers[0].pActiveSkills[PLAYER_SKILL_ARMSMASTER] = 1; // armsmaster |
347 pParty->pPlayers[0].pActiveSkills[PLAYER_SKILL_BOW] = 1; // bow | 347 pParty->pPlayers[0].pActiveSkills[PLAYER_SKILL_BOW] = 1; // bow |
348 pParty->pPlayers[0].pActiveSkills[PLAYER_SKILL_SWORD] = 1; // sword | 348 pParty->pPlayers[0].pActiveSkills[PLAYER_SKILL_SWORD] = 1; // sword |
349 pParty->pPlayers[1].field_1928 = 3; | 349 pParty->pPlayers[1].uPrevFace = 3; |
350 pParty->pPlayers[1].uFace = 3; | 350 pParty->pPlayers[1].uCurrentFace = 3; |
351 pParty->pPlayers[1].field_1924 = 3; | 351 pParty->pPlayers[1].uPrevVoiceID = 3; |
352 pParty->pPlayers[1].uVoiceID = 3; | 352 pParty->pPlayers[1].uVoiceID = 3; |
353 strcpy(pParty->pPlayers[1].pName, pGlobalTXT_LocalizationStrings[506]); //Roderic | 353 strcpy(pParty->pPlayers[1].pName, pGlobalTXT_LocalizationStrings[506]); //Roderic |
354 pParty->pPlayers[1].uMight = 13; | 354 pParty->pPlayers[1].uMight = 13; |
355 pParty->pPlayers[1].uIntelligence = 9; | 355 pParty->pPlayers[1].uIntelligence = 9; |
356 pParty->pPlayers[1].uWillpower = 9; | 356 pParty->pPlayers[1].uWillpower = 9; |
360 pParty->pPlayers[1].uLuck = 13; | 360 pParty->pPlayers[1].uLuck = 13; |
361 pParty->pPlayers[1].pActiveSkills[PLAYER_SKILL_LEATHER] = 1; // leather | 361 pParty->pPlayers[1].pActiveSkills[PLAYER_SKILL_LEATHER] = 1; // leather |
362 pParty->pPlayers[1].pActiveSkills[PLAYER_SKILL_STEALING] = 1; // stealing | 362 pParty->pPlayers[1].pActiveSkills[PLAYER_SKILL_STEALING] = 1; // stealing |
363 pParty->pPlayers[1].pActiveSkills[PLAYER_SKILL_DAGGER] = 1; // dagger | 363 pParty->pPlayers[1].pActiveSkills[PLAYER_SKILL_DAGGER] = 1; // dagger |
364 pParty->pPlayers[1].pActiveSkills[PLAYER_SKILL_TRAP_DISARM] = 1; // disarm trap | 364 pParty->pPlayers[1].pActiveSkills[PLAYER_SKILL_TRAP_DISARM] = 1; // disarm trap |
365 pParty->pPlayers[2].field_1928 = 14; | 365 pParty->pPlayers[2].uPrevFace = 14; |
366 pParty->pPlayers[2].uFace = 14; | 366 pParty->pPlayers[2].uCurrentFace = 14; |
367 pParty->pPlayers[2].field_1924 = 14; | 367 pParty->pPlayers[2].uPrevVoiceID = 14; |
368 pParty->pPlayers[2].uVoiceID = 14; | 368 pParty->pPlayers[2].uVoiceID = 14; |
369 strcpy(pParty->pPlayers[2].pName, pGlobalTXT_LocalizationStrings[508]); // Serena | 369 strcpy(pParty->pPlayers[2].pName, pGlobalTXT_LocalizationStrings[508]); // Serena |
370 pParty->pPlayers[2].uMight = 12; | 370 pParty->pPlayers[2].uMight = 12; |
371 pParty->pPlayers[2].uIntelligence = 9; | 371 pParty->pPlayers[2].uIntelligence = 9; |
372 pParty->pPlayers[2].uWillpower = 20; | 372 pParty->pPlayers[2].uWillpower = 20; |
378 pParty->pPlayers[2].pActiveSkills[PLAYER_SKILL_LEATHER] = 1; // leather | 378 pParty->pPlayers[2].pActiveSkills[PLAYER_SKILL_LEATHER] = 1; // leather |
379 pParty->pPlayers[2].pActiveSkills[PLAYER_SKILL_BODY] = 1; // body | 379 pParty->pPlayers[2].pActiveSkills[PLAYER_SKILL_BODY] = 1; // body |
380 pParty->pPlayers[2].pActiveSkills[PLAYER_SKILL_MACE] = 1; // mace | 380 pParty->pPlayers[2].pActiveSkills[PLAYER_SKILL_MACE] = 1; // mace |
381 strcpy(pParty->pPlayers[3].pName, pGlobalTXT_LocalizationStrings[507]); // Alexis | 381 strcpy(pParty->pPlayers[3].pName, pGlobalTXT_LocalizationStrings[507]); // Alexis |
382 v3 = 10; | 382 v3 = 10; |
383 pParty->pPlayers[3].field_1928 = 10; | 383 pParty->pPlayers[3].uPrevFace = 10; |
384 pParty->pPlayers[3].uFace = 10; | 384 pParty->pPlayers[3].uCurrentFace = 10; |
385 //pResMagicBase = (int)&pParty->pPlayers[0].sResMagicBase; | 385 //pResMagicBase = (int)&pParty->pPlayers[0].sResMagicBase; |
386 pParty->pPlayers[3].uEndurance = 13; | 386 pParty->pPlayers[3].uEndurance = 13; |
387 pParty->pPlayers[3].uAccuracy = 13; | 387 pParty->pPlayers[3].uAccuracy = 13; |
388 pParty->pPlayers[3].uSpeed = 13; | 388 pParty->pPlayers[3].uSpeed = 13; |
389 pParty->pPlayers[3].field_1924 = 10; | 389 pParty->pPlayers[3].uPrevVoiceID = 10; |
390 pParty->pPlayers[3].uVoiceID = 10; | 390 pParty->pPlayers[3].uVoiceID = 10; |
391 pParty->pPlayers[3].uMight = 5; | 391 pParty->pPlayers[3].uMight = 5; |
392 pParty->pPlayers[3].uIntelligence = 30; | 392 pParty->pPlayers[3].uIntelligence = 30; |
393 pParty->pPlayers[3].uWillpower = 9; | 393 pParty->pPlayers[3].uWillpower = 9; |
394 pParty->pPlayers[3].uLuck = 7; | 394 pParty->pPlayers[3].uLuck = 7; |
598 | 598 |
599 pPlayers[0].Reset(PLAYER_CLASS_KNIGHT); | 599 pPlayers[0].Reset(PLAYER_CLASS_KNIGHT); |
600 pPlayers[1].Reset(PLAYER_CLASS_THEIF); | 600 pPlayers[1].Reset(PLAYER_CLASS_THEIF); |
601 pPlayers[2].Reset(PLAYER_CLASS_CLERIC); | 601 pPlayers[2].Reset(PLAYER_CLASS_CLERIC); |
602 pPlayers[3].Reset(PLAYER_CLASS_SORCERER); | 602 pPlayers[3].Reset(PLAYER_CLASS_SORCERER); |
603 pPlayers[0].uFace = 17; | 603 pPlayers[0].uCurrentFace = 17; |
604 pPlayers[0].field_1924 = 17; | 604 pPlayers[0].uPrevVoiceID = 17; |
605 pPlayers[0].uVoiceID = 17; | 605 pPlayers[0].uVoiceID = 17; |
606 pPlayers[0].SetInitialStats(); | 606 pPlayers[0].SetInitialStats(); |
607 | 607 |
608 switch ( pPlayers[0].uVoiceID ) | 608 switch ( pPlayers[0].uVoiceID ) |
609 { | 609 { |
640 pPlayers[0].uSex = pSex; | 640 pPlayers[0].uSex = pSex; |
641 pPlayers[0].RandomizeName(); | 641 pPlayers[0].RandomizeName(); |
642 strcpy(pPlayers[0].pName, pGlobalTXT_LocalizationStrings[509]); | 642 strcpy(pPlayers[0].pName, pGlobalTXT_LocalizationStrings[509]); |
643 | 643 |
644 | 644 |
645 pPlayers[1].uFace = 3; | 645 pPlayers[1].uCurrentFace = 3; |
646 pPlayers[1].field_1924 = 3; | 646 pPlayers[1].uPrevVoiceID = 3; |
647 pPlayers[1].uVoiceID = 3; | 647 pPlayers[1].uVoiceID = 3; |
648 pPlayers[1].SetInitialStats(); | 648 pPlayers[1].SetInitialStats(); |
649 v7 = SEX_MALE; | 649 v7 = SEX_MALE; |
650 switch (pPlayers[1].uVoiceID) | 650 switch (pPlayers[1].uVoiceID) |
651 { | 651 { |
681 break; | 681 break; |
682 } | 682 } |
683 pPlayers[1].uSex = v7; | 683 pPlayers[1].uSex = v7; |
684 pPlayers[1].RandomizeName(); | 684 pPlayers[1].RandomizeName(); |
685 strcpy(pPlayers[1].pName, pGlobalTXT_LocalizationStrings[506]); | 685 strcpy(pPlayers[1].pName, pGlobalTXT_LocalizationStrings[506]); |
686 pPlayers[2].uFace = 14; | 686 pPlayers[2].uCurrentFace = 14; |
687 pPlayers[2].field_1924 = 14; | 687 pPlayers[2].uPrevVoiceID = 14; |
688 pPlayers[2].uVoiceID = 14; | 688 pPlayers[2].uVoiceID = 14; |
689 pPlayers[2].SetInitialStats(); | 689 pPlayers[2].SetInitialStats(); |
690 v8 = SEX_MALE; | 690 v8 = SEX_MALE; |
691 switch (pPlayers[2].uVoiceID) | 691 switch (pPlayers[2].uVoiceID) |
692 { | 692 { |
722 break; | 722 break; |
723 } | 723 } |
724 pPlayers[2].uSex = v8; | 724 pPlayers[2].uSex = v8; |
725 pPlayers[2].RandomizeName(); | 725 pPlayers[2].RandomizeName(); |
726 strcpy(pPlayers[2].pName, pGlobalTXT_LocalizationStrings[508]); | 726 strcpy(pPlayers[2].pName, pGlobalTXT_LocalizationStrings[508]); |
727 pPlayers[3].uFace = 10; | 727 pPlayers[3].uCurrentFace = 10; |
728 pPlayers[3].field_1924 = 10; | 728 pPlayers[3].uPrevVoiceID = 10; |
729 pPlayers[3].uVoiceID = 10; | 729 pPlayers[3].uVoiceID = 10; |
730 pPlayers[3].SetInitialStats(); | 730 pPlayers[3].SetInitialStats(); |
731 v9 = SEX_MALE; | 731 v9 = SEX_MALE; |
732 switch (pPlayers[3].uVoiceID) | 732 switch (pPlayers[3].uVoiceID) |
733 { | 733 { |