comparison Player.cpp @ 857:e4bd2a0bf08b

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