Fixed some BoC Issues and added new translation strings

This commit is contained in:
Wofsauge committed 2024-06-03 23:13:59 +02:00
1 parent 76a3b18179
commit 07b4273e28
16 files changed
+30 -26

No files matched your search

+9 -2
View File
@@ -195,8 +195,15 @@ EID.ItemReminderDescriptionModifier = {
local inventoryQuery = EID.BoC.InventoryOverride or EID.BoC.InventoryQuery
local bagItems = EID.BoC.BagItemsOverride or EID.BoC.BagItems
local total = #floorQuery + #inventoryQuery + #bagItems
local text = total .. " of 8 items available"
if total < 8 then text = text .. "#{{Warning}} Needs at least 8 to show crafting recipes!" end
local text = EID:ReplaceVariableStr(EID:getDescriptionEntry("CraftingNumAvailableItems"), 1, total)
if total < 8 then text = text .. "#{{Warning}} ".. EID:getDescriptionEntry("CraftingWarningAvailableItems") end
if EID.CraftingIsHidden then
local controllerEnabled = EID.bagPlayer.ControllerIndex > 0
local hideKey = EID.KeyboardToString[EID.Config["CraftingHideKey"]]
local hideButton = controllerEnabled and EID.ButtonToIconMap[EID.Config["CraftingHideButton"]]
text = text .. "#!!! ".. EID:ReplaceVariableStr(EID:getDescriptionEntry("CraftingIsHidden"), 1, (hideKey or hideButton))
end
descObj.Description = text
end
},