comparison mm7_2.cpp @ 187:49728858c35e

On player voices
author Nomad
date Fri, 15 Feb 2013 22:38:05 +0200
parents d65528fc3bda
children 9b77686e2239
comparison
equal deleted inserted replaced
186:d65528fc3bda 187:49728858c35e
241 Party::TakeGold(v2); 241 Party::TakeGold(v2);
242 pParty->uFine -= v2; 242 pParty->uFine -= v2;
243 if ( pParty->uFine < 0 ) 243 if ( pParty->uFine < 0 )
244 pParty->uFine = 0; 244 pParty->uFine = 0;
245 if ( uActiveCharacter ) 245 if ( uActiveCharacter )
246 pPlayers[uActiveCharacter]->PlaySound(81, 0); 246 pPlayers[uActiveCharacter]->PlaySound(SPEECH_81, 0);
247 v0 = ptr_507BC0; 247 v0 = ptr_507BC0;
248 } 248 }
249 else 249 else
250 { 250 {
251 if ( ptr_507BC0->field_40 != 3 ) 251 if ( ptr_507BC0->field_40 != 3 )
345 if ( v7 ) 345 if ( v7 )
346 { 346 {
347 Party::TakeGold(v7); 347 Party::TakeGold(v7);
348 pParty->uNumGoldInBank += v7; 348 pParty->uNumGoldInBank += v7;
349 if ( uActiveCharacter ) 349 if ( uActiveCharacter )
350 pPlayers[uActiveCharacter]->PlaySound(81, 0); 350 pPlayers[uActiveCharacter]->PlaySound(SPEECH_81, 0);
351 } 351 }
352 v0 = ptr_507BC0; 352 v0 = ptr_507BC0;
353 LABEL_16: 353 LABEL_16:
354 v0->field_40 = 0; 354 v0->field_40 = 0;
355 goto LABEL_17; 355 goto LABEL_17;
741 //if ( (double)pParty->uNumFoodRations >= p2DEvents_minus1__20[13 * (unsigned int)ptr_507BC0->ptr_1C] ) 741 //if ( (double)pParty->uNumFoodRations >= p2DEvents_minus1__20[13 * (unsigned int)ptr_507BC0->ptr_1C] )
742 if ( (double)pParty->uNumFoodRations >= p2DEvents[(unsigned int)ptr_507BC0->ptr_1C - 1].fPriceMultiplier ) 742 if ( (double)pParty->uNumFoodRations >= p2DEvents[(unsigned int)ptr_507BC0->ptr_1C - 1].fPriceMultiplier )
743 { 743 {
744 ShowStatusBarString(pGlobalTXT_LocalizationStrings[140], 2u); 744 ShowStatusBarString(pGlobalTXT_LocalizationStrings[140], 2u);
745 if ( uActiveCharacter ) 745 if ( uActiveCharacter )
746 pPlayers[uActiveCharacter]->PlaySound(67, 0); 746 pPlayers[uActiveCharacter]->PlaySound(SPEECH_67, 0);
747 goto LABEL_43; 747 goto LABEL_43;
748 } 748 }
749 if ( pParty->uNumGold >= v7 ) 749 if ( pParty->uNumGold >= v7 )
750 { 750 {
751 Party::TakeGold(v7); 751 Party::TakeGold(v7);
4186 else 4186 else
4187 { 4187 {
4188 Party::TakeGold(v37); 4188 Party::TakeGold(v37);
4189 dword_F8B1E4 = 1; 4189 dword_F8B1E4 = 1;
4190 *(short *)v38 = 1; 4190 *(short *)v38 = 1;
4191 v35->PlaySound(78, 0); 4191 v35->PlaySound(SPEECH_78, 0);
4192 } 4192 }
4193 } 4193 }
4194 } 4194 }
4195 } 4195 }
4196 else 4196 else
4597 v26 = 1; 4597 v26 = 1;
4598 v20->uAttributes |= 1u; 4598 v20->uAttributes |= 1u;
4599 memcpy(&v0->spellbook.pDarkSpellbook.bIsSpellAvailable[36 * v25 + 5], v20, 0x24u); 4599 memcpy(&v0->spellbook.pDarkSpellbook.bIsSpellAvailable[36 * v25 + 5], v20, 0x24u);
4600 goto LABEL_42; 4600 goto LABEL_42;
4601 } 4601 }
4602 v0->PlaySound(15, 0); 4602 v0->PlaySound(SPEECH_15, 0);
4603 v54 = 5; 4603 v54 = 5;
4604 LABEL_70: 4604 LABEL_70:
4605 v9 = pGlobalTXT_LocalizationStrings[563]; // "Pack is Full!" 4605 v9 = pGlobalTXT_LocalizationStrings[563]; // "Pack is Full!"
4606 goto LABEL_71; 4606 goto LABEL_71;
4607 } 4607 }
4687 viewparams->bRedrawGameUI = v26; 4687 viewparams->bRedrawGameUI = v26;
4688 _this->Reset(); 4688 _this->Reset();
4689 pRenderer->ClearZBuffer(0, 479); 4689 pRenderer->ClearZBuffer(0, 479);
4690 v27 = v77; 4690 v27 = v77;
4691 v53 = 0; 4691 v53 = 0;
4692 v51 = 75; 4692 v51 = SPEECH_75;
4693 LABEL_81: 4693 LABEL_81:
4694 v27->PlaySound(v51, v53); 4694 v27->PlaySound((PlayerSpeech)v51, v53);
4695 return; 4695 return;
4696 } 4696 }
4697 v0->PlaySound(15, 0); 4697 v0->PlaySound(SPEECH_15, 0);
4698 v54 = 2; 4698 v54 = 2;
4699 goto LABEL_70; 4699 goto LABEL_70;
4700 } 4700 }
4701 if ( dword_F8B19C == 3 ) 4701 if ( dword_F8B19C == 3 )
4702 { 4702 {
4715 pRenderer->ClearZBuffer(0, 479); 4715 pRenderer->ClearZBuffer(0, 479);
4716 v53 = 0; 4716 v53 = 0;
4717 v51 = 77; 4717 v51 = 77;
4718 goto LABEL_80; 4718 goto LABEL_80;
4719 } 4719 }
4720 v0->PlaySound(79, 0); 4720 v0->PlaySound(SPEECH_79, 0);
4721 v56 = 0; 4721 v56 = 0;
4722 v52 = 0; 4722 v52 = 0;
4723 v50 = 0; 4723 v50 = 0;
4724 v49 = 0; 4724 v49 = 0;
4725 v48 = -1; 4725 v48 = -1;
4751 if ( pParty->uNumGold >= v80 ) 4751 if ( pParty->uNumGold >= v80 )
4752 { 4752 {
4753 dword_F8B1E4 = 1; 4753 dword_F8B1E4 = 1;
4754 Party::TakeGold(v80); 4754 Party::TakeGold(v80);
4755 *(int *)(v12 + 20) |= 1u; 4755 *(int *)(v12 + 20) |= 1u;
4756 v0->PlaySound(73, 0); 4756 v0->PlaySound(SPEECH_73, 0);
4757 v9 = pGlobalTXT_LocalizationStrings[569]; 4757 v9 = pGlobalTXT_LocalizationStrings[569];
4758 goto LABEL_25; 4758 goto LABEL_25;
4759 } 4759 }
4760 goto LABEL_26; 4760 goto LABEL_26;
4761 } 4761 }
4804 dword_F8B1E4 = 1; 4804 dword_F8B1E4 = 1;
4805 Party::TakeGold(v80); 4805 Party::TakeGold(v80);
4806 v8 = *(int *)(v3 + 20); 4806 v8 = *(int *)(v3 + 20);
4807 LOBYTE(v8) = v8 & 0xFD; 4807 LOBYTE(v8) = v8 & 0xFD;
4808 *(int *)(v3 + 20) = v8 | 1; 4808 *(int *)(v3 + 20) = v8 | 1;
4809 v0->PlaySound(74, 0); 4809 v0->PlaySound(SPEECH_74, 0);
4810 v9 = pGlobalTXT_LocalizationStrings[570]; 4810 v9 = pGlobalTXT_LocalizationStrings[570];
4811 LABEL_25: 4811 LABEL_25:
4812 v54 = 2; 4812 v54 = 2;
4813 LABEL_71: 4813 LABEL_71:
4814 ShowStatusBarString(v9, v54); 4814 ShowStatusBarString(v9, v54);
15117 LABEL_7: 15117 LABEL_7:
15118 LOBYTE(v5) = v0->GetActualSkillLevel(PLAYER_SKILL_SPEAR); 15118 LOBYTE(v5) = v0->GetActualSkillLevel(PLAYER_SKILL_SPEAR);
15119 if ( (signed int)SkillToMastery(v5) < 3 ) 15119 if ( (signed int)SkillToMastery(v5) < 3 )
15120 { 15120 {
15121 LABEL_8: 15121 LABEL_8:
15122 v0->PlaySound(39, 0); 15122 v0->PlaySound(SPEECH_39, 0);
15123 return; 15123 return;
15124 } 15124 }
15125 v3 = pParty->pPickedItem.uItemID; 15125 v3 = pParty->pPickedItem.uItemID;
15126 goto LABEL_16; 15126 goto LABEL_16;
15127 } 15127 }