Mercurial > mm7
comparison Player.cpp @ 849:8fafe3645f36
* PID replaces
* Actor::GetDirectionInfo cleaning
author | zipi |
---|---|
date | Sun, 31 Mar 2013 11:46:28 +0100 |
parents | dfd683c4f538 |
children | e4bd2a0bf08b |
comparison
equal
deleted
inserted
replaced
848:ceef50611567 | 849:8fafe3645f36 |
---|---|
7486 } | 7486 } |
7487 goto LABEL_167; | 7487 goto LABEL_167; |
7488 } | 7488 } |
7489 pGame->pStru6Instance->SetPlayerBuffAnim(0x97u, a2 - 1); | 7489 pGame->pStru6Instance->SetPlayerBuffAnim(0x97u, a2 - 1); |
7490 v5 = 8 * a2 + 392; | 7490 v5 = 8 * a2 + 392; |
7491 LOBYTE(v5) = (8 * a2 - 120) | 4; | 7491 LOBYTE(v5) = PID(a2 - 120,OBJECT_Player); |
7492 pAudioPlayer->PlaySound(SOUND_20001, v5, 0, -1, 0, 0, 0, 0); | 7492 pAudioPlayer->PlaySound(SOUND_20001, v5, 0, -1, 0, 0, 0, 0); |
7493 v3->AddVariable(VAR_NumSkillPoints, 2); | 7493 v3->AddVariable(VAR_NumSkillPoints, 2); |
7494 } | 7494 } |
7495 LABEL_187: | 7495 LABEL_187: |
7496 pMouse->RemoveHoldingItem(); | 7496 pMouse->RemoveHoldingItem(); |
8307 return; | 8307 return; |
8308 bFlashHistoryBook = 1; | 8308 bFlashHistoryBook = 1; |
8309 } | 8309 } |
8310 LABEL_172: | 8310 LABEL_172: |
8311 v25 = 8 * currPlayerId + 400; | 8311 v25 = 8 * currPlayerId + 400; |
8312 LOBYTE(v25) = (8 * currPlayerId - 112) | 4; | 8312 LOBYTE(v25) = PID(currPlayerId - 112,OBJECT_Player); |
8313 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5); | 8313 pAudioPlayer->PlaySound(SOUND_20001, v25, v5, -1, v5, v5, v5, v5); |
8314 return; | 8314 return; |
8315 } | 8315 } |
8316 if ( var_type != 307 ) | 8316 if ( var_type != 307 ) |
8317 { | 8317 { |
8457 else | 8457 else |
8458 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId); | 8458 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId); |
8459 if ( v31 != 1 ) | 8459 if ( v31 != 1 ) |
8460 return; | 8460 return; |
8461 v25 = 8 * currPlayerId + 400; | 8461 v25 = 8 * currPlayerId + 400; |
8462 LOBYTE(v25) = (8 * currPlayerId - 112) | 4; | 8462 LOBYTE(v25) = PID(currPlayerId - 112,OBJECT_Player); |
8463 pAudioPlayer->PlaySound(SOUND_20001, v25, 0, -1, 0, 0, 0, 0); | 8463 pAudioPlayer->PlaySound(SOUND_20001, v25, 0, -1, 0, 0, 0, 0); |
8464 return; | 8464 return; |
8465 case VAR_PlayerItemInHands: | 8465 case VAR_PlayerItemInHands: |
8466 item.Reset(); | 8466 item.Reset(); |
8467 item.Reset(); | 8467 item.Reset(); |
8731 { | 8731 { |
8732 if ( v31 != 1 ) | 8732 if ( v31 != 1 ) |
8733 return; | 8733 return; |
8734 v5 = 0; | 8734 v5 = 0; |
8735 v25 = 8 * currPlayerId + 400; | 8735 v25 = 8 * currPlayerId + 400; |
8736 LOBYTE(v25) = (8 * currPlayerId - 112) | 4; | 8736 LOBYTE(v25) = PID(currPlayerId - 112,OBJECT_Player); |
8737 pAudioPlayer->PlaySound(SOUND_20001, v25, 0, -1, 0, 0, 0, 0); | 8737 pAudioPlayer->PlaySound(SOUND_20001, v25, 0, -1, 0, 0, 0, 0); |
8738 return; | 8738 return; |
8739 } | 8739 } |
8740 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId); | 8740 pGame->pStru6Instance->SetPlayerBuffAnim(0x96u, currPlayerId); |
8741 goto LABEL_170; | 8741 goto LABEL_170; |
9254 v26) ) | 9254 v26) ) |
9255 return; | 9255 return; |
9256 bFlashHistoryBook = 1; | 9256 bFlashHistoryBook = 1; |
9257 _play_sound: | 9257 _play_sound: |
9258 v28 = 8 * uPlayerIdx + 400; | 9258 v28 = 8 * uPlayerIdx + 400; |
9259 LOBYTE(v28) = (8 * uPlayerIdx - 112) | 4; | 9259 LOBYTE(v28) = PID(uPlayerIdx - 112,OBJECT_Player); |
9260 pAudioPlayer->PlaySound(SOUND_20001, v28, 0, -1, 0, 0, 0, 0); | 9260 pAudioPlayer->PlaySound(SOUND_20001, v28, 0, -1, 0, 0, 0, 0); |
9261 return; | 9261 return; |
9262 } | 9262 } |
9263 v27 = &pOutdoor->ddm; | 9263 v27 = &pOutdoor->ddm; |
9264 if ( uCurrentlyLoadedLevelType != LEVEL_Outdoor ) | 9264 if ( uCurrentlyLoadedLevelType != LEVEL_Outdoor ) |
9464 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[504], v7); | 9464 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[504], v7); |
9465 ShowStatusBarString(pTmpBuf, 2u); | 9465 ShowStatusBarString(pTmpBuf, 2u); |
9466 GameUI_DrawFoodAndGold(); | 9466 GameUI_DrawFoodAndGold(); |
9467 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9467 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9468 v8 = 8 * v4 + 400; | 9468 v8 = 8 * v4 + 400; |
9469 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9469 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9470 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9470 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9471 return result; | 9471 return result; |
9472 case VAR_CurrentHP: | 9472 case VAR_CurrentHP: |
9473 ReceiveDamage((signed int)pValue, 4); | 9473 ReceiveDamage((signed int)pValue, 4); |
9474 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9474 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9475 v8 = 8 * v4 + 400; | 9475 v8 = 8 * v4 + 400; |
9476 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9476 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9477 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9477 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9478 return result; | 9478 return result; |
9479 case VAR_CurrentSP: | 9479 case VAR_CurrentSP: |
9480 v9 = (char *)&this->sMana; | 9480 v9 = (char *)&this->sMana; |
9481 v10 = this->sMana - (signed int)pValue < 0; | 9481 v10 = this->sMana - (signed int)pValue < 0; |
9482 *(int *)v9 -= (int)pValue; | 9482 *(int *)v9 -= (int)pValue; |
9483 if ( v10 ) | 9483 if ( v10 ) |
9484 *(int *)v9 = 0; | 9484 *(int *)v9 = 0; |
9485 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9485 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9486 v8 = 8 * v4 + 400; | 9486 v8 = 8 * v4 + 400; |
9487 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9487 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9488 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9488 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9489 return result; | 9489 return result; |
9490 case VAR_ACModifier: | 9490 case VAR_ACModifier: |
9491 this->sACModifier -= (unsigned __int8)pValue; | 9491 this->sACModifier -= (unsigned __int8)pValue; |
9492 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9492 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9493 v8 = 8 * v4 + 400; | 9493 v8 = 8 * v4 + 400; |
9494 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9494 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9495 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9495 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9496 return result; | 9496 return result; |
9497 case VAR_BaseLevel: | 9497 case VAR_BaseLevel: |
9498 this->uLevel -= (unsigned __int8)pValue; | 9498 this->uLevel -= (unsigned __int8)pValue; |
9499 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9499 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9500 v8 = 8 * v4 + 400; | 9500 v8 = 8 * v4 + 400; |
9501 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9501 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9502 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9502 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9503 return result; | 9503 return result; |
9504 case VAR_LevelModifier: | 9504 case VAR_LevelModifier: |
9505 this->sLevelModifier -= (unsigned __int8)pValue; | 9505 this->sLevelModifier -= (unsigned __int8)pValue; |
9506 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9506 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9507 v8 = 8 * v4 + 400; | 9507 v8 = 8 * v4 + 400; |
9508 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9508 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9509 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9509 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9510 return result; | 9510 return result; |
9511 case VAR_Age: | 9511 case VAR_Age: |
9512 this->sAgeModifier -= (signed __int16)pValue; | 9512 this->sAgeModifier -= (signed __int16)pValue; |
9513 return result; | 9513 return result; |
9520 v14 = *(int *)v12 < (unsigned int)pValue; | 9520 v14 = *(int *)v12 < (unsigned int)pValue; |
9521 *(int *)v12 -= (int)pValue; | 9521 *(int *)v12 -= (int)pValue; |
9522 *((int *)v12 + 1) -= v14 + HIDWORD(v13); | 9522 *((int *)v12 + 1) -= v14 + HIDWORD(v13); |
9523 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9523 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9524 v8 = 8 * v4 + 400; | 9524 v8 = 8 * v4 + 400; |
9525 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9525 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9526 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9526 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9527 return result; | 9527 return result; |
9528 case VAR_QBits_QuestsDone: | 9528 case VAR_QBits_QuestsDone: |
9529 _449B7E_toggle_bit(pParty->_quest_bits, (__int16)pValue, 0); | 9529 _449B7E_toggle_bit(pParty->_quest_bits, (__int16)pValue, 0); |
9530 pPlayers[v4 + 1]->PlaySound(SPEECH_96, 0); | 9530 pPlayers[v4 + 1]->PlaySound(SPEECH_96, 0); |
9541 case VAR_ActualMight: | 9541 case VAR_ActualMight: |
9542 this->uMightBonus -= (unsigned __int16)pValue; | 9542 this->uMightBonus -= (unsigned __int16)pValue; |
9543 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9543 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9544 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9544 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9545 v8 = 8 * v4 + 400; | 9545 v8 = 8 * v4 + 400; |
9546 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9546 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9547 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9547 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9548 return result; | 9548 return result; |
9549 case VAR_IntellectBonus: | 9549 case VAR_IntellectBonus: |
9550 case VAR_ActualIntellect: | 9550 case VAR_ActualIntellect: |
9551 this->uIntelligenceBonus -= (unsigned __int16)pValue; | 9551 this->uIntelligenceBonus -= (unsigned __int16)pValue; |
9552 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9552 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9553 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9553 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9554 v8 = 8 * v4 + 400; | 9554 v8 = 8 * v4 + 400; |
9555 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9555 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9556 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9556 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9557 return result; | 9557 return result; |
9558 case VAR_PersonalityBonus: | 9558 case VAR_PersonalityBonus: |
9559 case VAR_ActualPersonality: | 9559 case VAR_ActualPersonality: |
9560 this->uWillpowerBonus -= (unsigned __int16)pValue; | 9560 this->uWillpowerBonus -= (unsigned __int16)pValue; |
9561 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9561 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9562 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9562 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9563 v8 = 8 * v4 + 400; | 9563 v8 = 8 * v4 + 400; |
9564 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9564 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9565 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9565 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9566 return result; | 9566 return result; |
9567 case VAR_EnduranceBonus: | 9567 case VAR_EnduranceBonus: |
9568 case VAR_ActualEndurance: | 9568 case VAR_ActualEndurance: |
9569 this->uEnduranceBonus -= (unsigned __int16)pValue; | 9569 this->uEnduranceBonus -= (unsigned __int16)pValue; |
9570 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9570 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9571 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9571 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9572 v8 = 8 * v4 + 400; | 9572 v8 = 8 * v4 + 400; |
9573 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9573 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9574 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9574 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9575 return result; | 9575 return result; |
9576 case VAR_SpeedBonus: | 9576 case VAR_SpeedBonus: |
9577 case VAR_ActualSpeed: | 9577 case VAR_ActualSpeed: |
9578 this->uSpeedBonus -= (unsigned __int16)pValue; | 9578 this->uSpeedBonus -= (unsigned __int16)pValue; |
9579 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9579 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9580 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9580 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9581 v8 = 8 * v4 + 400; | 9581 v8 = 8 * v4 + 400; |
9582 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9582 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9583 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9583 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9584 return result; | 9584 return result; |
9585 case VAR_AccuracyBonus: | 9585 case VAR_AccuracyBonus: |
9586 case VAR_ActualAccuracy: | 9586 case VAR_ActualAccuracy: |
9587 this->uAccuracyBonus -= (unsigned __int16)pValue; | 9587 this->uAccuracyBonus -= (unsigned __int16)pValue; |
9588 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9588 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9589 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9589 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9590 v8 = 8 * v4 + 400; | 9590 v8 = 8 * v4 + 400; |
9591 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9591 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9592 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9592 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9593 return result; | 9593 return result; |
9594 case VAR_LuckBonus: | 9594 case VAR_LuckBonus: |
9595 case VAR_ActualLuck: | 9595 case VAR_ActualLuck: |
9596 this->uLuckBonus -= (unsigned __int16)pValue; | 9596 this->uLuckBonus -= (unsigned __int16)pValue; |
9597 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9597 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9598 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9598 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9599 v8 = 8 * v4 + 400; | 9599 v8 = 8 * v4 + 400; |
9600 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9600 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9601 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9601 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9602 return result; | 9602 return result; |
9603 case VAR_BaseMight: | 9603 case VAR_BaseMight: |
9604 this->uMight -= (unsigned __int16)pValue; | 9604 this->uMight -= (unsigned __int16)pValue; |
9605 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9605 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9606 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9606 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9607 v8 = 8 * v4 + 400; | 9607 v8 = 8 * v4 + 400; |
9608 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9608 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9609 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9609 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9610 return result; | 9610 return result; |
9611 case VAR_BaseIntellect: | 9611 case VAR_BaseIntellect: |
9612 this->uIntelligence -= (unsigned __int16)pValue; | 9612 this->uIntelligence -= (unsigned __int16)pValue; |
9613 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9613 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9614 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9614 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9615 v8 = 8 * v4 + 400; | 9615 v8 = 8 * v4 + 400; |
9616 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9616 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9617 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9617 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9618 return result; | 9618 return result; |
9619 case VAR_BasePersonality: | 9619 case VAR_BasePersonality: |
9620 this->uWillpower -= (unsigned __int16)pValue; | 9620 this->uWillpower -= (unsigned __int16)pValue; |
9621 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9621 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9622 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9622 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9623 v8 = 8 * v4 + 400; | 9623 v8 = 8 * v4 + 400; |
9624 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9624 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9625 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9625 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9626 return result; | 9626 return result; |
9627 case VAR_BaseEndurance: | 9627 case VAR_BaseEndurance: |
9628 this->uEndurance -= (unsigned __int16)pValue; | 9628 this->uEndurance -= (unsigned __int16)pValue; |
9629 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9629 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9630 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9630 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9631 v8 = 8 * v4 + 400; | 9631 v8 = 8 * v4 + 400; |
9632 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9632 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9633 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9633 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9634 return result; | 9634 return result; |
9635 case VAR_BaseSpeed: | 9635 case VAR_BaseSpeed: |
9636 this->uSpeed -= (unsigned __int16)pValue; | 9636 this->uSpeed -= (unsigned __int16)pValue; |
9637 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9637 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9638 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9638 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9639 v8 = 8 * v4 + 400; | 9639 v8 = 8 * v4 + 400; |
9640 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9640 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9641 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9641 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9642 return result; | 9642 return result; |
9643 case VAR_BaseAccuracy: | 9643 case VAR_BaseAccuracy: |
9644 this->uAccuracy -= (unsigned __int16)pValue; | 9644 this->uAccuracy -= (unsigned __int16)pValue; |
9645 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9645 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9646 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9646 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9647 v8 = 8 * v4 + 400; | 9647 v8 = 8 * v4 + 400; |
9648 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9648 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9649 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9649 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9650 return result; | 9650 return result; |
9651 case VAR_BaseLuck: | 9651 case VAR_BaseLuck: |
9652 this->uLuck -= (unsigned __int16)pValue; | 9652 this->uLuck -= (unsigned __int16)pValue; |
9653 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9653 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9654 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9654 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9655 v8 = 8 * v4 + 400; | 9655 v8 = 8 * v4 + 400; |
9656 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9656 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9657 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9657 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9658 return result; | 9658 return result; |
9659 case VAR_FireResistance: | 9659 case VAR_FireResistance: |
9660 this->sResFireBase -= (signed __int16)pValue; | 9660 this->sResFireBase -= (signed __int16)pValue; |
9661 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9661 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9662 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9662 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9663 v8 = 8 * v4 + 400; | 9663 v8 = 8 * v4 + 400; |
9664 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9664 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9665 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9665 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9666 return result; | 9666 return result; |
9667 case VAR_AirResistance: | 9667 case VAR_AirResistance: |
9668 this->sResAirBase -= (signed __int16)pValue; | 9668 this->sResAirBase -= (signed __int16)pValue; |
9669 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9669 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9670 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9670 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9671 v8 = 8 * v4 + 400; | 9671 v8 = 8 * v4 + 400; |
9672 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9672 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9673 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9673 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9674 return result; | 9674 return result; |
9675 case VAR_WaterResistance: | 9675 case VAR_WaterResistance: |
9676 this->sResWaterBase -= (signed __int16)pValue; | 9676 this->sResWaterBase -= (signed __int16)pValue; |
9677 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9677 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9678 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9678 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9679 v8 = 8 * v4 + 400; | 9679 v8 = 8 * v4 + 400; |
9680 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9680 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9681 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9681 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9682 return result; | 9682 return result; |
9683 case VAR_EarthResistance: | 9683 case VAR_EarthResistance: |
9684 this->sResEarthBase -= (signed __int16)pValue; | 9684 this->sResEarthBase -= (signed __int16)pValue; |
9685 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9685 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9686 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9686 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9687 v8 = 8 * v4 + 400; | 9687 v8 = 8 * v4 + 400; |
9688 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9688 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9689 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9689 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9690 return result; | 9690 return result; |
9691 case VAR_SpiritResistance: | 9691 case VAR_SpiritResistance: |
9692 this->sResSpiritBase -= (signed __int16)pValue; | 9692 this->sResSpiritBase -= (signed __int16)pValue; |
9693 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9693 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9694 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9694 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9695 v8 = 8 * v4 + 400; | 9695 v8 = 8 * v4 + 400; |
9696 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9696 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9697 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9697 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9698 return result; | 9698 return result; |
9699 case VAR_MindResistance: | 9699 case VAR_MindResistance: |
9700 this->sResMindBase -= (signed __int16)pValue; | 9700 this->sResMindBase -= (signed __int16)pValue; |
9701 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9701 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9702 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9702 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9703 v8 = 8 * v4 + 400; | 9703 v8 = 8 * v4 + 400; |
9704 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9704 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9705 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9705 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9706 return result; | 9706 return result; |
9707 case VAR_BodyResistance: | 9707 case VAR_BodyResistance: |
9708 this->sResBodyBase -= (signed __int16)pValue; | 9708 this->sResBodyBase -= (signed __int16)pValue; |
9709 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9709 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9710 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9710 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9711 v8 = 8 * v4 + 400; | 9711 v8 = 8 * v4 + 400; |
9712 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9712 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9713 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9713 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9714 return result; | 9714 return result; |
9715 case VAR_LightResistance: | 9715 case VAR_LightResistance: |
9716 this->sResLightBase -= (signed __int16)pValue; | 9716 this->sResLightBase -= (signed __int16)pValue; |
9717 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9717 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9718 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9718 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9719 v8 = 8 * v4 + 400; | 9719 v8 = 8 * v4 + 400; |
9720 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9720 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9721 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9721 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9722 return result; | 9722 return result; |
9723 case VAR_DarkResistance: | 9723 case VAR_DarkResistance: |
9724 this->sResDarkBase -= (signed __int16)pValue; | 9724 this->sResDarkBase -= (signed __int16)pValue; |
9725 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9725 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9726 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9726 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9727 v8 = 8 * v4 + 400; | 9727 v8 = 8 * v4 + 400; |
9728 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9728 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9729 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9729 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9730 return result; | 9730 return result; |
9731 case VAR_MagicResistance: | 9731 case VAR_MagicResistance: |
9732 this->sResMagicBase -= (signed __int16)pValue; | 9732 this->sResMagicBase -= (signed __int16)pValue; |
9733 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9733 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9734 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9734 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9735 v8 = 8 * v4 + 400; | 9735 v8 = 8 * v4 + 400; |
9736 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9736 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9737 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9737 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9738 return result; | 9738 return result; |
9739 case VAR_FireResistanceBonus: | 9739 case VAR_FireResistanceBonus: |
9740 this->sResFireBonus -= (signed __int16)pValue; | 9740 this->sResFireBonus -= (signed __int16)pValue; |
9741 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9741 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9742 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9742 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9743 v8 = 8 * v4 + 400; | 9743 v8 = 8 * v4 + 400; |
9744 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9744 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9745 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9745 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9746 return result; | 9746 return result; |
9747 case VAR_AirResistanceBonus: | 9747 case VAR_AirResistanceBonus: |
9748 this->sResAirBonus -= (signed __int16)pValue; | 9748 this->sResAirBonus -= (signed __int16)pValue; |
9749 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); | 9749 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)92, 0); |
9750 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9750 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9751 v8 = 8 * v4 + 400; | 9751 v8 = 8 * v4 + 400; |
9752 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9752 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9753 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9753 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9754 return result; | 9754 return result; |
9755 case VAR_WaterResistanceBonus: | 9755 case VAR_WaterResistanceBonus: |
9756 this->sResWaterBonus -= (signed __int16)pValue; | 9756 this->sResWaterBonus -= (signed __int16)pValue; |
9757 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9757 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9758 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9758 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9759 v8 = 8 * v4 + 400; | 9759 v8 = 8 * v4 + 400; |
9760 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9760 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9761 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9761 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9762 return result; | 9762 return result; |
9763 case VAR_EarthResistanceBonus: | 9763 case VAR_EarthResistanceBonus: |
9764 this->sResEarthBonus -= (signed __int16)pValue; | 9764 this->sResEarthBonus -= (signed __int16)pValue; |
9765 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9765 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9766 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9766 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9767 v8 = 8 * v4 + 400; | 9767 v8 = 8 * v4 + 400; |
9768 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9768 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9769 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9769 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9770 return result; | 9770 return result; |
9771 case VAR_SpiritResistanceBonus: | 9771 case VAR_SpiritResistanceBonus: |
9772 this->sResSpiritBonus -= (signed __int16)pValue; | 9772 this->sResSpiritBonus -= (signed __int16)pValue; |
9773 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9773 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9774 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9774 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9775 v8 = 8 * v4 + 400; | 9775 v8 = 8 * v4 + 400; |
9776 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9776 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9777 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9777 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9778 return result; | 9778 return result; |
9779 case VAR_MindResistanceBonus: | 9779 case VAR_MindResistanceBonus: |
9780 this->sResMindBonus -= (signed __int16)pValue; | 9780 this->sResMindBonus -= (signed __int16)pValue; |
9781 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9781 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9782 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9782 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9783 v8 = 8 * v4 + 400; | 9783 v8 = 8 * v4 + 400; |
9784 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9784 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9785 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9785 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9786 return result; | 9786 return result; |
9787 case VAR_BodyResistanceBonus: | 9787 case VAR_BodyResistanceBonus: |
9788 this->sResBodyBonus -= (signed __int16)pValue; | 9788 this->sResBodyBonus -= (signed __int16)pValue; |
9789 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9789 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9790 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9790 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9791 v8 = 8 * v4 + 400; | 9791 v8 = 8 * v4 + 400; |
9792 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9792 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9793 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9793 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9794 return result; | 9794 return result; |
9795 case VAR_LightResistanceBonus: | 9795 case VAR_LightResistanceBonus: |
9796 this->sResLightBonus -= (signed __int16)pValue; | 9796 this->sResLightBonus -= (signed __int16)pValue; |
9797 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9797 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9798 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9798 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9799 v8 = 8 * v4 + 400; | 9799 v8 = 8 * v4 + 400; |
9800 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9800 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9801 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9801 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9802 return result; | 9802 return result; |
9803 case VAR_DarkResistanceBonus: | 9803 case VAR_DarkResistanceBonus: |
9804 this->sResDarkBonus -= (signed __int16)pValue; | 9804 this->sResDarkBonus -= (signed __int16)pValue; |
9805 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); | 9805 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)SPEECH_91, 0); |
9806 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9806 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9807 v8 = 8 * v4 + 400; | 9807 v8 = 8 * v4 + 400; |
9808 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9808 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9809 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9809 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9810 return result; | 9810 return result; |
9811 case VAR_MagicResistanceBonus: | 9811 case VAR_MagicResistanceBonus: |
9812 this->sResMagicBonus -= (signed __int16)pValue; | 9812 this->sResMagicBonus -= (signed __int16)pValue; |
9813 v25 = 0; | 9813 v25 = 0; |
9814 v23 = SPEECH_91; | 9814 v23 = SPEECH_91; |
9815 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)v23, v25); | 9815 pPlayers[v4 + 1]->PlaySound((PlayerSpeech)v23, v25); |
9816 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9816 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9817 v8 = 8 * v4 + 400; | 9817 v8 = 8 * v4 + 400; |
9818 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9818 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9819 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9819 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9820 return result; | 9820 return result; |
9821 case VAR_FixedFood: | 9821 case VAR_FixedFood: |
9822 Party::TakeFood((unsigned int)pValue); | 9822 Party::TakeFood((unsigned int)pValue); |
9823 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9823 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9824 v8 = 8 * v4 + 400; | 9824 v8 = 8 * v4 + 400; |
9825 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9825 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9826 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9826 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9827 return result; | 9827 return result; |
9828 case VAR_StaffSkill: | 9828 case VAR_StaffSkill: |
9829 case VAR_SwordSkill: | 9829 case VAR_SwordSkill: |
9830 case VAR_DaggerSkill: | 9830 case VAR_DaggerSkill: |
9856 case VAR_DisarmTrapSkill: | 9856 case VAR_DisarmTrapSkill: |
9857 case VAR_LearningSkill: | 9857 case VAR_LearningSkill: |
9858 *((short *)&this->pConditions[16] + VarNum) -= (unsigned __int8)pValue; | 9858 *((short *)&this->pConditions[16] + VarNum) -= (unsigned __int8)pValue; |
9859 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9859 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9860 v8 = 8 * v4 + 400; | 9860 v8 = 8 * v4 + 400; |
9861 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9861 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9862 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9862 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9863 return result; | 9863 return result; |
9864 case VAR_Cursed: | 9864 case VAR_Cursed: |
9865 case VAR_Weak: | 9865 case VAR_Weak: |
9866 case VAR_Asleep: | 9866 case VAR_Asleep: |
9880 case VAR_Eradicated: | 9880 case VAR_Eradicated: |
9881 *((int *)this + 2 * VarNum - 210) = 0; | 9881 *((int *)this + 2 * VarNum - 210) = 0; |
9882 *((int *)this + 2 * result - 209) = 0; | 9882 *((int *)this + 2 * result - 209) = 0; |
9883 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); | 9883 pGame->pStru6Instance->SetPlayerBuffAnim(0x98u, v4); |
9884 v8 = 8 * v4 + 400; | 9884 v8 = 8 * v4 + 400; |
9885 LOBYTE(v8) = (8 * v4 - 112) | 4; | 9885 LOBYTE(v8) = PID(v4 - 112,OBJECT_Player); |
9886 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); | 9886 pAudioPlayer->PlaySound(SOUND_20001, v8, 0, -1, 0, 0, 0, 0); |
9887 return result; | 9887 return result; |
9888 default: | 9888 default: |
9889 return result; | 9889 return result; |
9890 } | 9890 } |