diff --git a/src/js/core/config.js b/src/js/core/config.js index 1fad8e2e..540bccfd 100644 --- a/src/js/core/config.js +++ b/src/js/core/config.js @@ -92,9 +92,9 @@ export const globalConfig = { // disableZoomLimits: true, // showChunkBorders: true, // rewardsInstant: true, - // allBuildingsUnlocked: true, - // blueprintsNoCost: true, - // upgradesNoCost: true, + allBuildingsUnlocked: true, + blueprintsNoCost: true, + upgradesNoCost: true, // disableUnlockDialog: true, // disableLogicTicks: true, // testClipping: true, diff --git a/src/js/states/preload.js b/src/js/states/preload.js index 9994999f..535d7004 100644 --- a/src/js/states/preload.js +++ b/src/js/states/preload.js @@ -68,38 +68,6 @@ export class PreloadState extends GameState { startLoading() { this.setStatus("Booting") - .then(() => this.setStatus("Checking for updates")) - .then(() => { - if (G_IS_STANDALONE) { - return Promise.race([ - new Promise(resolve => setTimeout(resolve, 10000)), - fetch( - "https://itch.io/api/1/x/wharf/latest?target=tobspr/shapezio&channel_name=windows", - { - cache: "no-cache", - } - ) - .then(res => res.json()) - .then(({ latest }) => { - if (latest !== G_BUILD_VERSION) { - const { ok } = this.dialogs.showInfo( - T.dialogs.newUpdate.title, - T.dialogs.newUpdate.desc, - ["ok:good"] - ); - - return new Promise(resolve => { - ok.add(resolve); - }); - } - }) - .catch(err => { - logger.log("Failed to fetch version:", err); - }), - ]); - } - }) - .then(() => this.setStatus("Creating platform wrapper")) .then(() => this.app.platformWrapper.initialize())