From 680648eae351b56dfde6cf20b71cc50fa232fadc Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Thu, 8 Apr 2010 19:57:03 -0400 Subject: [PATCH] In GenericAddRecipeAcquire(): Added support for limited quantity vendors, and changed a print to a debug. --- ARL.lua | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ARL.lua b/ARL.lua index 2fca318..b6c94b4 100644 --- a/ARL.lua +++ b/ARL.lua @@ -1143,12 +1143,17 @@ do local id_num = select(cur_var, ...) cur_var = cur_var + 1 + -- A quantity of true means unlimited - normal vendor item. + local quantity = true + + if type_string == "Limited Vendor" then + quantity = select(cur_var, ...) + cur_var = cur_var + 1 + end acquire[id_num] = true if unit_list and not unit_list[id_num] then - --@alpha@ - self:Printf("Spell ID %d: %s ID %d does not exist in the database.", spell_id, type_string, id_num) - --@end-alpha@ + addon:Debug("Spell ID %d: %s ID %d does not exist in the database.", spell_id, type_string, id_num) else if not unit_list then location = type(id_num) == "string" and BZ[id_num] or nil @@ -1165,7 +1170,7 @@ do location = unit.location unit.item_list = unit.item_list or {} - unit.item_list[spell_id] = true + unit.item_list[spell_id] = quantity end end acquire_list[acquire_type] = acquire_list[acquire_type] or {} -- 1.7.9.5