From 3a2cb1f72808c57490e65b317917b1b345b3ecc7 Mon Sep 17 00:00:00 2001 From: Dave Hendler Date: Mon, 7 Nov 2022 12:07:24 -0800 Subject: [PATCH] Show debug output for bag items --- core.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core.lua b/core.lua index 4c8987c..c41e209 100644 --- a/core.lua +++ b/core.lua @@ -543,7 +543,7 @@ function Simulationcraft:GetItemStrings(debugOutput) return items end -function Simulationcraft:GetBagItemStrings() +function Simulationcraft:GetBagItemStrings(debugOutput) local bagItems = {} for slotNum=1, #slotNames do @@ -604,7 +604,7 @@ function Simulationcraft:GetBagItemStrings() -- find all equippable, non-artifact items if IsEquippableItem(itemLink) and quality ~= 6 then bagItems[#bagItems + 1] = { - string = GetItemStringFromItemLink(slotNum, itemLink, itemLoc, false), + string = GetItemStringFromItemLink(slotNum, itemLink, itemLoc, debugOutput), name = name .. (level and ' (' .. level .. ')' or '') } end @@ -1009,7 +1009,7 @@ function Simulationcraft:PrintSimcProfile(debugOutput, noBags, showMerchant, lin -- output gear from bags if noBags == false then - local bagItems = Simulationcraft:GetBagItemStrings() + local bagItems = Simulationcraft:GetBagItemStrings(debugOutput) if #bagItems > 0 then simulationcraftProfile = simulationcraftProfile .. '\n'