diff --git a/index.html b/index.html index 15f4bf3..92cde72 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
diff --git a/js/exporter.js b/js/exporter.js index ddd11bf..babeecf 100644 --- a/js/exporter.js +++ b/js/exporter.js @@ -33,7 +33,7 @@ export class Exporter { "$schema": "https://github.com/ManualForArchipelago/Manual/raw/main/schemas/Manual.game.schema.json", 'game': this.vue.game.replace(/[^A-Za-z0-9]/g, ''), 'creator': this.vue.creator.replace(/[^A-Za-z0-9]/g, ''), - 'filler_item_name': this.vue.filler, + 'filler_item_name': this.vue.filler?.split(',').map((r) => r.trim()) || [], 'starting_items': this.vue.starting_items, }); diff --git a/js/importer.js b/js/importer.js index 900eba8..95ccecb 100644 --- a/js/importer.js +++ b/js/importer.js @@ -174,7 +174,13 @@ export class Importer { this.vue.creator = this.game.player; } - this.vue.filler = this.game.filler_item_name; + if (typeof this.game.filler_item_name === "string") { + this.vue.filler = this.game.filler_item_name; + } + else { + this.vue.filler = this.game.filler_item_name?.join(', ') || ''; + } + this.vue.starting_items = this.game.starting_items || []; } diff --git a/text/examples.js b/text/examples.js index c069513..2dbdc8c 100644 --- a/text/examples.js +++ b/text/examples.js @@ -1,7 +1,7 @@ export const Examples = { SIDEBAR_GAME: "", SIDEBAR_CREATOR: "your name, probably", - SIDEBAR_FILLER_NAME: "", + SIDEBAR_FILLER_NAME: "Filler 1, Filler 2, etc.", ITEMS_NAME: "", ITEMS_CATEGORIES: "Category 1, Category 2, etc.",