Mercurial > mm7
comparison Actor.cpp @ 1709:8251e59fd7c1
ITEM_ENCHANTED to ITEM_HARDENED, created helper functions to get params from itemtable for ItemGens
author | Grumpy7 |
---|---|
date | Tue, 24 Sep 2013 07:29:55 +0200 |
parents | 7182930263b3 |
children | 845a6503f55c 5be18330f9a3 |
comparison
equal
deleted
inserted
replaced
1708:f8414042db1f | 1709:8251e59fd7c1 |
---|---|
5018 //v51 = (unsigned __int64 *)player->pEquipment.uMainHand; | 5018 //v51 = (unsigned __int64 *)player->pEquipment.uMainHand; |
5019 int main_hand_idx = player->pEquipment.uMainHand; | 5019 int main_hand_idx = player->pEquipment.uMainHand; |
5020 v59 = 1; | 5020 v59 = 1; |
5021 if ( player->HasItemEquipped(EQUIP_MAIN_HAND) ) | 5021 if ( player->HasItemEquipped(EQUIP_MAIN_HAND) ) |
5022 { | 5022 { |
5023 auto main_hand_skill = pItemsTable->pItems[player->pInventoryItemList[main_hand_idx - 1].uItemID].uSkillType; | 5023 auto main_hand_skill = player->pInventoryItemList[main_hand_idx - 1].GetPlayerSkillType(); |
5024 //v55 = pItemsTable->pItems[player->pInventoryItems[main_hand_idx - 1].uItemID].uSkillType; | 5024 //v55 = pItemsTable->pItems[player->pInventoryItems[main_hand_idx - 1].uItemID].uSkillType; |
5025 //v28 = SkillToMastery(player->pActiveSkills[v55]); | 5025 //v28 = SkillToMastery(player->pActiveSkills[v55]); |
5026 auto main_hand_mastery = SkillToMastery(player->pActiveSkills[main_hand_skill]); | 5026 auto main_hand_mastery = SkillToMastery(player->pActiveSkills[main_hand_skill]); |
5027 //uDamageAmount = v28; | 5027 //uDamageAmount = v28; |
5028 switch (main_hand_skill) | 5028 switch (main_hand_skill) |