Change some default player props

Fix pre-cosmetic dev migration bug
This commit is contained in:
SpectralFlame 2023-01-30 06:34:14 -06:00 committed by cyip92
parent 8398c0585b
commit aef9a88b31
2 changed files with 3 additions and 3 deletions

View File

@ -524,7 +524,7 @@ window.player = {
},
constants: {},
execTimer: 0,
type: AUTOMATOR_TYPE.BLOCK,
type: AUTOMATOR_TYPE.TEXT,
forceUnlock: false,
currentInfoPane: AutomatorPanels.INTRO_PAGE,
},
@ -794,7 +794,7 @@ window.player = {
offlineProgress: true,
automaticTabSwitching: true,
respecIntoProtected: false,
offlineTicks: 1000,
offlineTicks: 1e5,
showRecentRate: true,
autosaveInterval: 30000,
showTimeSinceSave: true,

View File

@ -89,7 +89,7 @@ export default {
},
willLoseCosmetics() {
const currSets = player.reality.glyphs.cosmetics.unlockedFromNG;
const importedSets = this.player.reality?.glyphs.cosmetics.unlockedFromNG ?? [];
const importedSets = this.player.reality?.glyphs.cosmetics?.unlockedFromNG ?? [];
return currSets.filter(set => !importedSets.includes(set)).length > 0;
},
willLoseSpeedrun() {