Rework IsMainScenarioQuest to be less reliant on actual journal ids

This commit is contained in:
Liza 2025-01-05 14:26:51 +01:00
parent 563a11d47d
commit 69e05722c8
Signed by: liza
GPG Key ID: 2C41B84815CF6445

View File

@ -60,8 +60,7 @@ internal sealed class QuestInfo : IQuestInfo
_ => quest.JournalGenre.ValueNullable?.RowId, _ => quest.JournalGenre.ValueNullable?.RowId,
}; };
SortKey = quest.SortKey; SortKey = quest.SortKey;
IsMainScenarioQuest = quest.JournalGenre.ValueNullable?.JournalCategory.ValueNullable?.JournalSection IsMainScenarioQuest = quest.JournalGenre.ValueNullable?.Icon == 61412;
.ValueNullable?.RowId is 0 or 1;
CompletesInstantly = quest.TodoParams[0].ToDoCompleteSeq == 0; CompletesInstantly = quest.TodoParams[0].ToDoCompleteSeq == 0;
PreviousInstanceContent = quest.InstanceContent.Select(x => (ushort)x.RowId).Where(x => x != 0).ToList(); PreviousInstanceContent = quest.InstanceContent.Select(x => (ushort)x.RowId).Where(x => x != 0).ToList();
PreviousInstanceContentJoin = (EQuestJoin)quest.InstanceContentJoin; PreviousInstanceContentJoin = (EQuestJoin)quest.InstanceContentJoin;