Mercurial > mm7
comparison Player.cpp @ 886:b6573b99ca40
SalesProcess function
author | Ritor1 |
---|---|
date | Tue, 02 Apr 2013 17:33:20 +0600 |
parents | 883221c72cf1 |
children | df0ffbb70cc6 |
comparison
equal
deleted
inserted
replaced
885:4004fb0bf60c | 886:b6573b99ca40 |
---|---|
218 return false; | 218 return false; |
219 } | 219 } |
220 | 220 |
221 | 221 |
222 //----- (004BE2DD) -------------------------------------------------------- | 222 //----- (004BE2DD) -------------------------------------------------------- |
223 void Player::_4BE2DD(unsigned int a2, int a3, int _2devent_idx) | 223 void Player::SalesProcess(unsigned int a2, int a3, int _2devent_idx) |
224 { | 224 { |
225 Player *v4; // edi@1 | 225 Player *v4; // edi@1 |
226 char *v5; // esi@1 | 226 char *v5; // esi@1 |
227 float v6; // ST04_4@1 | 227 float v6; // ST04_4@1 |
228 signed int v7; // eax@1 | 228 signed int v7; // eax@1 |
6450 | 6450 |
6451 pActiveSkills[i] = 1; | 6451 pActiveSkills[i] = 1; |
6452 | 6452 |
6453 switch (i) | 6453 switch (i) |
6454 { | 6454 { |
6455 case PLAYER_SKILL_FIRE: spellbook.pFireSpellbook.bIsSpellAvailable[0] = true; | 6455 case PLAYER_SKILL_FIRE: |
6456 spellbook.pFireSpellbook.bIsSpellAvailable[0] = true;//its temporary, for test spells | |
6457 | |
6456 spellbook.pFireSpellbook.bIsSpellAvailable[1] = true; | 6458 spellbook.pFireSpellbook.bIsSpellAvailable[1] = true; |
6457 spellbook.pFireSpellbook.bIsSpellAvailable[2] = true; | 6459 spellbook.pFireSpellbook.bIsSpellAvailable[2] = true; |
6458 spellbook.pFireSpellbook.bIsSpellAvailable[3] = true; | 6460 spellbook.pFireSpellbook.bIsSpellAvailable[3] = true; |
6459 spellbook.pFireSpellbook.bIsSpellAvailable[4] = true; | 6461 spellbook.pFireSpellbook.bIsSpellAvailable[4] = true; |
6460 spellbook.pFireSpellbook.bIsSpellAvailable[5] = true; | 6462 spellbook.pFireSpellbook.bIsSpellAvailable[5] = true; |
6461 spellbook.pFireSpellbook.bIsSpellAvailable[6] = true; | 6463 spellbook.pFireSpellbook.bIsSpellAvailable[6] = true; |
6462 spellbook.pFireSpellbook.bIsSpellAvailable[7] = true; | 6464 spellbook.pFireSpellbook.bIsSpellAvailable[7] = true; |
6465 spellbook.pFireSpellbook.bIsSpellAvailable[8] = true; | |
6466 spellbook.pFireSpellbook.bIsSpellAvailable[9] = true; | |
6467 spellbook.pFireSpellbook.bIsSpellAvailable[10] = true; | |
6468 spellbook.pAirSpellbook.bIsSpellAvailable[0] = true; | |
6463 spellbook.pAirSpellbook.bIsSpellAvailable[1] = true; | 6469 spellbook.pAirSpellbook.bIsSpellAvailable[1] = true; |
6464 spellbook.pAirSpellbook.bIsSpellAvailable[2] = true; | 6470 spellbook.pAirSpellbook.bIsSpellAvailable[2] = true; |
6465 spellbook.pAirSpellbook.bIsSpellAvailable[3] = true; | 6471 spellbook.pAirSpellbook.bIsSpellAvailable[3] = true; |
6466 spellbook.pAirSpellbook.bIsSpellAvailable[4] = true; | 6472 spellbook.pAirSpellbook.bIsSpellAvailable[4] = true; |
6467 spellbook.pAirSpellbook.bIsSpellAvailable[5] = true; | 6473 spellbook.pAirSpellbook.bIsSpellAvailable[5] = true; |
6468 spellbook.pAirSpellbook.bIsSpellAvailable[6] = true; | 6474 spellbook.pAirSpellbook.bIsSpellAvailable[6] = true; |
6469 spellbook.pAirSpellbook.bIsSpellAvailable[7] = true; | 6475 spellbook.pAirSpellbook.bIsSpellAvailable[7] = true; |
6470 spellbook.pAirSpellbook.bIsSpellAvailable[8] = true; | 6476 spellbook.pAirSpellbook.bIsSpellAvailable[8] = true; |
6471 spellbook.pAirSpellbook.bIsSpellAvailable[9] = true; | 6477 spellbook.pAirSpellbook.bIsSpellAvailable[9] = true; |
6472 spellbook.pAirSpellbook.bIsSpellAvailable[10] = true; | 6478 spellbook.pAirSpellbook.bIsSpellAvailable[10] = true; |
6473 pActiveSkills[PLAYER_SKILL_WATER] = 1; | |
6474 spellbook.pWaterSpellbook.bIsSpellAvailable[0] = true; | 6479 spellbook.pWaterSpellbook.bIsSpellAvailable[0] = true; |
6475 spellbook.pWaterSpellbook.bIsSpellAvailable[1] = true; | 6480 spellbook.pWaterSpellbook.bIsSpellAvailable[1] = true; |
6476 spellbook.pWaterSpellbook.bIsSpellAvailable[2] = true; | 6481 spellbook.pWaterSpellbook.bIsSpellAvailable[2] = true; |
6477 spellbook.pWaterSpellbook.bIsSpellAvailable[3] = true; | 6482 spellbook.pWaterSpellbook.bIsSpellAvailable[3] = true; |
6478 spellbook.pWaterSpellbook.bIsSpellAvailable[4] = true; | 6483 spellbook.pWaterSpellbook.bIsSpellAvailable[4] = true; |
6479 spellbook.pWaterSpellbook.bIsSpellAvailable[5] = true; | 6484 spellbook.pWaterSpellbook.bIsSpellAvailable[5] = true; |
6480 spellbook.pWaterSpellbook.bIsSpellAvailable[6] = true; | 6485 spellbook.pWaterSpellbook.bIsSpellAvailable[6] = true; |
6481 spellbook.pWaterSpellbook.bIsSpellAvailable[7] = true; | 6486 spellbook.pWaterSpellbook.bIsSpellAvailable[7] = true; |
6482 spellbook.pWaterSpellbook.bIsSpellAvailable[8] = true; | 6487 spellbook.pWaterSpellbook.bIsSpellAvailable[8] = true; |
6488 spellbook.pWaterSpellbook.bIsSpellAvailable[9] = true; | |
6489 spellbook.pWaterSpellbook.bIsSpellAvailable[10] = true; | |
6483 break; | 6490 break; |
6484 case PLAYER_SKILL_AIR: spellbook.pAirSpellbook.bIsSpellAvailable[0] = true; break; | 6491 case PLAYER_SKILL_AIR: |
6485 case PLAYER_SKILL_WATER: spellbook.pWaterSpellbook.bIsSpellAvailable[0] = true; break; | 6492 spellbook.pAirSpellbook.bIsSpellAvailable[0] = true; |
6486 case PLAYER_SKILL_EARTH: spellbook.pEarthSpellbook.bIsSpellAvailable[0] = true; break; | 6493 break; |
6487 case PLAYER_SKILL_SPIRIT: spellbook.pSpiritSpellbook.bIsSpellAvailable[0] = true; break; | 6494 case PLAYER_SKILL_WATER: |
6488 case PLAYER_SKILL_MIND: spellbook.pMindSpellbook.bIsSpellAvailable[0] = true; break; | 6495 spellbook.pWaterSpellbook.bIsSpellAvailable[0] = true; |
6489 case PLAYER_SKILL_BODY: spellbook.pBodySpellbook.bIsSpellAvailable[0] = true; | 6496 break; |
6497 case PLAYER_SKILL_EARTH: | |
6498 spellbook.pEarthSpellbook.bIsSpellAvailable[0] = true; | |
6499 break; | |
6500 case PLAYER_SKILL_SPIRIT: | |
6501 spellbook.pSpiritSpellbook.bIsSpellAvailable[0] = true; | |
6502 | |
6503 break; | |
6504 case PLAYER_SKILL_MIND: | |
6505 spellbook.pMindSpellbook.bIsSpellAvailable[0] = true; | |
6506 break; | |
6507 case PLAYER_SKILL_BODY: | |
6508 spellbook.pBodySpellbook.bIsSpellAvailable[0] = true; | |
6509 | |
6490 spellbook.pBodySpellbook.bIsSpellAvailable[1] = true; | 6510 spellbook.pBodySpellbook.bIsSpellAvailable[1] = true; |
6491 spellbook.pBodySpellbook.bIsSpellAvailable[2] = true; | 6511 spellbook.pBodySpellbook.bIsSpellAvailable[2] = true; |
6492 spellbook.pBodySpellbook.bIsSpellAvailable[3] = true; | 6512 spellbook.pBodySpellbook.bIsSpellAvailable[3] = true; |
6493 spellbook.pBodySpellbook.bIsSpellAvailable[4] = true; | 6513 spellbook.pBodySpellbook.bIsSpellAvailable[4] = true; |
6494 spellbook.pBodySpellbook.bIsSpellAvailable[5] = true; | 6514 spellbook.pBodySpellbook.bIsSpellAvailable[5] = true; |
6495 spellbook.pBodySpellbook.bIsSpellAvailable[6] = true; | 6515 spellbook.pBodySpellbook.bIsSpellAvailable[6] = true; |
6496 spellbook.pBodySpellbook.bIsSpellAvailable[7] = true; | 6516 spellbook.pBodySpellbook.bIsSpellAvailable[7] = true; |
6497 spellbook.pBodySpellbook.bIsSpellAvailable[8] = true; | 6517 spellbook.pBodySpellbook.bIsSpellAvailable[8] = true; |
6498 spellbook.pBodySpellbook.bIsSpellAvailable[9] = true; | 6518 spellbook.pBodySpellbook.bIsSpellAvailable[9] = true; |
6499 pActiveSkills[PLAYER_SKILL_SPIRIT] = 1; | 6519 spellbook.pBodySpellbook.bIsSpellAvailable[10] = true; |
6500 spellbook.pSpiritSpellbook.bIsSpellAvailable[1] = true; | 6520 spellbook.pSpiritSpellbook.bIsSpellAvailable[1] = true; |
6501 spellbook.pSpiritSpellbook.bIsSpellAvailable[2] = true; | 6521 spellbook.pSpiritSpellbook.bIsSpellAvailable[2] = true; |
6502 spellbook.pSpiritSpellbook.bIsSpellAvailable[3] = true; | 6522 spellbook.pSpiritSpellbook.bIsSpellAvailable[3] = true; |
6503 spellbook.pSpiritSpellbook.bIsSpellAvailable[4] = true; | 6523 spellbook.pSpiritSpellbook.bIsSpellAvailable[4] = true; |
6504 spellbook.pSpiritSpellbook.bIsSpellAvailable[5] = true; | 6524 spellbook.pSpiritSpellbook.bIsSpellAvailable[5] = true; |
6505 spellbook.pSpiritSpellbook.bIsSpellAvailable[6] = true; | 6525 spellbook.pSpiritSpellbook.bIsSpellAvailable[6] = true; |
6526 spellbook.pSpiritSpellbook.bIsSpellAvailable[7] = true; | |
6527 spellbook.pSpiritSpellbook.bIsSpellAvailable[8] = true; | |
6528 spellbook.pSpiritSpellbook.bIsSpellAvailable[9] = true; | |
6529 spellbook.pSpiritSpellbook.bIsSpellAvailable[10] = true; | |
6506 break; | 6530 break; |
6507 case PLAYER_SKILL_LIGHT: spellbook.pLightSpellbook.bIsSpellAvailable[0] = true; break; | 6531 case PLAYER_SKILL_LIGHT: |
6508 case PLAYER_SKILL_DARK: spellbook.pDarkSpellbook.bIsSpellAvailable[0] = true; break; | 6532 spellbook.pLightSpellbook.bIsSpellAvailable[0] = true; |
6533 break; | |
6534 case PLAYER_SKILL_DARK: | |
6535 spellbook.pDarkSpellbook.bIsSpellAvailable[0] = true; | |
6536 break; | |
6509 } | 6537 } |
6510 } | 6538 } |
6511 | 6539 |
6512 sHealth = GetMaxHealth(); | 6540 sHealth = GetMaxHealth(); |
6513 sMana = GetMaxMana(); | 6541 sMana = GetMaxMana(); |