qstcompanion v1.0.4
This commit is contained in:
parent
ca577ad208
commit
52daefcfd7
2 changed files with 13 additions and 6 deletions
|
|
@ -943,6 +943,13 @@ public class QuestRotationExecutionService : IDisposable
|
||||||
}
|
}
|
||||||
if (questId == 0)
|
if (questId == 0)
|
||||||
{
|
{
|
||||||
|
if (currentState.IsSyncOnlyMode)
|
||||||
|
{
|
||||||
|
log.Information("[QuestRotation] Sync-Only Mode: Quest scan complete for " + currentState.CurrentCharacter + " - moving to next character");
|
||||||
|
MarkCharacterCompleted(currentState.CurrentCharacter, "quest data synchronized");
|
||||||
|
SkipToNextCharacter();
|
||||||
|
return;
|
||||||
|
}
|
||||||
StopConditionData stopLevelData = questionableIPC.GetLevelStopCondition();
|
StopConditionData stopLevelData = questionableIPC.GetLevelStopCondition();
|
||||||
if (stopLevelData != null && stopLevelData.Enabled)
|
if (stopLevelData != null && stopLevelData.Enabled)
|
||||||
{
|
{
|
||||||
|
|
@ -1127,10 +1134,10 @@ public class QuestRotationExecutionService : IDisposable
|
||||||
{
|
{
|
||||||
if (currentQuestId == questId)
|
if (currentQuestId == questId)
|
||||||
{
|
{
|
||||||
if (currentSequence.Value > activeStopPoint.Sequence.Value)
|
if (currentSequence.Value >= activeStopPoint.Sequence.Value)
|
||||||
{
|
{
|
||||||
log.Information($"[QuestRotation] ✓ Quest {questId} Sequence {activeStopPoint.Sequence.Value} completed by {currentState.CurrentCharacter}!");
|
log.Information($"[QuestRotation] ✓ Quest {questId} Sequence {activeStopPoint.Sequence.Value} reached by {currentState.CurrentCharacter}!");
|
||||||
log.Information($"[QuestRotation] Current Sequence: {currentSequence.Value} (moved past {activeStopPoint.Sequence.Value})");
|
log.Information($"[QuestRotation] Current Sequence: {currentSequence.Value} (reached {activeStopPoint.Sequence.Value})");
|
||||||
shouldRotate = true;
|
shouldRotate = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1356,7 +1363,7 @@ public class QuestRotationExecutionService : IDisposable
|
||||||
{
|
{
|
||||||
StopPoint currentStopPoint = stopPoints.FirstOrDefault((StopPoint sp) => sp.IsActive);
|
StopPoint currentStopPoint = stopPoints.FirstOrDefault((StopPoint sp) => sp.IsActive);
|
||||||
StopPoint nextStopPoint = stopPoints.FirstOrDefault((StopPoint sp) => !sp.IsActive);
|
StopPoint nextStopPoint = stopPoints.FirstOrDefault((StopPoint sp) => !sp.IsActive);
|
||||||
if (currentStopPoint != null && nextStopPoint != null && configuration.EnableMultiModeAfterRotation)
|
if (currentStopPoint != null && nextStopPoint != null)
|
||||||
{
|
{
|
||||||
log.Information("[QuestRotation] ========================================");
|
log.Information("[QuestRotation] ========================================");
|
||||||
log.Information("[QuestRotation] === CURRENT STOP POINT COMPLETED ===");
|
log.Information("[QuestRotation] === CURRENT STOP POINT COMPLETED ===");
|
||||||
|
|
@ -1386,7 +1393,7 @@ public class QuestRotationExecutionService : IDisposable
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
log.Information("[QuestRotation] No more stop points to process (Multi-Mode: " + (configuration.EnableMultiModeAfterRotation ? "Enabled" : "Disabled") + ")");
|
log.Information("[QuestRotation] No more stop points to process");
|
||||||
currentState.Phase = RotationPhase.Completed;
|
currentState.Phase = RotationPhase.Completed;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -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));
|
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);
|
drawList.AddRectFilledMultiColor(windowPos, windowPos + new Vector2(windowSize.X, height), leftColor, rightColor, rightColor, leftColor);
|
||||||
Vector2 titlePos = windowPos + new Vector2(10f, 7f);
|
Vector2 titlePos = windowPos + new Vector2(10f, 7f);
|
||||||
drawList.AddText(titlePos, ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, 0.9f)), "Questionable Companion V.1.0.3");
|
drawList.AddText(titlePos, ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, 0.9f)), "Questionable Companion V.1.0.4");
|
||||||
Vector2 minimizeButtonPos = windowPos + new Vector2(windowSize.X - 60f, 3f);
|
Vector2 minimizeButtonPos = windowPos + new Vector2(windowSize.X - 60f, 3f);
|
||||||
Vector2 minimizeButtonSize = new Vector2(24f, 24f);
|
Vector2 minimizeButtonSize = new Vector2(24f, 24f);
|
||||||
if (ImGui.IsMouseHoveringRect(minimizeButtonPos, minimizeButtonPos + minimizeButtonSize))
|
if (ImGui.IsMouseHoveringRect(minimizeButtonPos, minimizeButtonPos + minimizeButtonSize))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue