comparison mm7_2.cpp @ 377:243418228760

GetIdentifiedName
author Gloval
date Fri, 22 Feb 2013 22:27:45 +0400
parents edd2d8b7e3c4
children c0700eaabeb8
comparison
equal deleted inserted replaced
376:615e6b6f55c2 377:243418228760
7987 } 7987 }
7988 v18 = v15; 7988 v18 = v15;
7989 } 7989 }
7990 a1a.stru_24.SetIdentified(); 7990 a1a.stru_24.SetIdentified();
7991 a1a.uObjectDescID = v18; 7991 a1a.uObjectDescID = v18;
7992 a1a.stru_24.uAdditionalValue = v34; 7992 a1a.stru_24.uSpecEnchantmentType = v34;
7993 goto LABEL_35; 7993 goto LABEL_35;
7994 } 7994 }
7995 v14 = rand() % 3001 + 2000; 7995 v14 = rand() % 3001 + 2000;
7996 } 7996 }
7997 a1a.stru_24.uItemID = 199; 7997 a1a.stru_24.uItemID = 199;
8145 goto LABEL_15; 8145 goto LABEL_15;
8146 } 8146 }
8147 } 8147 }
8148 LABEL_23: 8148 LABEL_23:
8149 v3->SetIdentified(); 8149 v3->SetIdentified();
8150 v3->uAdditionalValue = v10; 8150 v3->uSpecEnchantmentType = v10;
8151 LABEL_25: 8151 LABEL_25:
8152 v11 = v4 - 1; 8152 v11 = v4 - 1;
8153 v12 = 0; 8153 v12 = 0;
8154 if ( v11 > 0 ) 8154 if ( v11 > 0 )
8155 { 8155 {
8210 v17 = rand() % 3001 + 2000; 8210 v17 = rand() % 3001 + 2000;
8211 LABEL_41: 8211 LABEL_41:
8212 v14->uItemID = 199; 8212 v14->uItemID = 199;
8213 } 8213 }
8214 LABEL_49: 8214 LABEL_49:
8215 v14->uAdditionalValue = v17; 8215 v14->uSpecEnchantmentType = v17;
8216 LABEL_51: 8216 LABEL_51:
8217 v12 = v13 + 1; 8217 v12 = v13 + 1;
8218 LABEL_52: 8218 LABEL_52:
8219 --v22; 8219 --v22;
8220 if ( !v22 ) 8220 if ( !v22 )
15174 return 1; 15174 return 1;
15175 v19 = &pLayingItems[v18].stru_24; 15175 v19 = &pLayingItems[v18].stru_24;
15176 v20 = pLayingItems[v18].stru_24.uItemID; 15176 v20 = pLayingItems[v18].stru_24.uItemID;
15177 if ( pItemsTable->pItems[v20].uEquipType == 18 ) 15177 if ( pItemsTable->pItems[v20].uEquipType == 18 )
15178 { 15178 {
15179 party_finds_gold(v19->uAdditionalValue, 0); 15179 party_finds_gold(v19->uSpecEnchantmentType, 0);
15180 viewparams->bRedrawGameUI = 1; 15180 viewparams->bRedrawGameUI = 1;
15181 v21 = v17; 15181 v21 = v17;
15182 } 15182 }
15183 else 15183 else
15184 { 15184 {
16581 goto LABEL_23; 16581 goto LABEL_23;
16582 v11 = (char *)&pObjectList->pObjects->uObjectID; 16582 v11 = (char *)&pObjectList->pObjects->uObjectID;
16583 break; 16583 break;
16584 case 545: 16584 case 545:
16585 case 550: 16585 case 550:
16586 if ( v2->stru_24.uItemID != 405 && v2->stru_24.uAdditionalValue != 3 ) 16586 if ( v2->stru_24.uItemID != 405 && v2->stru_24.uSpecEnchantmentType != 3 )
16587 { 16587 {
16588 v14 = v153; 16588 v14 = v153;
16589 v9 = 0; 16589 v9 = 0;
16590 v2->vVelocity.z = 0; 16590 v2->vVelocity.z = 0;
16591 v2->vVelocity.y = 0; 16591 v2->vVelocity.y = 0;