Update randomizer.blade.php
MODIFY
resources/views/randomizer.blade.php
resources/views/randomizer.blade.php
@@ -756,18 +756,18 @@ $(function() {
});
$('button[name=save]').on('click', function() {
- return rom.save('ALttP - VT_' + rom.logic + '_' + rom.difficulty + '-' + rom.mode + '_' + rom.seed + '.sfc');
+ return rom.save('ALttP - VT_' + rom.logic + '_' + rom.difficulty + '-' + rom.mode + '-' + rom.goal + '_' + rom.seed + '.sfc');
});
$('button[name=save-spoiler]').on('click', function() {
$.get("/spoiler_click/" + rom.seed);
- return saveAs(new Blob([$('.spoiler-text pre').html()]), 'ALttP - VT_' + rom.logic + '_' + rom.difficulty + '-' + rom.mode + '_' + rom.seed + '.txt');
+ return saveAs(new Blob([$('.spoiler-text pre').html()]), 'ALttP - VT_' + rom.logic + '_' + rom.difficulty + '-' + rom.mode + '-' + rom.goal + '_' + rom.seed + '.txt');
});
$('button[name=generate-save]').on('click', function() {
applySeed(rom, $('#seed').val())
.then(seedApplied, seedFailed)
.then(function(rom) {
- return rom.save('ALttP - VT_' + rom.logic + '_' + rom.difficulty + '-' + rom.mode + '_' + rom.seed + '.sfc');
+ return rom.save('ALttP - VT_' + rom.logic + '_' + rom.difficulty + '-' + rom.mode + '-' + rom.goal + '_' + rom.seed + '.sfc');
});
});
@@ -990,8 +990,8 @@ $(function() {
return new Promise(function(resolve, reject) {
applySeed(rom, $('#seed').val()).then(function(data) {
var buffer = data.rom.getArrayBuffer().slice(0);
- zip.file('ALttP - VT_' + data.patch.logic + '_' + data.patch.difficulty + '-' + data.patch.spoiler.meta.mode + '_' + data.patch.seed + '.sfc', buffer);
- zip.file('spoilers/ALttP - VT_' + data.patch.logic + '_' + data.patch.difficulty + '-' + data.patch.spoiler.meta.mode + '_' + data.patch.seed + '.txt', new Blob([JSON.stringify(data.patch.spoiler, null, 4)]));
+ zip.file('ALttP - VT_' + data.patch.logic + '_' + data.patch.difficulty + '-' + data.patch.spoiler.meta.mode + '-' + data.patch.spoiler.meta.goal + '_' + data.patch.seed + '.sfc', buffer);
+ zip.file('spoilers/ALttP - VT_' + data.patch.logic + '_' + data.patch.difficulty + '-' + data.patch.spoiler.meta.mode + '-' + data.patch.spoiler.meta.goal + '_' + data.patch.seed + '.txt', new Blob([JSON.stringify(data.patch.spoiler, null, 4)]));
if (left - 1 > 0) {
genToZip(zip, left - 1).then(function() {
resolve(zip);

Update randomizer.blade.php