1
0
Bifurcation 0

Fixed an issue where we were still trying to use the spec bolus as if it were a string rather than the table that it is now.

Cette révision appartient à :
Nathanial.C.Jones 2011-01-22 20:38:50 +00:00
Parent 6d4b5e6992
révision 3ca91527ec
1 fichiers modifiés avec 7 ajouts et 5 suppressions

Voir le fichier

@ -49,7 +49,7 @@ for k, v in pairs(invloc_lookup_proto) do
end
local function Recheck(item, location, competing)
local replaced = nil
local replaced_item = nil
local confused = false
for i, v in pairs(invloc_lookup[location]) do
@ -59,7 +59,7 @@ local function Recheck(item, location, competing)
local itype = GetItemType(ilink)
local eqtext = nil
if itype == item then
replaced = competing[i]
replaced_item = competing[i]
elseif itype == competing[i] then
else
confused = true
@ -74,13 +74,15 @@ local function Recheck(item, location, competing)
end
if not QHCI[item] then QHCI[item] = {} end
if replaced then
if replaced_item then
if debug_output then QuestHelper:TextOut(string.format("Equipped %s over %s", GetItemInfo(item), GetItemInfo(replaced))) end
QHCI[item].equip_yes = (QHCI[item].equip_yes or "") .. string.format("I%di%s", replaced, GetSpecBolus())
if not QHCI[item].equip_yes then QHCI[item].equip_no = {} end
table.insert(QHCI[item].equip_yes, { replaced = replaced_item, spec = GetSpecBolus() })
else
for _, v in pairs(competing) do
if debug_output then QuestHelper:TextOut(string.format("Did not equip %s over %s", GetItemInfo(item), GetItemInfo(v))) end
QHCI[item].equip_no = (QHCI[item].equip_no or "") .. string.format("I%di%s", v, GetSpecBolus())
if not QHCI[item].equip_no then QHCI[item].equip_no = {} end
table.insert(QHCI[item].equip_no, { item = v, spec = GetSpecBolus() })
end
end
end