From e936098d3a129a54d6605e39f24492a676d7ddca Mon Sep 17 00:00:00 2001 From: Kwonunn Date: Tue, 30 Aug 2022 21:02:17 +0200 Subject: [PATCH] Don't show colours on bag, room and floor overview --- eid_api.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/eid_api.lua b/eid_api.lua index a2cc6640..1e25ce5b 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -1304,11 +1304,13 @@ function EID:tableToCraftingIconsMerged(craftTable, indicateCompleteContent) for nr, count in ipairs(filteredList) do if (count > 0) then local coloring = "" - local bagContainsItem = EID:bagContainsItem(nr, count) - if bagContainsItem == 1 then - coloring = "{{ColorBagComplete}}" - elseif bagContainsItem == 2 then - coloring = "{{ColorBagOverfill}}" + if indicateCompleteContent then + local bagContainsItem = EID:bagContainsItem(nr, count) + if bagContainsItem == 1 then + coloring = "{{ColorBagComplete}}" + elseif bagContainsItem == 2 then + coloring = "{{ColorBagOverfill}}" + end end iconString = iconString..coloring..count.."{{Crafting"..nr.."}}{{CR}}" @@ -1330,7 +1332,7 @@ function EID:bagContainsItem(itemID, itemCount) foundCount = foundCount + 1 end end - + if foundCount == 0 then return false elseif foundCount < itemCount then