WoWInterface SVN DressToKill

Compare Revisions

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

Rev 16 → Rev 17

DressToKill.lua
164,6 → 164,7
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)
175,7 → 176,6
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,6 → 183,7
-- 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)
192,7 → 193,7
if oh_equipped then
local oh_link = GetInventoryItemLink("player", offslot) or linen_shirt
local oh_score = weightFunction(oh_link, offslot)
score = oh_score
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)
212,6 → 213,7
end
end
else
score = mh_score
debug("Got score of %s for %s", score, mh_link)
if score >= weapon_max then
weapon_max = score