Code cleanup

This commit is contained in:
Liza 2024-09-01 20:36:06 +02:00
parent 272050d11b
commit e8b9124119
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -135,17 +135,14 @@ internal sealed unsafe class QuestFunctions
currentQuest = new QuestId(questManager->NormalQuests[trackedQuest.Index].QuestId);
if (_questRegistry.IsKnownQuest(currentQuest))
return (currentQuest, QuestManager.GetQuestSequence(currentQuest.Value));
break;
continue;
case 2: // leve
currentQuest = new LeveId(questManager->LeveQuests[trackedQuest.Index].LeveId);
if (_questRegistry.IsKnownQuest(currentQuest))
return (currentQuest, questManager->GetLeveQuestById(currentQuest.Value)->Sequence);
break;
continue;
}
if (_questRegistry.IsKnownQuest(currentQuest))
return (currentQuest, QuestManager.GetQuestSequence(currentQuest.Value));
}
ElementId? priorityQuest = GetNextPriorityQuestThatCanBeAccepted();