Skip to content

Commit 1661887

Browse files
StripesOO7Witchybun
authored andcommitted
WebHost: Change default spoiler-option for games generated from WebHost to 3 instead of 0 (ArchipelagoMW#1852)
* Change default spoiler-option in WebHostLib/generate.py to 3 instead of 0 * shifting spoiler-default to the JS calls instead of setting it in generate.py --------- Co-authored-by: StripesOO7 <[email protected]>
1 parent 3f2ae91 commit 1661887

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

WebHostLib/static/assets/player-settings.js

+1
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ const generateGame = (raceMode = false) => {
364364
weights: { player: settings },
365365
presetData: { player: settings },
366366
playerCount: 1,
367+
spoiler: 3,
367368
race: raceMode ? '1' : '0',
368369
}).then((response) => {
369370
window.location.href = response.data.url;

WebHostLib/static/assets/weighted-settings.js

+1
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,7 @@ const generateGame = (raceMode = false) => {
11991199
weights: { player: JSON.stringify(settings) },
12001200
presetData: { player: JSON.stringify(settings) },
12011201
playerCount: 1,
1202+
spoiler: 3,
12021203
race: raceMode ? '1' : '0',
12031204
}).then((response) => {
12041205
window.location.href = response.data.url;

0 commit comments

Comments
 (0)