WoWInterface SVN DressToKill

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 17 to Rev 16
    Reverse comparison

Rev 17 → Rev 16

DressToKill.lua
164,7 → 164,6
debug(L["Weapon base score: %s"], mh_base)
 
-- Try on each mainhand weapon
local score
for mh_mask,item in pairs(mh_avail) do
local name, link = GetItemInfo(item)
debug(L["Equipping mainhand weapon: %s"], link)
176,6 → 175,7
debug(L["Successfully equipped %s"], link)
local mh_link = GetInventoryItemLink("player", mainslot)
local mh_score = weightFunction(mh_link, mainslot) - mh_base
local score = mh_score
debug(L["Mainhand score: %d"], score)
 
if not IsEquippedItemType("Two-Hand") then
183,7 → 183,6
-- Try to equip each off-hand weapon to compliment this one
for oh_mask,item in pairs(oh_avail) do
if not blacklist[oh_mask] then
score = mh_score
local name, link = GetItemInfo(item)
 
debug(L["Equipping offhand weapon: %s"], link)
193,7 → 192,7
if oh_equipped then
local oh_link = GetInventoryItemLink("player", offslot) or linen_shirt
local oh_score = weightFunction(oh_link, offslot)
score = score + oh_score
score = oh_score
debug(L["Got score of %s for %s/%s"], score, mh_link, oh_link)
else
debug(L["Failed to equip %s"], link)
213,7 → 212,6
end
end
else
score = mh_score
debug("Got score of %s for %s", score, mh_link)
if score >= weapon_max then
weapon_max = score