Mercurial > wow > askmrrobot
comparison Gear.lua @ 83:af2474d28bb4 v39
Added Russian translation.
author | yellowfive |
---|---|
date | Wed, 03 Aug 2016 18:04:17 -0700 |
parents | 0515882856f1 |
children | fe0bc2f32851 |
comparison
equal
deleted
inserted
replaced
82:ae52b5b44273 | 83:af2474d28bb4 |
---|---|
606 else | 606 else |
607 -- inventory slot we're swapping from is still locked, can't continue yet | 607 -- inventory slot we're swapping from is still locked, can't continue yet |
608 if IsInventoryItemLocked(_pendingEquip.slot) then return end | 608 if IsInventoryItemLocked(_pendingEquip.slot) then return end |
609 end | 609 end |
610 | 610 |
611 -- move on to the next item, this item is done | 611 -- move on to the next item, this item is done or could not be swapped |
612 _pendingEquip.doneSlots[_pendingEquip.destSlot] = true | 612 |
613 local item = _pendingEquip.itemsToEquip[_pendingEquip.destSlot] | |
614 local itemLink = GetInventoryItemLink("player", _pendingEquip.destSlot) | |
615 if itemLink then | |
616 local invItem = Amr.ParseItemLink(itemLink) | |
617 if invItem ~= nil then | |
618 local diff = countItemDifferences(item, invItem) | |
619 if diff == 0 then | |
620 _pendingEquip.doneSlots[_pendingEquip.destSlot] = true | |
621 end | |
622 end | |
623 end | |
624 | |
613 _pendingEquip.itemsToEquip[_pendingEquip.destSlot] = nil | 625 _pendingEquip.itemsToEquip[_pendingEquip.destSlot] = nil |
614 _pendingEquip.destSlot = nil | 626 _pendingEquip.destSlot = nil |
615 _pendingEquip.bag = nil | 627 _pendingEquip.bag = nil |
616 _pendingEquip.slot = nil | 628 _pendingEquip.slot = nil |
617 | 629 |