* add tags

* add tweaks tag

* add integration category

* a few more

* tweaks

* add tags to output
This commit is contained in:
Raicuparta 2022-10-14 04:35:45 +02:00 committed by GitHub
parent 3b43076a8e
commit 6f6f4c4494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 780 additions and 352 deletions

View File

@ -207,6 +207,7 @@ export async function fetchMods(modsJson: string) {
date: latestPrerelease.date,
}
: undefined,
tags: modInfo.tags,
};
return mod;

View File

@ -1,3 +1,15 @@
// Caution: must stay in sync with enum in mods.schema.json
type ModTag =
| "library"
| "gameplay"
| "tweaks"
| "integration"
| "tool"
| "content"
| "story"
| "audiovisual"
| "localization";
type ModDB = {
mods: ModInfo[];
};
@ -11,6 +23,7 @@ type ModInfo = {
utility?: boolean;
parent?: string;
authorDisplay?: string;
tags: ModTag[];
};
type Release = {
@ -43,4 +56,5 @@ interface Mod extends Release {
downloadUrl: string;
date: string;
};
tags: ModTag[];
}

1100
mods.json

File diff suppressed because it is too large Load Diff

View File

@ -51,6 +51,23 @@
"alpha": {
"type": "boolean",
"description": "True if this mod is made for Outer Wilds Alpha."
},
"tags": {
"type": "array",
"description": "List of tags that describe the mod, used for filtering mod lists.",
"items": {
"enum": [
"library",
"gameplay",
"tweaks",
"integration",
"tool",
"content",
"story",
"audiovisual",
"localization"
]
}
}
}
}