comparison UI/UIHouses.cpp @ 2057:b7485a6502f2

AgressorAtackInfo
author Ritor1
date Sun, 01 Dec 2013 20:13:48 +0600
parents 03d9336e862f
children b2a434d65344
comparison
equal deleted inserted replaced
2054:62a27b2cfcc2 2057:b7485a6502f2
2280 PlayHouseSound((unsigned int)window_SpeakInHouse->ptr_1C, HouseSound_NotEnoughMoney_TrainingSuccessful); 2280 PlayHouseSound((unsigned int)window_SpeakInHouse->ptr_1C, HouseSound_NotEnoughMoney_TrainingSuccessful);
2281 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0); 2281 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0);
2282 return; 2282 return;
2283 } 2283 }
2284 Party::TakeGold(pPrice); 2284 Party::TakeGold(pPrice);
2285 v35 = LODWORD(pPlayers[uActiveCharacter]->pConditions[17]); 2285 v35 = LODWORD(pPlayers[uActiveCharacter]->pConditions[Condition_Zombie]);
2286 memset(pPlayers[uActiveCharacter], 0, 0xA0u); 2286 memset(pPlayers[uActiveCharacter], 0, 0xA0u);
2287 pPlayers[uActiveCharacter]->sHealth = pPlayers[uActiveCharacter]->GetMaxHealth(); 2287 pPlayers[uActiveCharacter]->sHealth = pPlayers[uActiveCharacter]->GetMaxHealth();
2288 pPlayers[uActiveCharacter]->sMana = pPlayers[uActiveCharacter]->GetMaxMana(); 2288 pPlayers[uActiveCharacter]->sMana = pPlayers[uActiveCharacter]->GetMaxMana();
2289 if ( (signed int)window_SpeakInHouse->ptr_1C != 78 && ((signed int)window_SpeakInHouse->ptr_1C <= 80 || (signed int)window_SpeakInHouse->ptr_1C > 82) ) 2289 if ( (signed int)window_SpeakInHouse->ptr_1C != 78 && ((signed int)window_SpeakInHouse->ptr_1C <= 80 || (signed int)window_SpeakInHouse->ptr_1C > 82) )
2290 { 2290 {
2291 if ( (unsigned int)pPlayers[uActiveCharacter]->pConditions[17] | v35 ) 2291 if ( (unsigned int)pPlayers[uActiveCharacter]->pConditions[Condition_Zombie] | v35 )
2292 { 2292 {
2293 pPlayers[uActiveCharacter]->uCurrentFace = pPlayers[uActiveCharacter]->uPrevFace; 2293 pPlayers[uActiveCharacter]->uCurrentFace = pPlayers[uActiveCharacter]->uPrevFace;
2294 pPlayers[uActiveCharacter]->uVoiceID = pPlayers[uActiveCharacter]->uPrevVoiceID; 2294 pPlayers[uActiveCharacter]->uVoiceID = pPlayers[uActiveCharacter]->uPrevVoiceID;
2295 ReloadPlayerPortraits(uActiveCharacter - 1, pPlayers[uActiveCharacter]->uPrevFace); 2295 ReloadPlayerPortraits(uActiveCharacter - 1, pPlayers[uActiveCharacter]->uPrevFace);
2296 } 2296 }
2298 pPlayers[uActiveCharacter]->PlaySound(SPEECH_82, 0); 2298 pPlayers[uActiveCharacter]->PlaySound(SPEECH_82, 0);
2299 pOtherOverlayList->_4418B1(20, uActiveCharacter + 99, 0, 65536); 2299 pOtherOverlayList->_4418B1(20, uActiveCharacter + 99, 0, 65536);
2300 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0); 2300 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0);
2301 return; 2301 return;
2302 } 2302 }
2303 if ( (unsigned int)pPlayers[uActiveCharacter]->pConditions[17] | v35 ) 2303 if ( (unsigned int)pPlayers[uActiveCharacter]->pConditions[Condition_Zombie] | v35 )
2304 { 2304 {
2305 LODWORD(pPlayers[uActiveCharacter]->pConditions[17]) = v35; 2305 LODWORD(pPlayers[uActiveCharacter]->pConditions[Condition_Zombie]) = v35;
2306 } 2306 }
2307 else 2307 else
2308 { 2308 {
2309 if ( !pPlayers[uActiveCharacter]->pConditions[16] 2309 if ( !pPlayers[uActiveCharacter]->pConditions[Condition_Eradicated]
2310 && !pPlayers[uActiveCharacter]->pConditions[15] && !pPlayers[uActiveCharacter]->pConditions[14] ) 2310 && !pPlayers[uActiveCharacter]->pConditions[Condition_Pertified] && !pPlayers[uActiveCharacter]->pConditions[Condition_Dead] )
2311 { 2311 {
2312 pAudioPlayer->PlaySound((SoundID)(SOUND_GoldReceived|0x2), -1, 0, -1, 0, 0, 0, 0); 2312 pAudioPlayer->PlaySound((SoundID)(SOUND_GoldReceived|0x2), -1, 0, -1, 0, 0, 0, 0);
2313 pPlayers[uActiveCharacter]->PlaySound(SPEECH_82, 0); 2313 pPlayers[uActiveCharacter]->PlaySound(SPEECH_82, 0);
2314 pOtherOverlayList->_4418B1(20, uActiveCharacter + 99, 0, 65536); 2314 pOtherOverlayList->_4418B1(20, uActiveCharacter + 99, 0, 65536);
2315 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0); 2315 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0);
2319 pPlayers[uActiveCharacter]->uPrevVoiceID = pPlayers[uActiveCharacter]->uVoiceID; 2319 pPlayers[uActiveCharacter]->uPrevVoiceID = pPlayers[uActiveCharacter]->uVoiceID;
2320 pPlayers[uActiveCharacter]->SetCondition(0x11u, 1); 2320 pPlayers[uActiveCharacter]->SetCondition(0x11u, 1);
2321 pPlayers[uActiveCharacter]->uVoiceID = (pPlayers[uActiveCharacter]->GetSexByVoice() != 0) + 23; 2321 pPlayers[uActiveCharacter]->uVoiceID = (pPlayers[uActiveCharacter]->GetSexByVoice() != 0) + 23;
2322 pPlayers[uActiveCharacter]->uCurrentFace = (pPlayers[uActiveCharacter]->GetSexByVoice() != 0) + 23; 2322 pPlayers[uActiveCharacter]->uCurrentFace = (pPlayers[uActiveCharacter]->GetSexByVoice() != 0) + 23;
2323 ReloadPlayerPortraits(uActiveCharacter - 1, (pPlayers[uActiveCharacter]->GetSexByVoice() != 0) + 23); 2323 ReloadPlayerPortraits(uActiveCharacter - 1, (pPlayers[uActiveCharacter]->GetSexByVoice() != 0) + 23);
2324 LODWORD(pPlayers[uActiveCharacter]->pConditions[17]) = LODWORD(pParty->uTimePlayed); 2324 LODWORD(pPlayers[uActiveCharacter]->pConditions[Condition_Zombie]) = LODWORD(pParty->uTimePlayed);
2325 //v39 = (GUIWindow *)HIDWORD(pParty->uTimePlayed); 2325 //v39 = (GUIWindow *)HIDWORD(pParty->uTimePlayed);
2326 } 2326 }
2327 //HIDWORD(pPlayers[uActiveCharacter]->pConditions[17]) = (int)v39; 2327 //HIDWORD(pPlayers[uActiveCharacter]->pConditions[Condition_Zombie]) = (int)v39;
2328 pPlayers[uActiveCharacter]->pConditions[17] =pParty->uTimePlayed; 2328 pPlayers[uActiveCharacter]->pConditions[Condition_Zombie] =pParty->uTimePlayed;
2329 pAudioPlayer->PlaySound((SoundID)(SOUND_GoldReceived|0x2), -1, 0, -1, 0, 0, 0, 0); 2329 pAudioPlayer->PlaySound((SoundID)(SOUND_GoldReceived|0x2), -1, 0, -1, 0, 0, 0, 0);
2330 pPlayers[uActiveCharacter]->PlaySound(SPEECH_82, 0); 2330 pPlayers[uActiveCharacter]->PlaySound(SPEECH_82, 0);
2331 pOtherOverlayList->_4418B1(20, uActiveCharacter + 99, 0, 65536); 2331 pOtherOverlayList->_4418B1(20, uActiveCharacter + 99, 0, 65536);
2332 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0); 2332 pMessageQueue_50CBD0->AddMessage(UIMSG_Escape, 1, 0);
2333 return; 2333 return;