Fix single step button
This commit is contained in:
parent
6408b751e4
commit
8b6b5e894b
@ -55,14 +55,14 @@
|
||||
},
|
||||
"TerritoryId": 957,
|
||||
"InteractionType": "WalkTo",
|
||||
"Fly": true,
|
||||
"AetheryteShortcut": "Thavnair - Yedlihmad",
|
||||
"CompletionQuestVariablesFlags": [
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
128
|
||||
-128
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user