mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Get rid of old beta mode
This commit is contained in:
parent
050466df19
commit
20b46325b6
@ -146,11 +146,7 @@ export class Application {
|
|||||||
}
|
}
|
||||||
this.analytics = new GoogleAnalyticsImpl(this);
|
this.analytics = new GoogleAnalyticsImpl(this);
|
||||||
|
|
||||||
if (queryParamOptions.betaMode) {
|
this.gameAnalytics = new ShapezGameAnalytics(this);
|
||||||
this.gameAnalytics = new NoGameAnalytics(this);
|
|
||||||
} else {
|
|
||||||
this.gameAnalytics = new ShapezGameAnalytics(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3,13 +3,8 @@ const options = queryString.parse(location.search);
|
|||||||
|
|
||||||
export let queryParamOptions = {
|
export let queryParamOptions = {
|
||||||
embedProvider: null,
|
embedProvider: null,
|
||||||
betaMode: null,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (options.embed) {
|
if (options.embed) {
|
||||||
queryParamOptions.embedProvider = options.embed;
|
queryParamOptions.embedProvider = options.embed;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!G_IS_RELEASE && options.betamode) {
|
|
||||||
queryParamOptions.betaMode = true;
|
|
||||||
}
|
|
||||||
|
@ -715,10 +715,6 @@ export class Camera extends BasicSerializableObject {
|
|||||||
if (G_IS_DEV && globalConfig.debug.disableZoomLimits) {
|
if (G_IS_DEV && globalConfig.debug.disableZoomLimits) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (queryParamOptions.betaMode) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const wrapper = this.root.app.platformWrapper;
|
const wrapper = this.root.app.platformWrapper;
|
||||||
|
|
||||||
assert(Number.isFinite(this.zoomLevel), "Invalid zoom level *before* clamp: " + this.zoomLevel);
|
assert(Number.isFinite(this.zoomLevel), "Invalid zoom level *before* clamp: " + this.zoomLevel);
|
||||||
|
@ -145,9 +145,6 @@ export class HubGoals extends BasicSerializableObject {
|
|||||||
if (G_IS_DEV && globalConfig.debug.allBuildingsUnlocked) {
|
if (G_IS_DEV && globalConfig.debug.allBuildingsUnlocked) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (queryParamOptions.betaMode) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return !!this.gainedRewards[reward];
|
return !!this.gainedRewards[reward];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,9 +230,6 @@ export class HubGoals extends BasicSerializableObject {
|
|||||||
if (G_IS_DEV && globalConfig.debug.upgradesNoCost) {
|
if (G_IS_DEV && globalConfig.debug.upgradesNoCost) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (queryParamOptions.betaMode) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
const tierData = handle.tiers[currentLevel];
|
const tierData = handle.tiers[currentLevel];
|
||||||
|
|
||||||
@ -282,8 +276,6 @@ export class HubGoals extends BasicSerializableObject {
|
|||||||
|
|
||||||
if (G_IS_DEV && globalConfig.debug.upgradesNoCost) {
|
if (G_IS_DEV && globalConfig.debug.upgradesNoCost) {
|
||||||
// Dont take resources
|
// Dont take resources
|
||||||
} else if (queryParamOptions.betaMode) {
|
|
||||||
// Same
|
|
||||||
} else {
|
} else {
|
||||||
for (let i = 0; i < tierData.required.length; ++i) {
|
for (let i = 0; i < tierData.required.length; ++i) {
|
||||||
const requirement = tierData.required[i];
|
const requirement = tierData.required[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user