diff --git a/QuestionableCompanion/QuestionableCompanion.Models/RotationState.cs b/QuestionableCompanion/QuestionableCompanion.Models/RotationState.cs index d5d385c..99b204b 100644 --- a/QuestionableCompanion/QuestionableCompanion.Models/RotationState.cs +++ b/QuestionableCompanion/QuestionableCompanion.Models/RotationState.cs @@ -31,6 +31,8 @@ public class RotationState private uint? _lastKnownQuestState; + private bool _isSyncOnlyMode; + public uint CurrentStopQuestId { get @@ -246,4 +248,22 @@ public class RotationState } } } + + public bool IsSyncOnlyMode + { + get + { + lock (_lock) + { + return _isSyncOnlyMode; + } + } + set + { + lock (_lock) + { + _isSyncOnlyMode = value; + } + } + } } diff --git a/QuestionableCompanion/QuestionableCompanion.Services/QuestRotationExecutionService.cs b/QuestionableCompanion/QuestionableCompanion.Services/QuestRotationExecutionService.cs index 99cd0cd..b890eb6 100644 --- a/QuestionableCompanion/QuestionableCompanion.Services/QuestRotationExecutionService.cs +++ b/QuestionableCompanion/QuestionableCompanion.Services/QuestRotationExecutionService.cs @@ -357,7 +357,8 @@ public class QuestRotationExecutionService : IDisposable Phase = RotationPhase.InitializingFirstCharacter, PhaseStartTime = DateTime.Now, RotationStartTime = DateTime.Now, - HasQuestBeenAccepted = false + HasQuestBeenAccepted = false, + IsSyncOnlyMode = true }; isRotationActive = true; log.Information("[QuestRotation] Sync rotation started successfully!"); @@ -953,6 +954,7 @@ public class QuestRotationExecutionService : IDisposable SkipToNextCharacter(); return; } + log.Information($"[QuestRotation] Level-Only Mode: {currentState.CurrentCharacter} at level {currentLevel}, targeting {stopLevelData.TargetValue}"); } } log.Information($"[QuestRotation] {currentState.CurrentCharacter} needs to complete quest {questId}"); diff --git a/QuestionableCompanion/QuestionableCompanion.Windows/NewMainWindow.cs b/QuestionableCompanion/QuestionableCompanion.Windows/NewMainWindow.cs index 9cfe3fb..68a9468 100644 --- a/QuestionableCompanion/QuestionableCompanion.Windows/NewMainWindow.cs +++ b/QuestionableCompanion/QuestionableCompanion.Windows/NewMainWindow.cs @@ -613,7 +613,7 @@ public class NewMainWindow : Window, IDisposable uint rightColor = ImGui.ColorConvertFloat4ToU32(new Vector4(colorSecondary.X * 0.3f, colorSecondary.Y * 0.3f, colorSecondary.Z * 0.3f, 1f)); drawList.AddRectFilledMultiColor(windowPos, windowPos + new Vector2(windowSize.X, height), leftColor, rightColor, rightColor, leftColor); Vector2 titlePos = windowPos + new Vector2(10f, 7f); - drawList.AddText(titlePos, ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, 0.9f)), "Questionable Companion V1.0.2"); + drawList.AddText(titlePos, ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, 0.9f)), "Questionable Companion V.1.0.3"); Vector2 minimizeButtonPos = windowPos + new Vector2(windowSize.X - 60f, 3f); Vector2 minimizeButtonSize = new Vector2(24f, 24f); if (ImGui.IsMouseHoveringRect(minimizeButtonPos, minimizeButtonPos + minimizeButtonSize))