remove preferred ending -> doesn't matter on fully random

This commit is contained in:
Matteias Collet 2020-06-29 22:48:04 +02:00
parent 911fec7603
commit 5b9ff78359

View file

@ -145,7 +145,6 @@ export default {
levelOrderSelection: 'list', levelOrderSelection: 'list',
postGameSelection: '0F00', postGameSelection: '0F00',
generation: 0, generation: 0,
preferredEnding: 0,
}; };
}, },
methods: { methods: {
@ -159,11 +158,6 @@ export default {
}, },
onLevelOrderSelectionChanged(e) { onLevelOrderSelectionChanged(e) {
this.levelOrderSelection = e; this.levelOrderSelection = e;
if (e === 'random') {
this.postGameSelection = this.preferredEnding ?? '3400';
}
this.updateCode(); this.updateCode();
}, },
onPostGameSelectionChanged(e) { onPostGameSelectionChanged(e) {
@ -207,10 +201,7 @@ export default {
this.selectedRoute = newRoute; this.selectedRoute = newRoute;
if (ending) { if (ending) {
this.preferredEnding = ending;
this.postGameSelection = ending; this.postGameSelection = ending;
} else {
this.preferredEnding = null;
} }
this.updateCode(); this.updateCode();