Mercurial > mm7
diff Player.cpp @ 886:b6573b99ca40
SalesProcess function
author | Ritor1 |
---|---|
date | Tue, 02 Apr 2013 17:33:20 +0600 |
parents | 883221c72cf1 |
children | df0ffbb70cc6 |
line wrap: on
line diff
--- a/Player.cpp Tue Apr 02 10:29:22 2013 +0600 +++ b/Player.cpp Tue Apr 02 17:33:20 2013 +0600 @@ -220,7 +220,7 @@ //----- (004BE2DD) -------------------------------------------------------- -void Player::_4BE2DD(unsigned int a2, int a3, int _2devent_idx) +void Player::SalesProcess(unsigned int a2, int a3, int _2devent_idx) { Player *v4; // edi@1 char *v5; // esi@1 @@ -6452,7 +6452,9 @@ switch (i) { - case PLAYER_SKILL_FIRE: spellbook.pFireSpellbook.bIsSpellAvailable[0] = true; + case PLAYER_SKILL_FIRE: + spellbook.pFireSpellbook.bIsSpellAvailable[0] = true;//its temporary, for test spells + spellbook.pFireSpellbook.bIsSpellAvailable[1] = true; spellbook.pFireSpellbook.bIsSpellAvailable[2] = true; spellbook.pFireSpellbook.bIsSpellAvailable[3] = true; @@ -6460,6 +6462,10 @@ spellbook.pFireSpellbook.bIsSpellAvailable[5] = true; spellbook.pFireSpellbook.bIsSpellAvailable[6] = true; spellbook.pFireSpellbook.bIsSpellAvailable[7] = true; + spellbook.pFireSpellbook.bIsSpellAvailable[8] = true; + spellbook.pFireSpellbook.bIsSpellAvailable[9] = true; + spellbook.pFireSpellbook.bIsSpellAvailable[10] = true; + spellbook.pAirSpellbook.bIsSpellAvailable[0] = true; spellbook.pAirSpellbook.bIsSpellAvailable[1] = true; spellbook.pAirSpellbook.bIsSpellAvailable[2] = true; spellbook.pAirSpellbook.bIsSpellAvailable[3] = true; @@ -6470,7 +6476,6 @@ spellbook.pAirSpellbook.bIsSpellAvailable[8] = true; spellbook.pAirSpellbook.bIsSpellAvailable[9] = true; spellbook.pAirSpellbook.bIsSpellAvailable[10] = true; - pActiveSkills[PLAYER_SKILL_WATER] = 1; spellbook.pWaterSpellbook.bIsSpellAvailable[0] = true; spellbook.pWaterSpellbook.bIsSpellAvailable[1] = true; spellbook.pWaterSpellbook.bIsSpellAvailable[2] = true; @@ -6480,13 +6485,28 @@ spellbook.pWaterSpellbook.bIsSpellAvailable[6] = true; spellbook.pWaterSpellbook.bIsSpellAvailable[7] = true; spellbook.pWaterSpellbook.bIsSpellAvailable[8] = true; + spellbook.pWaterSpellbook.bIsSpellAvailable[9] = true; + spellbook.pWaterSpellbook.bIsSpellAvailable[10] = true; break; - case PLAYER_SKILL_AIR: spellbook.pAirSpellbook.bIsSpellAvailable[0] = true; break; - case PLAYER_SKILL_WATER: spellbook.pWaterSpellbook.bIsSpellAvailable[0] = true; break; - case PLAYER_SKILL_EARTH: spellbook.pEarthSpellbook.bIsSpellAvailable[0] = true; break; - case PLAYER_SKILL_SPIRIT: spellbook.pSpiritSpellbook.bIsSpellAvailable[0] = true; break; - case PLAYER_SKILL_MIND: spellbook.pMindSpellbook.bIsSpellAvailable[0] = true; break; - case PLAYER_SKILL_BODY: spellbook.pBodySpellbook.bIsSpellAvailable[0] = true; + case PLAYER_SKILL_AIR: + spellbook.pAirSpellbook.bIsSpellAvailable[0] = true; + break; + case PLAYER_SKILL_WATER: + spellbook.pWaterSpellbook.bIsSpellAvailable[0] = true; + break; + case PLAYER_SKILL_EARTH: + spellbook.pEarthSpellbook.bIsSpellAvailable[0] = true; + break; + case PLAYER_SKILL_SPIRIT: + spellbook.pSpiritSpellbook.bIsSpellAvailable[0] = true; + + break; + case PLAYER_SKILL_MIND: + spellbook.pMindSpellbook.bIsSpellAvailable[0] = true; + break; + case PLAYER_SKILL_BODY: + spellbook.pBodySpellbook.bIsSpellAvailable[0] = true; + spellbook.pBodySpellbook.bIsSpellAvailable[1] = true; spellbook.pBodySpellbook.bIsSpellAvailable[2] = true; spellbook.pBodySpellbook.bIsSpellAvailable[3] = true; @@ -6496,16 +6516,24 @@ spellbook.pBodySpellbook.bIsSpellAvailable[7] = true; spellbook.pBodySpellbook.bIsSpellAvailable[8] = true; spellbook.pBodySpellbook.bIsSpellAvailable[9] = true; - pActiveSkills[PLAYER_SKILL_SPIRIT] = 1; + spellbook.pBodySpellbook.bIsSpellAvailable[10] = true; spellbook.pSpiritSpellbook.bIsSpellAvailable[1] = true; spellbook.pSpiritSpellbook.bIsSpellAvailable[2] = true; spellbook.pSpiritSpellbook.bIsSpellAvailable[3] = true; spellbook.pSpiritSpellbook.bIsSpellAvailable[4] = true; spellbook.pSpiritSpellbook.bIsSpellAvailable[5] = true; spellbook.pSpiritSpellbook.bIsSpellAvailable[6] = true; + spellbook.pSpiritSpellbook.bIsSpellAvailable[7] = true; + spellbook.pSpiritSpellbook.bIsSpellAvailable[8] = true; + spellbook.pSpiritSpellbook.bIsSpellAvailable[9] = true; + spellbook.pSpiritSpellbook.bIsSpellAvailable[10] = true; break; - case PLAYER_SKILL_LIGHT: spellbook.pLightSpellbook.bIsSpellAvailable[0] = true; break; - case PLAYER_SKILL_DARK: spellbook.pDarkSpellbook.bIsSpellAvailable[0] = true; break; + case PLAYER_SKILL_LIGHT: + spellbook.pLightSpellbook.bIsSpellAvailable[0] = true; + break; + case PLAYER_SKILL_DARK: + spellbook.pDarkSpellbook.bIsSpellAvailable[0] = true; + break; } }