1
0
forked from liza/Questionable

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, "TerritoryId": 957,
"InteractionType": "WalkTo", "InteractionType": "WalkTo",
"Fly": true, "AetheryteShortcut": "Thavnair - Yedlihmad",
"CompletionQuestVariablesFlags": [ "CompletionQuestVariablesFlags": [
null, null,
null, null,
null, null,
null, null,
null, null,
128 -128
] ]
}, },
{ {

View File

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