Add dungeon map randomizer

This commit is contained in:
2026-01-04 00:43:35 -06:00
parent 9fec8b00fd
commit fd7176d9c9
9 changed files with 203 additions and 54 deletions

View File

@@ -49,10 +49,12 @@ export default defineComponent({
},
presets() {
const filledPresets = {};
for (const presetName of Object.keys(presets[this.generator])) {
const preset = JSON.parse(JSON.stringify(presets[this.generator][presetName]));
this.fillPreset(preset);
filledPresets[presetName] = preset;
if (presets[this.generator]) {
for (const presetName of Object.keys(presets[this.generator])) {
const preset = JSON.parse(JSON.stringify(presets[this.generator][presetName]));
this.fillPreset(preset);
filledPresets[presetName] = preset;
}
}
return filledPresets;
},