comparison mm7_4.cpp @ 470:fcdaa804074f

Tables for shopgenerators
author Gloval
date Mon, 25 Feb 2013 17:58:00 +0400
parents 0dbf780e247f
children c43f156a95c9
comparison
equal deleted inserted replaced
469:0dbf780e247f 470:fcdaa804074f
9111 return; 9111 return;
9112 v6 = 9 * (v5 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C); 9112 v6 = 9 * (v5 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C);
9113 v7 = (ItemGen *)((char *)&pParty->pPickedItem + 4 * v6 + 4); 9113 v7 = (ItemGen *)((char *)&pParty->pPickedItem + 4 * v6 + 4);
9114 if ( dword_F8B19C != 2 ) 9114 if ( dword_F8B19C != 2 )
9115 // v7 = (ItemGen *)&pParty->field_C59C[v6 + 715]; 9115 // v7 = (ItemGen *)&pParty->field_C59C[v6 + 715];
9116 v7 =&pParty->SpecialItemsInShop[(unsigned int)window_SpeakInHouse->ptr_1C][v5]; 9116 v7 =&pParty->SpecialItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v5];
9117 goto LABEL_15; 9117 goto LABEL_15;
9118 } 9118 }
9119 if ( dword_F8B198 <= 16 && dword_F8B19C == 18 ) 9119 if ( dword_F8B198 <= 16 && dword_F8B19C == 18 )
9120 { 9120 {
9121 v1 = pMouse->GetCursorPos(&a2); 9121 v1 = pMouse->GetCursorPos(&a2);
11844 else 11844 else
11845 { 11845 {
11846 do 11846 do
11847 { 11847 {
11848 // if ( pParty->field_C59C[9 * (v49 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C) + 724] ) 11848 // if ( pParty->field_C59C[9 * (v49 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C) + 724] )
11849 if (pParty->SpecialItemsInShop[(unsigned int)window_SpeakInHouse->ptr_1C][v49].uItemID) 11849 if (pParty->SpecialItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v49].uItemID)
11850 { 11850 {
11851 v58 = dword_F8B168[v49]; 11851 v58 = dword_F8B168[v49];
11852 v59 = 152 - v58->uTextureHeight; 11852 v59 = 152 - v58->uTextureHeight;
11853 if ( (signed int)v59 < 1 ) 11853 if ( (signed int)v59 < 1 )
11854 v59 = 0; 11854 v59 = 0;
11877 while ( v49 < 6 ); 11877 while ( v49 < 6 );
11878 v122 = 0; 11878 v122 = 0;
11879 do 11879 do
11880 { 11880 {
11881 //if ( pParty->Spell_Item[(unsigned int)window_SpeakInHouse->ptr_1C][v49] + 778] ) //weak 11881 //if ( pParty->Spell_Item[(unsigned int)window_SpeakInHouse->ptr_1C][v49] + 778] ) //weak
11882 if (pParty->SpecialItemsInShop[(unsigned int)window_SpeakInHouse->ptr_1C][v49].uAttributes) 11882 if (pParty->SpecialItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v49].uAttributes)
11883 { 11883 {
11884 v62 = dword_F8B168[v122 + 6]; 11884 v62 = dword_F8B168[v122 + 6];
11885 v63 = 306 - v62->uTextureHeight; 11885 v63 = 306 - v62->uTextureHeight;
11886 if ( (signed int)v63 < 1 ) 11886 if ( (signed int)v63 < 1 )
11887 v63 = 0; 11887 v63 = 0;
11925 else 11925 else
11926 { 11926 {
11927 do 11927 do
11928 { 11928 {
11929 //if ( pParty->field_C59C[9 * (v66 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C) + 724] ) 11929 //if ( pParty->field_C59C[9 * (v66 + 12 * (unsigned int)window_SpeakInHouse->ptr_1C) + 724] )
11930 if (pParty->SpecialItemsInShop[(unsigned int)window_SpeakInHouse->ptr_1C][v66].uItemID) 11930 if (pParty->SpecialItemsInShops[(unsigned int)window_SpeakInHouse->ptr_1C][v66].uItemID)
11931 ++v117; 11931 ++v117;
11932 ++v66; 11932 ++v66;
11933 } 11933 }
11934 while ( v66 < 12 ); 11934 while ( v66 < 12 );
11935 } 11935 }
11962 v72 = (int)window_SpeakInHouse->ptr_1C; 11962 v72 = (int)window_SpeakInHouse->ptr_1C;
11963 // v73 = 9 * (v71 + 12 * v72); 11963 // v73 = 9 * (v71 + 12 * v72);
11964 v74 = (ItemGen *)&pParty->StandartItemsInShops[v72][v71]; 11964 v74 = (ItemGen *)&pParty->StandartItemsInShops[v72][v71];
11965 if ( dword_F8B19C != 2 ) 11965 if ( dword_F8B19C != 2 )
11966 // v74 = (ItemGen *)&pParty->field_C59C[v73 + 724]; 11966 // v74 = (ItemGen *)&pParty->field_C59C[v73 + 724];
11967 v74 =&pParty->SpecialItemsInShop[v72][v71]; 11967 v74 =&pParty->SpecialItemsInShops[v72][v71];
11968 if ( v67 && Str ) 11968 if ( v67 && Str )
11969 { 11969 {
11970 v10 = pGlobalTXT_LocalizationStrings[181];// "Steal %24" 11970 v10 = pGlobalTXT_LocalizationStrings[181];// "Steal %24"
11971 v96 = 0; 11971 v96 = 0;
11972 v94 = 2; 11972 v94 = 2;