Mercurial > mm7
changeset 1728:7b6b4ce8da76
Слияние
author | Ritor1 |
---|---|
date | Wed, 25 Sep 2013 12:54:34 +0600 |
parents | 2c38e17e5a3f (current diff) baa4eda7f924 (diff) |
children | f44b6e02e81c |
files | |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Player.cpp Wed Sep 25 12:54:27 2013 +0600 +++ b/Player.cpp Wed Sep 25 12:54:34 2013 +0600 @@ -2593,9 +2593,9 @@ if (HasItemEquipped(EQUIP_OFF_HAND) && GetEquippedItemEquipType(EQUIP_OFF_HAND) != EQUIP_SHIELD) // ADD: shield check because shield recovery is added later and can be accidentally doubled { + if (base_recovery_times_per_weapon_type[GetOffHandItem()->GetPlayerSkillType()] > weapon_recovery) + { weapon = GetOffHandItem(); - if (base_recovery_times_per_weapon_type[weapon->GetPlayerSkillType()] > weapon_recovery) - { weapon_recovery = base_recovery_times_per_weapon_type[weapon->GetPlayerSkillType()]; } }
--- a/UI/UICharacter.cpp Wed Sep 25 12:54:27 2013 +0600 +++ b/UI/UICharacter.cpp Wed Sep 25 12:54:34 2013 +0600 @@ -1063,7 +1063,7 @@ //--------------------------------------------(Hand/)------------------------------------------------------ if ( !pPlayers[uPlayerID]->pEquipment.uMainHand || ( pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand -1].GetItemEquipType() != EQUIP_MAIN_HAND) - && (pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand -1].GetItemEquipType() != PLAYER_SKILL_SPEAR + && (pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand -1].GetPlayerSkillType() != PLAYER_SKILL_SPEAR || pPlayers[uPlayerID]->pEquipment.uShield) ) pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_LeftHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_LeftHand[pBodyComplection][1], pIcons_LOD->GetTexture(papredoll_dlads[uPlayerID - 1])); @@ -1131,7 +1131,7 @@ if ( pPlayers[uPlayerID]->pEquipment.uMainHand ) { if ( pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand - 1].GetItemEquipType() == EQUIP_MAIN_HAND - || pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand - 1].GetItemEquipType() == PLAYER_SKILL_SPEAR + || pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand - 1].GetPlayerSkillType() == PLAYER_SKILL_SPEAR && !pPlayers[uPlayerID]->pEquipment.uShield ) pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[pBodyComplection][1], pIcons_LOD->GetTexture(papredoll_dlaus[uPlayerID - 1])); @@ -1526,7 +1526,7 @@ { item = &pPlayers[uPlayerID]->pInventoryItemList[pPlayers[uPlayerID]->pEquipment.uMainHand - 1]; if ( item->GetItemEquipType() == EQUIP_MAIN_HAND - || item->GetItemEquipType() == PLAYER_SKILL_SPEAR + || item->GetPlayerSkillType() == PLAYER_SKILL_SPEAR && !pPlayers[uPlayerID]->pEquipment.uShield ) pRenderer->DrawTextureTransparent(pPaperdoll_BodyX + pPaperdoll_SecondLeftHand[pBodyComplection][0], pPaperdoll_BodyY + pPaperdoll_SecondLeftHand[pBodyComplection][1],