comparison GUI/UI/UIPopup.cpp @ 2534:1bcadc6dd203

enum SOUND_
author Ritor1
date Mon, 09 Feb 2015 19:17:12 +0600
parents c7264ab7132f
children a902abdfc7f2
comparison
equal deleted inserted replaced
2533:2baaac65d5bf 2534:1bcadc6dd203
1859 } 1859 }
1860 if ( damage_level == 1 ) 1860 if ( damage_level == 1 )
1861 { 1861 {
1862 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y); 1862 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y);
1863 pPlayers[uActiveCharacter]->ReceiveDamage(rand() % 11 + 10, DMGT_FIRE); 1863 pPlayers[uActiveCharacter]->ReceiveDamage(rand() % 11 + 10, DMGT_FIRE);
1864 pAudioPlayer->PlaySound(SOUND_Explosion, 0, 0, -1, 0, 0, 0, 0); 1864 pAudioPlayer->PlaySound(SOUND_fireBall, 0, 0, -1, 0, 0, 0, 0);
1865 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0); 1865 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0);
1866 v39.z = pParty->vPosition.z + pParty->sEyelevel; 1866 v39.z = pParty->vPosition.z + pParty->sEyelevel;
1867 v39.x = pParty->vPosition.x; 1867 v39.x = pParty->vPosition.x;
1868 v39.y = pParty->vPosition.y; 1868 v39.y = pParty->vPosition.y;
1869 1869
1884 if ( damage_level == 2 ) 1884 if ( damage_level == 2 )
1885 { 1885 {
1886 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y); 1886 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y);
1887 pPlayers[uActiveCharacter]->ReceiveDamage(rand() % 71 + 30, DMGT_FIRE); 1887 pPlayers[uActiveCharacter]->ReceiveDamage(rand() % 71 + 30, DMGT_FIRE);
1888 pPlayers[uActiveCharacter]->ItemsEnchant(1); 1888 pPlayers[uActiveCharacter]->ItemsEnchant(1);
1889 pAudioPlayer->PlaySound(SOUND_Explosion, 0, 0, -1, 0, 0, 0, 0); 1889 pAudioPlayer->PlaySound(SOUND_fireBall, 0, 0, -1, 0, 0, 0, 0);
1890 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0); 1890 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0);
1891 1891
1892 v39.z = pParty->vPosition.z + pParty->sEyelevel; 1892 v39.z = pParty->vPosition.z + pParty->sEyelevel;
1893 v39.x = pParty->vPosition.x; 1893 v39.x = pParty->vPosition.x;
1894 v39.y = pParty->vPosition.y; 1894 v39.y = pParty->vPosition.y;
1910 if ( damage_level == 3 ) 1910 if ( damage_level == 3 )
1911 { 1911 {
1912 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y); 1912 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y);
1913 pPlayers[uActiveCharacter]->ReceiveDamage(rand() % 201 + 50, DMGT_FIRE); 1913 pPlayers[uActiveCharacter]->ReceiveDamage(rand() % 201 + 50, DMGT_FIRE);
1914 pPlayers[uActiveCharacter]->ItemsEnchant(5); 1914 pPlayers[uActiveCharacter]->ItemsEnchant(5);
1915 pAudioPlayer->PlaySound(SOUND_Explosion, 0, 0, -1, 0, 0, 0, 0); 1915 pAudioPlayer->PlaySound(SOUND_fireBall, 0, 0, -1, 0, 0, 0, 0);
1916 1916
1917 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0); 1917 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0);
1918 1918
1919 v39.z = pParty->vPosition.z + pParty->sEyelevel; 1919 v39.z = pParty->vPosition.z + pParty->sEyelevel;
1920 v39.x = pParty->vPosition.x; 1920 v39.x = pParty->vPosition.x;
1937 if ( damage_level == 4 ) 1937 if ( damage_level == 4 )
1938 { 1938 {
1939 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y); 1939 pPlayers[uActiveCharacter]->RemoveItemAtInventoryIndex(pOut_y);
1940 pPlayers[uActiveCharacter]->SetCondition(Condition_Eradicated, 0); 1940 pPlayers[uActiveCharacter]->SetCondition(Condition_Eradicated, 0);
1941 pPlayers[uActiveCharacter]->ItemsEnchant(0); 1941 pPlayers[uActiveCharacter]->ItemsEnchant(0);
1942 pAudioPlayer->PlaySound(SOUND_Explosion, 0, 0, -1, 0, 0, 0, 0); 1942 pAudioPlayer->PlaySound(SOUND_fireBall, 0, 0, -1, 0, 0, 0, 0);
1943 1943
1944 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0); 1944 pMessageQueue_50CBD0->AddGUIMessage(UIMSG_Escape, 0, 0);
1945 1945
1946 v39.z = pParty->vPosition.z + pParty->sEyelevel; 1946 v39.z = pParty->vPosition.z + pParty->sEyelevel;
1947 v39.x = pParty->vPosition.x; 1947 v39.x = pParty->vPosition.x;