comparison Player.cpp @ 288:9a6052fecad4

m
author Ritor1
date Mon, 18 Feb 2013 19:16:15 +0600
parents 64770a1eb8e9
children 92d443ed0cba
comparison
equal deleted inserted replaced
287:64770a1eb8e9 288:9a6052fecad4
3348 } 3348 }
3349 3349
3350 //----- (0048D62C) -------------------------------------------------------- 3350 //----- (0048D62C) --------------------------------------------------------
3351 int Player::GetEquippedItemEquipType(unsigned int uEquipSlot) 3351 int Player::GetEquippedItemEquipType(unsigned int uEquipSlot)
3352 { 3352 {
3353 return pItemsTable->pItems[*(int *)&this->pInventoryItems[36 * *(&this->pEquipment.uOffHand 3353 return pItemsTable->pItems[pInventoryItems[pEquipment.pIndices[uEquipSlot]-1].uItemID].uEquipType;
3354 + uEquipSlot)
3355 + 5]].uEquipType;
3356 } 3354 }
3357 3355
3358 //----- (0048D651) -------------------------------------------------------- 3356 //----- (0048D651) --------------------------------------------------------
3359 int Player::GetEquippedItemSkillType(enum ITEM_EQUIP_TYPE uEquipSlot) 3357 int Player::GetEquippedItemSkillType(enum ITEM_EQUIP_TYPE uEquipSlot)
3360 { 3358 {
3361 return pItemsTable->pItems[*(int *)&this->pInventoryItems[36 * *(&this->pEquipment.uOffHand 3359 return pItemsTable->pItems[pInventoryItems[pEquipment.pIndices[uEquipSlot] - 1].uItemID].uSkillType;
3362 + uEquipSlot)
3363 + 5]].uSkillType;
3364 } 3360 }
3365 3361
3366 //----- (0048D676) -------------------------------------------------------- 3362 //----- (0048D676) --------------------------------------------------------
3367 bool Player::IsUnarmed() 3363 bool Player::IsUnarmed()
3368 { 3364 {