diff --git a/odysseus/HeraclesQuest.ts b/odysseus/HeraclesQuest.ts index a99af97..1ef6f46 100644 --- a/odysseus/HeraclesQuest.ts +++ b/odysseus/HeraclesQuest.ts @@ -266,7 +266,7 @@ export type HeraclesQuest = { settings?: { individual_progress?: boolean; - hidden?: boolean; + hidden?: "LOCKED" | "IN_PROGRESS" | "COMPLETED" | "COMPLETED_CLAIMED"; }; dependencies?: string[]; diff --git a/odysseus/convertFtbQuests.ts b/odysseus/convertFtbQuests.ts index 6db70cf..92404a2 100644 --- a/odysseus/convertFtbQuests.ts +++ b/odysseus/convertFtbQuests.ts @@ -240,6 +240,7 @@ type Chapter = QuestObject & { min_required_dependencies?: number; dependencies?: number[] | string[]; hide?: boolean; + invisible?: boolean; dependency_requirement: 'all_completed' | 'one_completed' | 'all_started' | 'one_started'; hide_text_until_complete?: boolean; size?: number; @@ -475,10 +476,17 @@ export const convertFtbQuests = async (input: QuestInputFileSystem, output: Ques const questTitle = quest.title ? formatString(quest.title) : inferredData?.title; const questSubtitle = quest.subtitle ? formatString(quest.subtitle) : undefined; const questIcon = quest.icon ? convertIcon(quest.icon) : inferredData?.icon; + let hidden: "LOCKED" | "IN_PROGRESS" | "COMPLETED" | "COMPLETED_CLAIMED" | undefined = undefined; + + if (quest.invisible) { + hidden = "COMPLETED"; + } else if (quest.hide) { + hidden = "IN_PROGRESS"; + } const heraclesQuest: HeraclesQuest = { settings: { - hidden: quest.hide + hidden }, dependencies: areNumericIds(quest.dependencies) ?