From 41abceb89a96f01894ec307b8bef9d349271bdfa Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Wed, 7 Aug 2024 14:10:28 +0200 Subject: [PATCH] Attempt to fix msq sometimes stopping --- Questionable/Functions/QuestFunctions.cs | 7 +++++-- Questionable/Questionable.csproj | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Questionable/Functions/QuestFunctions.cs b/Questionable/Functions/QuestFunctions.cs index 505546da..42c9fb95 100644 --- a/Questionable/Functions/QuestFunctions.cs +++ b/Questionable/Functions/QuestFunctions.cs @@ -172,8 +172,11 @@ internal sealed unsafe class QuestFunctions return default; // it can sometimes happen (although this isn't reliably reproducible) that the quest returned here - // is one you've just completed. - if (!IsReadyToAcceptQuest(currentQuest)) + // is one you've just completed. We return 255 as sequence here, since that is the end of said quest; + // but this is just really hoping that this breaks nothing. + if (IsQuestComplete(currentQuest)) + return (currentQuest, 255); + else if (!IsReadyToAcceptQuest(currentQuest)) return default; // if we're not at a high enough level to continue, we also ignore it diff --git a/Questionable/Questionable.csproj b/Questionable/Questionable.csproj index afd9f891..0fd5fa31 100644 --- a/Questionable/Questionable.csproj +++ b/Questionable/Questionable.csproj @@ -1,6 +1,6 @@  - 2.2 + 2.3 dist $(SolutionDir)=X:\ x64