Skip to content

Commit

Permalink
convert repeatable option (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk authored Nov 10, 2023
1 parent 18867ad commit 92b8233
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions odysseus/HeraclesQuest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ export type HeraclesQuest = {

settings?: {
individual_progress?: boolean;
repeatable?: boolean;
hidden?: "LOCKED" | "IN_PROGRESS" | "COMPLETED" | "COMPLETED_CLAIMED";
};

Expand Down
2 changes: 2 additions & 0 deletions odysseus/convertFtbQuests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ type Chapter = QuestObject & {
dependencies?: number[] | string[];
hide?: boolean;
invisible?: boolean;
can_repeat?: boolean;
dependency_requirement:
| "all_completed"
| "one_completed"
Expand Down Expand Up @@ -650,6 +651,7 @@ export const convertFtbQuests = async (
const heraclesQuest: HeraclesQuest = {
settings: {
hidden,
repeatable: quest.can_repeat,
},

dependencies: areNumericIds(quest.dependencies)
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"name": "odysseus",
"scripts": {
"lint": "eslint .",
"checkstyle": "prettier . --check"
"lint:fix": "eslint . --fix",
"checkstyle": "prettier . --check",
"checkstyle:write": "prettier . --write",
"lint-format": "npm run lint:fix && npm run checkstyle:write"
},
"workspaces": [
"odysseus",
Expand Down

0 comments on commit 92b8233

Please sign in to comment.