diff --git a/app/GameSaveHelper.js b/app/GameSaveHelper.js index 40402e0..c48b0e3 100644 --- a/app/GameSaveHelper.js +++ b/app/GameSaveHelper.js @@ -3,6 +3,24 @@ export class GameSaveHelper { standard: 'Standard', inverted: 'Inverted' } + static itemShuffleOptions = { + standard : { + id:'standard', + label: 'Standard' + }, + mc: { + id:'mc', + label: 'Maps and Compasses' + }, + mcsk: { + id: 'mcsk', + label: 'Maps, Compasses and Small Keys' + }, + keysanity: { + id: 'keysanity', + label: 'Keysanity' + } + } constructor() { } @@ -19,8 +37,8 @@ export class GameSaveHelper { g.timestamp = this.parseDate(modelManager.gameSaves[key].timestamp); g.valid = modelManager.validateGame(modelManager.gameSaves[key]); g.loaded = modelManager.settings.gameSlot === key; - g.gameMode = this.labels[modelManager.settings.gameMode]; - g.itemShuffle = this.labels[modelManager.settings.itemShuffle]; + g.gameMode = this.labels[modelManager.gameSaves[key].settings.gameMode]; + g.itemShuffle = this.itemShuffleOptions[modelManager.gameSaves[key].settings.itemShuffle].id; } retval[key]=g; i++; diff --git a/app/components/DarkMap.vue b/app/components/DarkMap.vue index 101cb42..0a7bd22 100644 --- a/app/components/DarkMap.vue +++ b/app/components/DarkMap.vue @@ -83,7 +83,7 @@ dungeons: this.$modelManager.map.darkworld.dungeons, bosses: this.$modelManager.map.darkworld.bosses, dungeonValues: this.$modelManager.dungeons, - staticDungeonValues: this.$sol.getStaticDungeons(this.$modelManager.getGameMode()), + staticDungeonValues: this.$sol.getStaticDungeons(this.$modelManager.getGameMode(), this.$modelManager.getItemShuffle()), centerKey: undefined }, mapWidth:1500, diff --git a/app/components/Dungeons.vue b/app/components/Dungeons.vue index 961985c..7c5e346 100644 --- a/app/components/Dungeons.vue +++ b/app/components/Dungeons.vue @@ -19,7 +19,8 @@