forked from liza/Questionable
Fix single step button
This commit is contained in:
parent
6408b751e4
commit
8b6b5e894b
@ -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
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user