Mercurial > mm7
diff Items.cpp @ 816:cfc65feef029
* Player Recovery Times
* Player Attack fixes
* Debug log to timers
author | Nomad |
---|---|
date | Tue, 26 Mar 2013 12:40:27 +0200 |
parents | cf2fbac6edc9 |
children | 96796d55bb5d |
line wrap: on
line diff
--- a/Items.cpp Tue Mar 26 06:40:04 2013 +0200 +++ b/Items.cpp Tue Mar 26 12:40:27 2013 +0200 @@ -547,17 +547,17 @@ { if ( !_strcmpi(test_string, "weapon") ) { - pItems[item_counter].uEquipType = EQUIP_ONE_OR_TWO_HANDS; + pItems[item_counter].uEquipType = EQUIP_OFF_HAND; break; } if ( !_strcmpi(test_string, "weapon2") ) { - pItems[item_counter].uEquipType = EQUIP_TWO_HANDED; + pItems[item_counter].uEquipType = EQUIP_MAIN_HAND; break; } if ( !_strcmpi(test_string, "weapon1or2") ) { - pItems[item_counter].uEquipType = EQUIP_ONE_OR_TWO_HANDS; + pItems[item_counter].uEquipType = EQUIP_OFF_HAND; break; } if ( !(_strcmpi(test_string, "missile")&&_strcmpi(test_string, "bow"))) @@ -1609,7 +1609,7 @@ PLAYER_SKILL_TYPE requested_skill = PLAYER_SKILL_INVALID; switch (uTreasureType) { - case 20: requested_equip = EQUIP_ONE_OR_TWO_HANDS; break; + case 20: requested_equip = EQUIP_OFF_HAND; break; case 21: requested_equip = EQUIP_ARMOUR; break; case 22: requested_skill = PLAYER_SKILL_MISC; break; case 23: requested_skill = PLAYER_SKILL_SWORD; break; @@ -1760,8 +1760,8 @@ //try get special enhansment switch (pItems[out_item->uItemID].uEquipType) { - case EQUIP_ONE_OR_TWO_HANDS: - case EQUIP_TWO_HANDED : + case EQUIP_OFF_HAND: + case EQUIP_MAIN_HAND : case EQUIP_BOW : if ( !uBonusChanceWpSpecial[v6] ) return;