parent
03b4351237
commit
4ad7d66404
@ -29,9 +29,9 @@ function transformKeyPairs(
|
|||||||
|
|
||||||
// Push lang file lines.
|
// Push lang file lines.
|
||||||
lines.push(
|
lines.push(
|
||||||
`# ${namespace} ${storeKey} of mode ${mode}`,
|
`# ${namespace} ${storeKey} of mode ${mode}`.trimEnd(),
|
||||||
`${titleKey}=${escapeString(properties["name:8"])}`,
|
`${titleKey}=${escapeString(properties["name:8"])}`.trimEnd(),
|
||||||
`${descKey}=${escapeString(properties["desc:8"])}`,
|
`${descKey}=${escapeString(properties["desc:8"])}`.trimEnd(),
|
||||||
"",
|
"",
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -106,8 +106,8 @@ export async function transformQuestBook(): Promise<void> {
|
|||||||
const questPathExpertSource = upath.join(sharedQBDefaults, "saved_quests", "ExpertQuests.json");
|
const questPathExpertSource = upath.join(sharedQBDefaults, "saved_quests", "ExpertQuests.json");
|
||||||
|
|
||||||
// Quest Book Objects
|
// Quest Book Objects
|
||||||
const questBookNormal: QuestBook = JSON.parse((await fs.promises.readFile(questPathNormalSource)).toString());
|
const questBookNormal: QuestBook = JSON.parse(await fs.promises.readFile(questPathNormalSource, "utf-8"));
|
||||||
const questBookExpert: QuestBook = JSON.parse((await fs.promises.readFile(questPathExpertSource)).toString());
|
const questBookExpert: QuestBook = JSON.parse(await fs.promises.readFile(questPathExpertSource, "utf-8"));
|
||||||
|
|
||||||
// Quest Book Paths
|
// Quest Book Paths
|
||||||
const questPathNormalDefault = upath.join(sharedQBDefaults, "DefaultQuests.json");
|
const questPathNormalDefault = upath.join(sharedQBDefaults, "DefaultQuests.json");
|
||||||
@ -123,6 +123,13 @@ export async function transformQuestBook(): Promise<void> {
|
|||||||
// Extract title/desc pairs into a lang file.
|
// Extract title/desc pairs into a lang file.
|
||||||
const lines: string[] = [];
|
const lines: string[] = [];
|
||||||
|
|
||||||
|
lines.push(
|
||||||
|
"# DO NOT EDIT THIS FILE!",
|
||||||
|
"# THIS IS A SOURCE FILE ONLY!",
|
||||||
|
"# See https://github.com/Nomi-CEu/Nomi-CEu/wiki/Part-1:-Contributing-Information#section-2-quest-book-contributing FOR HOW TO EDIT THE QUEST BOOK!",
|
||||||
|
"",
|
||||||
|
);
|
||||||
|
|
||||||
lines.push("# Normal Quest Lang Entries:", "");
|
lines.push("# Normal Quest Lang Entries:", "");
|
||||||
|
|
||||||
// Normal Mode Quest lines.
|
// Normal Mode Quest lines.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user