Mercurial > mm7
comparison Actor.cpp @ 1817:0f1543750bf8
Changing itemlist accesses to helper functions + getting rid of some pPlayers array accesses
author | Grumpy7 |
---|---|
date | Mon, 07 Oct 2013 06:37:49 +0200 |
parents | 2051dfa0a00c |
children | 0c75c3e7e436 |
comparison
equal
deleted
inserted
replaced
1794:3f1e09a71726 | 1817:0f1543750bf8 |
---|---|
4999 //v51 = (unsigned __int64 *)player->pEquipment.uMainHand; | 4999 //v51 = (unsigned __int64 *)player->pEquipment.uMainHand; |
5000 int main_hand_idx = player->pEquipment.uMainHand; | 5000 int main_hand_idx = player->pEquipment.uMainHand; |
5001 v59 = 1; | 5001 v59 = 1; |
5002 if ( player->HasItemEquipped(EQUIP_MAIN_HAND) ) | 5002 if ( player->HasItemEquipped(EQUIP_MAIN_HAND) ) |
5003 { | 5003 { |
5004 auto main_hand_skill = player->pInventoryItemList[main_hand_idx - 1].GetPlayerSkillType(); | 5004 auto main_hand_skill = player->GetMainHandItem()->GetPlayerSkillType(); |
5005 //v55 = pItemsTable->pItems[player->pInventoryItems[main_hand_idx - 1].uItemID].uSkillType; | 5005 //v55 = pItemsTable->pItems[player->pInventoryItems[main_hand_idx - 1].uItemID].uSkillType; |
5006 //v28 = SkillToMastery(player->pActiveSkills[v55]); | 5006 //v28 = SkillToMastery(player->pActiveSkills[v55]); |
5007 auto main_hand_mastery = SkillToMastery(player->pActiveSkills[main_hand_skill]); | 5007 auto main_hand_mastery = SkillToMastery(player->pActiveSkills[main_hand_skill]); |
5008 //uDamageAmount = v28; | 5008 //uDamageAmount = v28; |
5009 switch (main_hand_skill) | 5009 switch (main_hand_skill) |