Minor changes

This commit is contained in:
Asriel Camora
2023-06-23 00:18:23 -07:00
parent 0de1faa112
commit c1caa46838
4 changed files with 3 additions and 15 deletions
+1 -11
View File
@@ -93,7 +93,7 @@ public class SimulatorWindow : Window
ImGui.Text($"Step {State.StepCount + 1}"); ImGui.Text($"Step {State.StepCount + 1}");
ImGui.Text(State.Condition.Name()); ImGui.Text(State.Condition.Name());
if (ImGui.IsItemHovered()) if (ImGui.IsItemHovered())
ImGui.SetTooltip(State.Condition.Description(State.Input.Stats.HasRelic)); ImGui.SetTooltip(State.Condition.Description(State.Input.Stats.HasSplendorousBuff));
ImGui.Text($"{State.HQPercent}%% HQ"); ImGui.Text($"{State.HQPercent}%% HQ");
ImGui.PushStyleColor(ImGuiCol.PlotHistogram, new Vector4(.2f, 1f, .2f, 1f)); ImGui.PushStyleColor(ImGuiCol.PlotHistogram, new Vector4(.2f, 1f, .2f, 1f));
ImGui.ProgressBar(Math.Min((float)State.Progress / State.Input.Recipe.MaxProgress, 1f), new Vector2(200, 20), $"{State.Progress} / {State.Input.Recipe.MaxProgress}"); ImGui.ProgressBar(Math.Min((float)State.Progress / State.Input.Recipe.MaxProgress, 1f), new Vector2(200, 20), $"{State.Progress} / {State.Input.Recipe.MaxProgress}");
@@ -123,16 +123,6 @@ public class SimulatorWindow : Window
ImGuiHelpers.ScaledDummy(5); ImGuiHelpers.ScaledDummy(5);
{ {
ImGui.Text("TODO: Action History"); ImGui.Text("TODO: Action History");
//var i = 0;
//foreach (var action in State.ActionHistory)
//{
// var baseAction = action.With(Simulation);
// ImGui.Image(action.GetIcon(ClassJob.Carpenter).ImGuiHandle, new Vector2(ImGui.GetFontSize() * 2f));
// if (ImGui.IsItemHovered())
// ImGui.SetTooltip($"{action.GetName(ClassJob.Carpenter)}\n{baseAction.GetTooltip(false)}");
// if (++i % 5 != 0)
// ImGui.SameLine();
//}
} }
ImGui.EndChild(); ImGui.EndChild();
ImGui.EndTable(); ImGui.EndTable();
+1 -1
View File
@@ -6,7 +6,7 @@ public sealed record CharacterStats
public int Control { get; init; } public int Control { get; init; }
public int CP { get; init; } public int CP { get; init; }
public int Level { get; init; } public int Level { get; init; }
public bool HasRelic { get; init; } public bool HasSplendorousBuff { get; init; }
public bool IsSpecialist { get; init; } public bool IsSpecialist { get; init; }
public int CLvl { get; init; } public int CLvl { get; init; }
} }
+1 -1
View File
@@ -224,7 +224,7 @@ public class Simulator
var conditionModifier = Condition switch var conditionModifier = Condition switch
{ {
Condition.Poor => 0.50f, Condition.Poor => 0.50f,
Condition.Good => Input.Stats.HasRelic ? 1.75f : 1.50f, Condition.Good => Input.Stats.HasSplendorousBuff ? 1.75f : 1.50f,
Condition.Excellent => 4.00f, Condition.Excellent => 4.00f,
_ => 1.00f, _ => 1.00f,
}; };
-2
View File
@@ -1,7 +1,5 @@
using Craftimizer.Simulator; using Craftimizer.Simulator;
using Craftimizer.Simulator.Actions; using Craftimizer.Simulator.Actions;
using System;
using System.Diagnostics;
using System.Diagnostics.Contracts; using System.Diagnostics.Contracts;
using System.Numerics; using System.Numerics;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;