diff --git a/Craftimizer/Configuration.cs b/Craftimizer/Configuration.cs index 73aa8cc..58b34a7 100644 --- a/Craftimizer/Configuration.cs +++ b/Craftimizer/Configuration.cs @@ -62,6 +62,8 @@ public class Configuration : IPluginConfiguration public SolverConfig SolverConfig { get; set; } = new(); public SolverAlgorithm SolverAlgorithm { get; set; } = SolverAlgorithm.StepwiseFurcated; public bool ConditionRandomness { get; set; } = true; + public bool EnableSynthesisHelper { get; set; } = true; + public int SynthesisHelperStepCount { get; set; } = 5; public Simulator.Simulator CreateSimulator(SimulationState state) => ConditionRandomness ? diff --git a/Craftimizer/Windows/Settings.cs b/Craftimizer/Windows/Settings.cs index 254bbcd..cee835b 100644 --- a/Craftimizer/Windows/Settings.cs +++ b/Craftimizer/Windows/Settings.cs @@ -116,6 +116,26 @@ public class Settings : Window ref isDirty ); + DrawOption( + "Enable Synthesis Helper", + "Adds a helper next to your synthesis window to help solve for the best craft.\n" + + "Extremely useful for expert recipes, where the condition can greatly affect\n" + + "which actions you take.", + Config.EnableSynthesisHelper, + v => Config.EnableSynthesisHelper = v, + ref isDirty + ); + + ImGui.BeginDisabled(!Config.EnableSynthesisHelper); + DrawOption( + "Synthesis Helper Step Count", + "The number of future actions to solve for during an in-game craft.", + Config.SynthesisHelperStepCount, + v => Config.SynthesisHelperStepCount = v, + ref isDirty + ); + ImGui.EndDisabled(); + ImGuiUtils.EndGroupPanel(); ImGuiUtils.BeginGroupPanel("Solver");