Synthesis helper config options

This commit is contained in:
Asriel Camora
2023-07-21 16:01:18 +04:00
parent 1e5cc96837
commit ca6d6de934
2 changed files with 22 additions and 0 deletions
+2
View File
@@ -62,6 +62,8 @@ public class Configuration : IPluginConfiguration
public SolverConfig SolverConfig { get; set; } = new(); public SolverConfig SolverConfig { get; set; } = new();
public SolverAlgorithm SolverAlgorithm { get; set; } = SolverAlgorithm.StepwiseFurcated; public SolverAlgorithm SolverAlgorithm { get; set; } = SolverAlgorithm.StepwiseFurcated;
public bool ConditionRandomness { get; set; } = true; public bool ConditionRandomness { get; set; } = true;
public bool EnableSynthesisHelper { get; set; } = true;
public int SynthesisHelperStepCount { get; set; } = 5;
public Simulator.Simulator CreateSimulator(SimulationState state) => public Simulator.Simulator CreateSimulator(SimulationState state) =>
ConditionRandomness ? ConditionRandomness ?
+20
View File
@@ -116,6 +116,26 @@ public class Settings : Window
ref isDirty 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.EndGroupPanel();
ImGuiUtils.BeginGroupPanel("Solver"); ImGuiUtils.BeginGroupPanel("Solver");