Mark completed daily quests as unable to accept

This commit is contained in:
Liza 2024-08-27 22:16:04 +02:00
parent 95535d0ef2
commit fe1d2d51db
Signed by: liza
GPG Key ID: 7199F8D727D55F67
2 changed files with 15 additions and 0 deletions

View File

@ -360,6 +360,9 @@ internal sealed unsafe class QuestFunctions
{
if (IsQuestAccepted(questId))
return false;
if (QuestManager.Instance()->IsDailyQuestCompleted(questId.Value))
return false;
}
else
{

View File

@ -110,6 +110,18 @@ internal sealed class CreationUtilsComponent
}
#endif
#if false
var questManager = QuestManager.Instance();
if (questManager != null)
{
for (int i = 0; i < questManager->DailyQuests.Length; ++i)
{
var dailyQuest = questManager->DailyQuests[i];
ImGui.Text($"Daily Quest {i}: {dailyQuest.QuestId}, {dailyQuest.IsCompleted}");
}
}
#endif
#if false
var director = UIState.Instance()->DirectorTodo.Director;
if (director != null)