Mercurial > mm7
diff mm7_6.cpp @ 224:9917d3b4925e
items init refactored
author | Gloval |
---|---|
date | Sun, 17 Feb 2013 14:46:05 +0400 |
parents | 1bd823f52e3a |
children | c879446b4a22 |
line wrap: on
line diff
--- a/mm7_6.cpp Sun Feb 17 11:41:44 2013 +0400 +++ b/mm7_6.cpp Sun Feb 17 14:46:05 2013 +0400 @@ -5265,7 +5265,7 @@ v313 = *(char *)(LODWORD(v725) + 28); if ( v313 == 3 | v313 == 4 | v313 == 5 | v313 == 6 | v313 == 7 | v313 == 8 | v313 == 9 | v313 == 10 | v313 == 11 ) { - v314 = rand() % pItemsTable->field_116D8[pItemsTable->pItems[*(int *)v245].uEquipType]; + v314 = rand() % 10;//pItemsTable->field_116D8[pItemsTable->pItems[*(int *)v245].uEquipType]; *(int *)(v245 + 4) = 0; for ( j = pItemsTable->pEnchantments[0].to_item[pItemsTable->pItems[*(int *)v245].uEquipType + 1]; @@ -5278,8 +5278,8 @@ break; } v254 = rand(); - v255 = pItemsTable->field_116D8[17]; - v256 = pItemsTable->field_116D8[16]; + v255 = 10;//pItemsTable->field_116D8[17]; + v256 = 10;//pItemsTable->field_116D8[16]; LABEL_611: *(int *)(v245 + 8) = v256 + v254 % (v255 - v256 + 1); LABEL_612: @@ -5352,7 +5352,7 @@ if ( rand() % 100 < 80 && !(*(char *)(LODWORD(v273) + 28) == 0 | *(char *)(LODWORD(v273) + 28) == 1 | *(char *)(LODWORD(v273) + 28) == 2) ) { - v275 = rand() % pItemsTable->field_116D8[pItemsTable->pItems[*(int *)v245].uEquipType]; + v275 = rand() % 10;//pItemsTable->field_116D8[pItemsTable->pItems[*(int *)v245].uEquipType]; *(int *)(v245 + 4) = 0; for ( k = pItemsTable->pEnchantments[0].to_item[pItemsTable->pItems[*(int *)v245].uEquipType + 1]; ; @@ -5364,8 +5364,8 @@ break; } v254 = rand(); - v255 = pItemsTable->field_116D8[19]; - v256 = pItemsTable->field_116D8[18]; + v255 = 10;//pItemsTable->field_116D8[19]; + v256 = 10;//pItemsTable->field_116D8[18]; goto LABEL_611; } v277 = pItemsTable->pSpecialEnchantments_count; @@ -5450,7 +5450,7 @@ if ( rand() % 100 < 80 && !(*(char *)(LODWORD(v250) + 28) == 0 | *(char *)(LODWORD(v250) + 28) == 1 | *(char *)(LODWORD(v250) + 28) == 2) ) { - v252 = rand() % pItemsTable->field_116D8[pItemsTable->pItems[*(int *)v245].uEquipType]; + v252 = rand() % 10;//pItemsTable->field_116D8[pItemsTable->pItems[*(int *)v245].uEquipType]; *(int *)(v245 + 4) = 0; for ( m = pItemsTable->pEnchantments[0].to_item[pItemsTable->pItems[*(int *)v245].uEquipType + 1]; ; @@ -5462,8 +5462,8 @@ break; } v254 = rand(); - v255 = pItemsTable->field_116D8[21]; - v256 = pItemsTable->field_116D8[20]; + v255 = 10;// pItemsTable->field_116D8[21]; + v256 = 10;//pItemsTable->field_116D8[20]; goto LABEL_611; } v257 = pItemsTable->pSpecialEnchantments_count; @@ -5602,7 +5602,7 @@ { v293 = rand(); v294 = _this; - v295 = v293 % pItemsTable->field_116D8[pItemsTable->pItems[_this->uItemID].uEquipType]; + v295 = v293 % 10;// pItemsTable->field_116D8[pItemsTable->pItems[_this->uItemID].uEquipType]; _this->_bonus_type = 0; for ( kk = pItemsTable->pEnchantments[0].to_item[pItemsTable->pItems[v294->uItemID].uEquipType + 1]; ; @@ -5613,8 +5613,8 @@ if ( kk >= v295 ) break; } - v294->_bonus_strength = pItemsTable->field_116D8[18] - + rand() % (pItemsTable->field_116D8[19] - pItemsTable->field_116D8[18] + 1); + v294->_bonus_strength = 10//pItemsTable->field_116D8[18] + + rand() % 10;//(pItemsTable->field_116D8[19] - pItemsTable->field_116D8[18] + 1); } v294->uAttributes |= 0x20u; goto LABEL_1055;