Mercurial > mm7
comparison Player.cpp @ 894:df0ffbb70cc6
all_magic flag
author | Ritor1 |
---|---|
date | Wed, 03 Apr 2013 14:52:15 +0600 |
parents | b6573b99ca40 |
children | 10fa7dad1391 |
comparison
equal
deleted
inserted
replaced
893:4676774b225c | 894:df0ffbb70cc6 |
---|---|
6452 | 6452 |
6453 switch (i) | 6453 switch (i) |
6454 { | 6454 { |
6455 case PLAYER_SKILL_FIRE: | 6455 case PLAYER_SKILL_FIRE: |
6456 spellbook.pFireSpellbook.bIsSpellAvailable[0] = true;//its temporary, for test spells | 6456 spellbook.pFireSpellbook.bIsSpellAvailable[0] = true;//its temporary, for test spells |
6457 | 6457 |
6458 spellbook.pFireSpellbook.bIsSpellAvailable[1] = true; | 6458 extern bool all_magic; |
6459 spellbook.pFireSpellbook.bIsSpellAvailable[2] = true; | 6459 if ( all_magic == true ) |
6460 spellbook.pFireSpellbook.bIsSpellAvailable[3] = true; | 6460 { |
6461 spellbook.pFireSpellbook.bIsSpellAvailable[4] = true; | 6461 pActiveSkills[PLAYER_SKILL_AIR] = 1; |
6462 spellbook.pFireSpellbook.bIsSpellAvailable[5] = true; | 6462 pActiveSkills[PLAYER_SKILL_WATER] = 1; |
6463 spellbook.pFireSpellbook.bIsSpellAvailable[6] = true; | 6463 pActiveSkills[PLAYER_SKILL_EARTH] = 1; |
6464 spellbook.pFireSpellbook.bIsSpellAvailable[7] = true; | 6464 spellbook.pFireSpellbook.bIsSpellAvailable[1] = true; |
6465 spellbook.pFireSpellbook.bIsSpellAvailable[8] = true; | 6465 spellbook.pFireSpellbook.bIsSpellAvailable[2] = true; |
6466 spellbook.pFireSpellbook.bIsSpellAvailable[9] = true; | 6466 spellbook.pFireSpellbook.bIsSpellAvailable[3] = true; |
6467 spellbook.pFireSpellbook.bIsSpellAvailable[10] = true; | 6467 spellbook.pFireSpellbook.bIsSpellAvailable[4] = true; |
6468 spellbook.pFireSpellbook.bIsSpellAvailable[5] = true; | |
6469 spellbook.pFireSpellbook.bIsSpellAvailable[6] = true; | |
6470 spellbook.pFireSpellbook.bIsSpellAvailable[7] = true; | |
6471 spellbook.pFireSpellbook.bIsSpellAvailable[8] = true; | |
6472 spellbook.pFireSpellbook.bIsSpellAvailable[9] = true; | |
6473 spellbook.pFireSpellbook.bIsSpellAvailable[10] = true; | |
6468 spellbook.pAirSpellbook.bIsSpellAvailable[0] = true; | 6474 spellbook.pAirSpellbook.bIsSpellAvailable[0] = true; |
6469 spellbook.pAirSpellbook.bIsSpellAvailable[1] = true; | 6475 spellbook.pAirSpellbook.bIsSpellAvailable[1] = true; |
6470 spellbook.pAirSpellbook.bIsSpellAvailable[2] = true; | 6476 spellbook.pAirSpellbook.bIsSpellAvailable[2] = true; |
6471 spellbook.pAirSpellbook.bIsSpellAvailable[3] = true; | 6477 spellbook.pAirSpellbook.bIsSpellAvailable[3] = true; |
6472 spellbook.pAirSpellbook.bIsSpellAvailable[4] = true; | 6478 spellbook.pAirSpellbook.bIsSpellAvailable[4] = true; |
6485 spellbook.pWaterSpellbook.bIsSpellAvailable[6] = true; | 6491 spellbook.pWaterSpellbook.bIsSpellAvailable[6] = true; |
6486 spellbook.pWaterSpellbook.bIsSpellAvailable[7] = true; | 6492 spellbook.pWaterSpellbook.bIsSpellAvailable[7] = true; |
6487 spellbook.pWaterSpellbook.bIsSpellAvailable[8] = true; | 6493 spellbook.pWaterSpellbook.bIsSpellAvailable[8] = true; |
6488 spellbook.pWaterSpellbook.bIsSpellAvailable[9] = true; | 6494 spellbook.pWaterSpellbook.bIsSpellAvailable[9] = true; |
6489 spellbook.pWaterSpellbook.bIsSpellAvailable[10] = true; | 6495 spellbook.pWaterSpellbook.bIsSpellAvailable[10] = true; |
6496 spellbook.pEarthSpellbook.bIsSpellAvailable[0] = true; | |
6497 spellbook.pEarthSpellbook.bIsSpellAvailable[1] = true; | |
6498 spellbook.pEarthSpellbook.bIsSpellAvailable[2] = true; | |
6499 spellbook.pEarthSpellbook.bIsSpellAvailable[3] = true; | |
6500 spellbook.pEarthSpellbook.bIsSpellAvailable[4] = true; | |
6501 spellbook.pEarthSpellbook.bIsSpellAvailable[5] = true; | |
6502 spellbook.pEarthSpellbook.bIsSpellAvailable[6] = true; | |
6503 spellbook.pEarthSpellbook.bIsSpellAvailable[7] = true; | |
6504 spellbook.pEarthSpellbook.bIsSpellAvailable[8] = true; | |
6505 spellbook.pEarthSpellbook.bIsSpellAvailable[9] = true; | |
6506 spellbook.pEarthSpellbook.bIsSpellAvailable[10] = true; | |
6507 } | |
6490 break; | 6508 break; |
6491 case PLAYER_SKILL_AIR: | 6509 case PLAYER_SKILL_AIR: |
6492 spellbook.pAirSpellbook.bIsSpellAvailable[0] = true; | 6510 spellbook.pAirSpellbook.bIsSpellAvailable[0] = true; |
6493 break; | 6511 break; |
6494 case PLAYER_SKILL_WATER: | 6512 case PLAYER_SKILL_WATER: |
6497 case PLAYER_SKILL_EARTH: | 6515 case PLAYER_SKILL_EARTH: |
6498 spellbook.pEarthSpellbook.bIsSpellAvailable[0] = true; | 6516 spellbook.pEarthSpellbook.bIsSpellAvailable[0] = true; |
6499 break; | 6517 break; |
6500 case PLAYER_SKILL_SPIRIT: | 6518 case PLAYER_SKILL_SPIRIT: |
6501 spellbook.pSpiritSpellbook.bIsSpellAvailable[0] = true; | 6519 spellbook.pSpiritSpellbook.bIsSpellAvailable[0] = true; |
6502 | |
6503 break; | 6520 break; |
6504 case PLAYER_SKILL_MIND: | 6521 case PLAYER_SKILL_MIND: |
6505 spellbook.pMindSpellbook.bIsSpellAvailable[0] = true; | 6522 spellbook.pMindSpellbook.bIsSpellAvailable[0] = true; |
6506 break; | 6523 break; |
6507 case PLAYER_SKILL_BODY: | 6524 case PLAYER_SKILL_BODY: |
6508 spellbook.pBodySpellbook.bIsSpellAvailable[0] = true; | 6525 spellbook.pBodySpellbook.bIsSpellAvailable[0] = true; |
6509 | 6526 |
6510 spellbook.pBodySpellbook.bIsSpellAvailable[1] = true; | 6527 if ( all_magic == true ) |
6511 spellbook.pBodySpellbook.bIsSpellAvailable[2] = true; | 6528 { |
6512 spellbook.pBodySpellbook.bIsSpellAvailable[3] = true; | 6529 pActiveSkills[PLAYER_SKILL_MIND] = 1; |
6513 spellbook.pBodySpellbook.bIsSpellAvailable[4] = true; | 6530 pActiveSkills[PLAYER_SKILL_SPIRIT] = 1; |
6514 spellbook.pBodySpellbook.bIsSpellAvailable[5] = true; | 6531 spellbook.pBodySpellbook.bIsSpellAvailable[1] = true; |
6515 spellbook.pBodySpellbook.bIsSpellAvailable[6] = true; | 6532 spellbook.pBodySpellbook.bIsSpellAvailable[2] = true; |
6516 spellbook.pBodySpellbook.bIsSpellAvailable[7] = true; | 6533 spellbook.pBodySpellbook.bIsSpellAvailable[3] = true; |
6517 spellbook.pBodySpellbook.bIsSpellAvailable[8] = true; | 6534 spellbook.pBodySpellbook.bIsSpellAvailable[4] = true; |
6518 spellbook.pBodySpellbook.bIsSpellAvailable[9] = true; | 6535 spellbook.pBodySpellbook.bIsSpellAvailable[5] = true; |
6519 spellbook.pBodySpellbook.bIsSpellAvailable[10] = true; | 6536 spellbook.pBodySpellbook.bIsSpellAvailable[6] = true; |
6520 spellbook.pSpiritSpellbook.bIsSpellAvailable[1] = true; | 6537 spellbook.pBodySpellbook.bIsSpellAvailable[7] = true; |
6521 spellbook.pSpiritSpellbook.bIsSpellAvailable[2] = true; | 6538 spellbook.pBodySpellbook.bIsSpellAvailable[8] = true; |
6522 spellbook.pSpiritSpellbook.bIsSpellAvailable[3] = true; | 6539 spellbook.pBodySpellbook.bIsSpellAvailable[9] = true; |
6523 spellbook.pSpiritSpellbook.bIsSpellAvailable[4] = true; | 6540 spellbook.pBodySpellbook.bIsSpellAvailable[10] = true; |
6524 spellbook.pSpiritSpellbook.bIsSpellAvailable[5] = true; | 6541 spellbook.pMindSpellbook.bIsSpellAvailable[1] = true; |
6525 spellbook.pSpiritSpellbook.bIsSpellAvailable[6] = true; | 6542 spellbook.pMindSpellbook.bIsSpellAvailable[2] = true; |
6526 spellbook.pSpiritSpellbook.bIsSpellAvailable[7] = true; | 6543 spellbook.pMindSpellbook.bIsSpellAvailable[3] = true; |
6527 spellbook.pSpiritSpellbook.bIsSpellAvailable[8] = true; | 6544 spellbook.pMindSpellbook.bIsSpellAvailable[4] = true; |
6528 spellbook.pSpiritSpellbook.bIsSpellAvailable[9] = true; | 6545 spellbook.pMindSpellbook.bIsSpellAvailable[5] = true; |
6529 spellbook.pSpiritSpellbook.bIsSpellAvailable[10] = true; | 6546 spellbook.pMindSpellbook.bIsSpellAvailable[6] = true; |
6547 spellbook.pMindSpellbook.bIsSpellAvailable[7] = true; | |
6548 spellbook.pMindSpellbook.bIsSpellAvailable[8] = true; | |
6549 spellbook.pMindSpellbook.bIsSpellAvailable[9] = true; | |
6550 spellbook.pMindSpellbook.bIsSpellAvailable[10] = true; | |
6551 spellbook.pSpiritSpellbook.bIsSpellAvailable[1] = true; | |
6552 spellbook.pSpiritSpellbook.bIsSpellAvailable[2] = true; | |
6553 spellbook.pSpiritSpellbook.bIsSpellAvailable[3] = true; | |
6554 spellbook.pSpiritSpellbook.bIsSpellAvailable[4] = true; | |
6555 spellbook.pSpiritSpellbook.bIsSpellAvailable[5] = true; | |
6556 spellbook.pSpiritSpellbook.bIsSpellAvailable[6] = true; | |
6557 spellbook.pSpiritSpellbook.bIsSpellAvailable[7] = true; | |
6558 spellbook.pSpiritSpellbook.bIsSpellAvailable[8] = true; | |
6559 spellbook.pSpiritSpellbook.bIsSpellAvailable[9] = true; | |
6560 spellbook.pSpiritSpellbook.bIsSpellAvailable[10] = true; | |
6561 } | |
6530 break; | 6562 break; |
6531 case PLAYER_SKILL_LIGHT: | 6563 case PLAYER_SKILL_LIGHT: |
6532 spellbook.pLightSpellbook.bIsSpellAvailable[0] = true; | 6564 spellbook.pLightSpellbook.bIsSpellAvailable[0] = true; |
6533 break; | 6565 break; |
6534 case PLAYER_SKILL_DARK: | 6566 case PLAYER_SKILL_DARK: |