master #2

Merged
cacahuetes merged 79 commits from liza/Questionable:master into master 2024-08-25 10:51:08 +00:00
Showing only changes of commit 6b24a08da5 - Show all commits

View File

@ -62,7 +62,14 @@ internal sealed class QuestTooltipComponent
ImGui.TextUnformatted("Instant");
}
if (!_questRegistry.IsKnownQuest(quest.QuestId))
if (_questRegistry.TryGetQuest(quest.QuestId, out Quest? knownQuest))
{
if (knownQuest.Root.Author.Count == 1)
ImGui.Text($"Author: {knownQuest.Root.Author[0]}");
else
ImGui.Text($"Authors: {string.Join(", ", knownQuest.Root.Author)}");
}
else
{
ImGui.SameLine();
ImGui.TextUnformatted("NoQuestPath");