comparison Player.cpp @ 377:243418228760

GetIdentifiedName
author Gloval
date Fri, 22 Feb 2013 22:27:45 +0400
parents 7f5538ed7875
children 4a42c2f97aa2 0a1ea44b4a0a
comparison
equal deleted inserted replaced
376:615e6b6f55c2 377:243418228760
2794 while ( !v11 ); 2794 while ( !v11 );
2795 } 2795 }
2796 v12 = pItemsTable->pItems[v8].uDamageMod + v28; 2796 v12 = pItemsTable->pItems[v8].uDamageMod + v28;
2797 if ( !uTargetActorID ) 2797 if ( !uTargetActorID )
2798 goto LABEL_28; 2798 goto LABEL_28;
2799 v13 = v6->uAdditionalValue; 2799 v13 = v6->uSpecEnchantmentType;
2800 if ( v13 == 64 || v7 == 507 || v7 == 508 || v7 == 527 ) 2800 if ( v13 == 64 || v7 == 507 || v7 == 508 || v7 == 527 )
2801 { 2801 {
2802 v14 = (MONSTER_SUPERTYPE)1; 2802 v14 = (MONSTER_SUPERTYPE)1;
2803 } 2803 }
2804 else 2804 else
2865 while ( !v11 ); 2865 while ( !v11 );
2866 } 2866 }
2867 v4 = pItemsTable->pItems[v17].uDamageMod + v29; 2867 v4 = pItemsTable->pItems[v17].uDamageMod + v29;
2868 if ( !uTargetActorID ) 2868 if ( !uTargetActorID )
2869 goto LABEL_57; 2869 goto LABEL_57;
2870 v19 = v15->uAdditionalValue; 2870 v19 = v15->uSpecEnchantmentType;
2871 if ( v19 == 64 || v16 == 507 || v16 == 508 || v16 == 527 ) 2871 if ( v19 == 64 || v16 == 507 || v16 == 508 || v16 == 527 )
2872 { 2872 {
2873 v20 = (MONSTER_SUPERTYPE)1; 2873 v20 = (MONSTER_SUPERTYPE)1;
2874 } 2874 }
2875 else 2875 else
3046 while ( !v8 ); 3046 while ( !v8 );
3047 } 3047 }
3048 v9 = pItemsTable->pItems[v6].uDamageMod + v17; 3048 v9 = pItemsTable->pItems[v6].uDamageMod + v17;
3049 if ( a2 ) 3049 if ( a2 )
3050 { 3050 {
3051 v10 = v4->uAdditionalValue; 3051 v10 = v4->uSpecEnchantmentType;
3052 if ( v10 == 64 ) 3052 if ( v10 == 64 )
3053 { 3053 {
3054 v11 = (MONSTER_SUPERTYPE)1; 3054 v11 = (MONSTER_SUPERTYPE)1;
3055 goto LABEL_17; 3055 goto LABEL_17;
3056 } 3056 }
3369 bool Player::HasEnchantedItemEquipped(int uEnchantment) 3369 bool Player::HasEnchantedItemEquipped(int uEnchantment)
3370 { 3370 {
3371 for (uint i = 0; i < 16; ++i) 3371 for (uint i = 0; i < 16; ++i)
3372 { 3372 {
3373 if (HasItemEquipped((ITEM_EQUIP_TYPE)i) && 3373 if (HasItemEquipped((ITEM_EQUIP_TYPE)i) &&
3374 pInventoryItems[i].uAdditionalValue == uEnchantment) 3374 pInventoryItems[i].uSpecEnchantmentType == uEnchantment)
3375 // *(int *)&this->field_1F6[36 * pEquipment[i] + 6] != uEnchantment) 3375 // *(int *)&this->field_1F6[36 * pEquipment[i] + 6] != uEnchantment)
3376 return true; 3376 return true;
3377 } 3377 }
3378 return false; 3378 return false;
3379 } 3379 }
3530 } 3530 }
3531 while ( v7 ); 3531 while ( v7 );
3532 } 3532 }
3533 if ( pItemsTable->pItems[v5->array_000234[3].uItemID].uEquipType != 18 ) 3533 if ( pItemsTable->pItems[v5->array_000234[3].uItemID].uEquipType != 18 )
3534 return _steal_perma; 3534 return _steal_perma;
3535 v20 = (int)&v5->array_000234[3].uAdditionalValue; 3535 v20 = (int)&v5->array_000234[3].uSpecEnchantmentType;
3536 if ( (signed int)v19 > v5->array_000234[3].uAdditionalValue ) 3536 if ( (signed int)v19 > v5->array_000234[3].uSpecEnchantmentType )
3537 v19 = v5->array_000234[3].uAdditionalValue; 3537 v19 = v5->array_000234[3].uSpecEnchantmentType;
3538 v21 = *(int *)v20 == v19; 3538 v21 = *(int *)v20 == v19;
3539 *(int *)v20 -= v19; 3539 *(int *)v20 -= v19;
3540 if ( v21 ) 3540 if ( v21 )
3541 v5->array_000234[3].uItemID = 0; 3541 v5->array_000234[3].uItemID = 0;
3542 if ( v19 ) 3542 if ( v19 )
3578 if ( pItemsTable->pItems[v17].uEquipType == 12 ) 3578 if ( pItemsTable->pItems[v17].uEquipType == 12 )
3579 v27.uNumCharges = rand() % 6 + pItemsTable->pItems[v17].uDamageMod + 1; 3579 v27.uNumCharges = rand() % 6 + pItemsTable->pItems[v17].uDamageMod + 1;
3580 if ( pItemsTable->pItems[v17].uEquipType == 14 ) 3580 if ( pItemsTable->pItems[v17].uEquipType == 14 )
3581 { 3581 {
3582 if ( v16 != 220 ) 3582 if ( v16 != 220 )
3583 v27._bonus_type = 2 * rand() % 4 + 2; 3583 v27.uEncantmentType = 2 * rand() % 4 + 2;
3584 } 3584 }
3585 } 3585 }
3586 else 3586 else
3587 { 3587 {
3588 v18 = &v5->array_000234[rand() % 4]; 3588 v18 = &v5->array_000234[rand() % 4];
4659 LABEL_11: 4659 LABEL_11:
4660 ++v3; 4660 ++v3;
4661 if ( (signed int)v3 >= 16 ) 4661 if ( (signed int)v3 >= 16 )
4662 return v2; 4662 return v2;
4663 } 4663 }
4664 if ( a2 != 24 || this->pInventoryItems[v5].uAdditionalValue != 24 ) 4664 if ( a2 != 24 || this->pInventoryItems[v5].uSpecEnchantmentType != 24 )
4665 goto LABEL_11; 4665 goto LABEL_11;
4666 return 5; 4666 return 5;
4667 } 4667 }
4668 4668
4669 //----- (0048EAAE) -------------------------------------------------------- 4669 //----- (0048EAAE) --------------------------------------------------------
4898 } 4898 }
4899 } 4899 }
4900 } 4900 }
4901 v63 = (int)((char *)v6 + 36 * v31); 4901 v63 = (int)((char *)v6 + 36 * v31);
4902 attra = (ItemGen *)(v63 + 532); 4902 attra = (ItemGen *)(v63 + 532);
4903 if ( pItemsTable->_456D5E_is_some_material((ItemGen *)(v63 + 532)) == 1 4903 if ( pItemsTable->IsMaterialNonCommon((ItemGen *)(v63 + 532)) == 1
4904 && !pItemsTable->_456D43_is_material_equals_3(attra) ) 4904 && !pItemsTable->IsMaterialSpecial(attra) )
4905 { 4905 {
4906 v34 = attra->uItemID; 4906 v34 = attra->uItemID;
4907 switch ( attra->uItemID ) 4907 switch ( attra->uItemID )
4908 { 4908 {
4909 case 0x1F4u: 4909 case 0x1F4u:
6967 if ( pItemsTable->pItems[pParty->pPickedItem.uItemID].uEquipType == 14 ) 6967 if ( pItemsTable->pItems[pParty->pPickedItem.uItemID].uEquipType == 14 )
6968 { 6968 {
6969 switch ( pParty->pPickedItem.uItemID ) 6969 switch ( pParty->pPickedItem.uItemID )
6970 { 6970 {
6971 case 0xDEu: 6971 case 0xDEu:
6972 v25 = pParty->pPickedItem._bonus_type + 10; 6972 v25 = pParty->pPickedItem.uEncantmentType + 10;
6973 goto LABEL_110; 6973 goto LABEL_110;
6974 case 0xDFu: 6974 case 0xDFu:
6975 v26 = pParty->pPickedItem._bonus_type + 10; 6975 v26 = pParty->pPickedItem.uEncantmentType + 10;
6976 goto LABEL_114; 6976 goto LABEL_114;
6977 case 0xE0u: 6977 case 0xE0u:
6978 LODWORD(v3->pConditions[1]) = 0; 6978 LODWORD(v3->pConditions[1]) = 0;
6979 HIDWORD(v3->pConditions[1]) = 0; 6979 HIDWORD(v3->pConditions[1]) = 0;
6980 goto LABEL_112; 6980 goto LABEL_112;
7003 goto LABEL_173; 7003 goto LABEL_173;
7004 v70 = 0; 7004 v70 = 0;
7005 v59 = 0; 7005 v59 = 0;
7006 v50 = 5; 7006 v50 = 5;
7007 v46 = 3; 7007 v46 = 3;
7008 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7008 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7009 v29 = (char *)&v3->pPlayerBuffs[7]; 7009 v29 = (char *)&v3->pPlayerBuffs[7];
7010 goto LABEL_147; 7010 goto LABEL_147;
7011 case 0xE5u: 7011 case 0xE5u:
7012 v70 = 0; 7012 v70 = 0;
7013 v59 = 0; 7013 v59 = 0;
7014 v50 = 5; 7014 v50 = 5;
7015 v46 = 3; 7015 v46 = 3;
7016 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7016 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7017 v29 = (char *)&v3->pPlayerBuffs[8]; 7017 v29 = (char *)&v3->pPlayerBuffs[8];
7018 goto LABEL_147; 7018 goto LABEL_147;
7019 case 0xE6u: 7019 case 0xE6u:
7020 v70 = 0; 7020 v70 = 0;
7021 v59 = 0; 7021 v59 = 0;
7022 v50 = 5; 7022 v50 = 5;
7023 v46 = 3; 7023 v46 = 3;
7024 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7024 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7025 v29 = (char *)&v3->pPlayerBuffs[1]; 7025 v29 = (char *)&v3->pPlayerBuffs[1];
7026 goto LABEL_147; 7026 goto LABEL_147;
7027 case 0xE7u: 7027 case 0xE7u:
7028 v70 = 0; 7028 v70 = 0;
7029 v59 = 0; 7029 v59 = 0;
7030 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7030 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7031 v46 = 0; 7031 v46 = 0;
7032 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7032 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7033 v29 = (char *)&v3->pPlayerBuffs[11]; 7033 v29 = (char *)&v3->pPlayerBuffs[11];
7034 goto LABEL_147; 7034 goto LABEL_147;
7035 case 0xE8u: 7035 case 0xE8u:
7036 v70 = 0; 7036 v70 = 0;
7037 v59 = 0; 7037 v59 = 0;
7038 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7038 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7039 v46 = 0; 7039 v46 = 0;
7040 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7040 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7041 v29 = (char *)&v3->pPlayerBuffs[13]; 7041 v29 = (char *)&v3->pPlayerBuffs[13];
7042 goto LABEL_147; 7042 goto LABEL_147;
7043 case 0xEAu: 7043 case 0xEAu:
7044 v70 = 0; 7044 v70 = 0;
7045 v59 = 0; 7045 v59 = 0;
7046 v50 = 5; 7046 v50 = 5;
7047 v46 = 3; 7047 v46 = 3;
7048 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7048 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7049 v29 = (char *)&v3->pPlayerBuffs[14]; 7049 v29 = (char *)&v3->pPlayerBuffs[14];
7050 goto LABEL_147; 7050 goto LABEL_147;
7051 case 0xEBu: 7051 case 0xEBu:
7052 v3->pPlayerBuffs[23].Apply( 7052 v3->pPlayerBuffs[23].Apply(
7053 pParty->uTimePlayed + (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335), 7053 pParty->uTimePlayed + (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335),
7054 3u, 7054 3u,
7055 5u, 7055 5u,
7056 0, 7056 0,
7057 0); 7057 0);
7058 goto LABEL_173; 7058 goto LABEL_173;
7069 HIDWORD(v3->pConditions[5]) = 0; 7069 HIDWORD(v3->pConditions[5]) = 0;
7070 goto LABEL_112; 7070 goto LABEL_112;
7071 case 0xF0u: 7071 case 0xF0u:
7072 v70 = 0; 7072 v70 = 0;
7073 v59 = 0; 7073 v59 = 0;
7074 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7074 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7075 v46 = 0; 7075 v46 = 0;
7076 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7076 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7077 v29 = (char *)&v3->pPlayerBuffs[19]; 7077 v29 = (char *)&v3->pPlayerBuffs[19];
7078 goto LABEL_147; 7078 goto LABEL_147;
7079 case 0xF1u: 7079 case 0xF1u:
7080 v70 = 0; 7080 v70 = 0;
7081 v59 = 0; 7081 v59 = 0;
7082 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7082 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7083 v46 = 0; 7083 v46 = 0;
7084 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7084 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7085 v29 = (char *)&v3->pPlayerBuffs[17]; 7085 v29 = (char *)&v3->pPlayerBuffs[17];
7086 goto LABEL_147; 7086 goto LABEL_147;
7087 case 0xF2u: 7087 case 0xF2u:
7088 v70 = 0; 7088 v70 = 0;
7089 v59 = 0; 7089 v59 = 0;
7090 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7090 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7091 v46 = 0; 7091 v46 = 0;
7092 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7092 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7093 v29 = (char *)&v3->pPlayerBuffs[20]; 7093 v29 = (char *)&v3->pPlayerBuffs[20];
7094 goto LABEL_147; 7094 goto LABEL_147;
7095 case 0xF3u: 7095 case 0xF3u:
7096 v70 = 0; 7096 v70 = 0;
7097 v59 = 0; 7097 v59 = 0;
7098 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7098 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7099 v46 = 0; 7099 v46 = 0;
7100 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7100 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7101 v29 = (char *)&v3->pPlayerBuffs[16]; 7101 v29 = (char *)&v3->pPlayerBuffs[16];
7102 goto LABEL_147; 7102 goto LABEL_147;
7103 case 0xF4u: 7103 case 0xF4u:
7104 v70 = 0; 7104 v70 = 0;
7105 v59 = 0; 7105 v59 = 0;
7106 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7106 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7107 v46 = 0; 7107 v46 = 0;
7108 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7108 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7109 v29 = (char *)&v3->pPlayerBuffs[21]; 7109 v29 = (char *)&v3->pPlayerBuffs[21];
7110 goto LABEL_147; 7110 goto LABEL_147;
7111 case 0xF5u: 7111 case 0xF5u:
7112 v70 = 0; 7112 v70 = 0;
7113 v59 = 0; 7113 v59 = 0;
7114 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7114 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7115 v46 = 0; 7115 v46 = 0;
7116 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7116 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7117 v29 = (char *)&v3->pPlayerBuffs[15]; 7117 v29 = (char *)&v3->pPlayerBuffs[15];
7118 goto LABEL_147; 7118 goto LABEL_147;
7119 case 0xFBu: 7119 case 0xFBu:
7120 LODWORD(v3->pConditions[12]) = 0; 7120 LODWORD(v3->pConditions[12]) = 0;
7121 HIDWORD(v3->pConditions[12]) = 0; 7121 HIDWORD(v3->pConditions[12]) = 0;
7134 LODWORD(v3->pConditions[16]) = v34; 7134 LODWORD(v3->pConditions[16]) = v34;
7135 LODWORD(v3->pConditions[14]) = v30; 7135 LODWORD(v3->pConditions[14]) = v30;
7136 HIDWORD(v3->pConditions[16]) = v35; 7136 HIDWORD(v3->pConditions[16]) = v35;
7137 goto LABEL_112; 7137 goto LABEL_112;
7138 case 0xFDu: 7138 case 0xFDu:
7139 v25 = 5 * pParty->pPickedItem._bonus_type; 7139 v25 = 5 * pParty->pPickedItem.uEncantmentType;
7140 LABEL_110: 7140 LABEL_110:
7141 v69 = v25; 7141 v69 = v25;
7142 goto LABEL_111; 7142 goto LABEL_111;
7143 case 0xFEu: 7143 case 0xFEu:
7144 v26 = 5 * pParty->pPickedItem._bonus_type; 7144 v26 = 5 * pParty->pPickedItem.uEncantmentType;
7145 LABEL_114: 7145 LABEL_114:
7146 v27 = (char *)&v3->sMana; 7146 v27 = (char *)&v3->sMana;
7147 *(int *)v27 += v26; 7147 *(int *)v27 += v26;
7148 goto LABEL_170; 7148 goto LABEL_170;
7149 case 0xFFu: 7149 case 0xFFu:
7150 v70 = 0; 7150 v70 = 0;
7151 v59 = 0; 7151 v59 = 0;
7152 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7152 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7153 v46 = 0; 7153 v46 = 0;
7154 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7154 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7155 v29 = (char *)&v3->pPlayerBuffs[18]; 7155 v29 = (char *)&v3->pPlayerBuffs[18];
7156 goto LABEL_147; 7156 goto LABEL_147;
7157 case 0x100u: 7157 case 0x100u:
7158 v70 = 0; 7158 v70 = 0;
7159 v59 = 0; 7159 v59 = 0;
7160 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7160 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7161 v46 = 0; 7161 v46 = 0;
7162 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7162 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7163 v29 = (char *)&v3->pPlayerBuffs[5]; 7163 v29 = (char *)&v3->pPlayerBuffs[5];
7164 goto LABEL_147; 7164 goto LABEL_147;
7165 case 0x101u: 7165 case 0x101u:
7166 v70 = 0; 7166 v70 = 0;
7167 v59 = 0; 7167 v59 = 0;
7168 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7168 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7169 v46 = 0; 7169 v46 = 0;
7170 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7170 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7171 v29 = (char *)v3->pPlayerBuffs; 7171 v29 = (char *)v3->pPlayerBuffs;
7172 goto LABEL_147; 7172 goto LABEL_147;
7173 case 0x102u: 7173 case 0x102u:
7174 v70 = 0; 7174 v70 = 0;
7175 v59 = 0; 7175 v59 = 0;
7176 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7176 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7177 v46 = 0; 7177 v46 = 0;
7178 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7178 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7179 v29 = (char *)&v3->pPlayerBuffs[22]; 7179 v29 = (char *)&v3->pPlayerBuffs[22];
7180 goto LABEL_147; 7180 goto LABEL_147;
7181 case 0x103u: 7181 case 0x103u:
7182 v70 = 0; 7182 v70 = 0;
7183 v59 = 0; 7183 v59 = 0;
7184 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7184 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7185 v46 = 0; 7185 v46 = 0;
7186 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7186 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7187 v29 = (char *)&v3->pPlayerBuffs[3]; 7187 v29 = (char *)&v3->pPlayerBuffs[3];
7188 goto LABEL_147; 7188 goto LABEL_147;
7189 case 0x104u: 7189 case 0x104u:
7190 v70 = 0; 7190 v70 = 0;
7191 v59 = 0; 7191 v59 = 0;
7192 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7192 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7193 v46 = 0; 7193 v46 = 0;
7194 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7194 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7195 v29 = (char *)&v3->pPlayerBuffs[9]; 7195 v29 = (char *)&v3->pPlayerBuffs[9];
7196 goto LABEL_147; 7196 goto LABEL_147;
7197 case 0x105u: 7197 case 0x105u:
7198 v70 = 0; 7198 v70 = 0;
7199 v59 = 0; 7199 v59 = 0;
7200 v50 = 3 * LOWORD(pParty->pPickedItem._bonus_type); 7200 v50 = 3 * LOWORD(pParty->pPickedItem.uEncantmentType);
7201 v46 = 0; 7201 v46 = 0;
7202 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem._bonus_type) * 0.033333335); 7202 v28 = (signed __int64)((double)(230400 * pParty->pPickedItem.uEncantmentType) * 0.033333335);
7203 v29 = (char *)&v3->pPlayerBuffs[2]; 7203 v29 = (char *)&v3->pPlayerBuffs[2];
7204 LABEL_147: 7204 LABEL_147:
7205 ((SpellBuff *)v29)->Apply(pParty->uTimePlayed + v28, v46, v50, v59, v70); 7205 ((SpellBuff *)v29)->Apply(pParty->uTimePlayed + v28, v46, v50, v59, v70);
7206 goto LABEL_112; 7206 goto LABEL_112;
7207 case 0x106u: 7207 case 0x106u: