1
0
Fork 0
forked from aly/qstbak

qstcompanion v1.0.4

This commit is contained in:
alydev 2025-12-04 04:40:27 +10:00
parent ca577ad208
commit 52daefcfd7
2 changed files with 13 additions and 6 deletions

View file

@ -943,6 +943,13 @@ public class QuestRotationExecutionService : IDisposable
}
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();
if (stopLevelData != null && stopLevelData.Enabled)
{
@ -1127,10 +1134,10 @@ public class QuestRotationExecutionService : IDisposable
{
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] Current Sequence: {currentSequence.Value} (moved past {activeStopPoint.Sequence.Value})");
log.Information($"[QuestRotation] ✓ Quest {questId} Sequence {activeStopPoint.Sequence.Value} reached by {currentState.CurrentCharacter}!");
log.Information($"[QuestRotation] Current Sequence: {currentSequence.Value} (reached {activeStopPoint.Sequence.Value})");
shouldRotate = true;
}
}
@ -1356,7 +1363,7 @@ public class QuestRotationExecutionService : IDisposable
{
StopPoint currentStopPoint = 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] === CURRENT STOP POINT COMPLETED ===");
@ -1386,7 +1393,7 @@ public class QuestRotationExecutionService : IDisposable
}
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;
}
return;