diff --git a/mod_config_menu.lua b/mod_config_menu.lua index e8981ba6..6b71f2ae 100644 --- a/mod_config_menu.lua +++ b/mod_config_menu.lua @@ -648,7 +648,7 @@ if MCMLoaded then ) -- Spindown Dice results - local diceSteps = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} + local diceSteps = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} MCM.AddSetting( "EID", "Display", @@ -965,9 +965,71 @@ if MCMLoaded then AnIndexOf(diceSteps, EID.Config["BagOfCraftingResults"]) - 1 .. " " .. EID.Config["BagOfCraftingResults"] end, OnChange = function(currentNum) - EID.Config["BagOfCraftingResults"] = diceSteps[currentNum%#diceSteps + 1] + EID.Config["BagOfCraftingResults"] = diceSteps[currentNum + 1] end, - Info = {"Preview of items currently craftable with Bag of crafting"} + Info = {"Page size for the preview of items currently craftable with Bag of Crafting"} + } + ) + -- Bag of Crafting thorough recipe checks + local combSteps = {8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18} + MCM.AddSetting( + "EID", + "Crafting", + { + Type = ModConfigMenu.OptionType.SCROLL, + CurrentSetting = function() + return AnIndexOf(combSteps, EID.Config["BagOfCraftingCombinationMax"]) - 1 + end, + Display = function() + return "Thorough Calculations: $scroll" .. + AnIndexOf(combSteps, EID.Config["BagOfCraftingCombinationMax"]) - 1 .. " " .. EID.Config["BagOfCraftingCombinationMax"] + end, + OnChange = function(currentNum) + EID.Config["BagOfCraftingCombinationMax"] = combSteps[currentNum + 1] + end, + Info = {"Get every recipe for the X best components; setting this high will cause lag spikes (12 = 500 combinations, 14 = 3,000, 16 = 13,000)"} + } + ) + -- Bag of Crafting random recipe checks + local calcSteps = {200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200} + MCM.AddSetting( + "EID", + "Crafting", + { + Type = ModConfigMenu.OptionType.SCROLL, + CurrentSetting = function() + return AnIndexOf(calcSteps, EID.Config["BagOfCraftingRandomResults"]) - 1 + end, + Display = function() + return "Random Calculations: $scroll" .. + AnIndexOf(calcSteps, EID.Config["BagOfCraftingRandomResults"]) - 1 .. " " .. EID.Config["BagOfCraftingRandomResults"] + end, + OnChange = function(currentNum) + EID.Config["BagOfCraftingRandomResults"] = calcSteps[currentNum + 1] + end, + Info = {"An additional X number of randomly chosen recipes will be checked, changing each pickup spawn/despawn or refresh"} + } + ) + -- Bag of Crafting item names + MCM.AddSetting( + "EID", + "Crafting", + { + Type = ModConfigMenu.OptionType.BOOLEAN, + CurrentSetting = function() + return EID.Config["BagOfCraftingDisplayNames"] + end, + Display = function() + local onOff = "False" + if EID.Config["BagOfCraftingDisplayNames"] then + onOff = "True" + end + return "Show Item Names: " .. onOff + end, + OnChange = function(currentBool) + EID.Config["BagOfCraftingDisplayNames"] = currentBool + end, + Info = {"If on, each result takes two lines; lower your displayed results accordingly"} } )