Fix single step button

This commit is contained in:
Liza 2024-06-12 22:04:57 +02:00
parent 6408b751e4
commit 8b6b5e894b
Signed by: liza
GPG Key ID: 7199F8D727D55F67
2 changed files with 6 additions and 3 deletions

View File

@ -55,14 +55,14 @@
},
"TerritoryId": 957,
"InteractionType": "WalkTo",
"Fly": true,
"AetheryteShortcut": "Thavnair - Yedlihmad",
"CompletionQuestVariablesFlags": [
null,
null,
null,
null,
null,
128
-128
]
},
{

View File

@ -84,7 +84,8 @@ internal sealed class QuestController
return;
// not verified to work
if (_automatic && _currentTask == null && _taskQueue.Count == 0 && CurrentQuest is { Sequence: 0, Step: 255 }
if (_automatic && _currentTask == null && _taskQueue.Count == 0
&& CurrentQuest is { Sequence: 0, Step: 0 } or { Sequence: 0, Step: 255 }
&& DateTime.Now >= CurrentQuest.StepProgress.StartedAt.AddSeconds(15))
{
_logger.LogWarning("Quest accept apparently didn't work out, resetting progress");
@ -376,11 +377,13 @@ internal sealed class QuestController
case ETaskResult.NextStep:
_logger.LogInformation("{Task} → {Result}", _currentTask, result);
_currentTask = null;
IncreaseStepCount(true);
return;
case ETaskResult.End:
_logger.LogInformation("{Task} → {Result}", _currentTask, result);
_currentTask = null;
Stop("Task end");
return;
}