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,12 +146,8 @@ export class Application {
|
||||
}
|
||||
this.analytics = new GoogleAnalyticsImpl(this);
|
||||
|
||||
if (queryParamOptions.betaMode) {
|
||||
this.gameAnalytics = new NoGameAnalytics(this);
|
||||
} else {
|
||||
this.gameAnalytics = new ShapezGameAnalytics(this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers all game states
|
||||
|
@ -3,13 +3,8 @@ const options = queryString.parse(location.search);
|
||||
|
||||
export let queryParamOptions = {
|
||||
embedProvider: null,
|
||||
betaMode: null,
|
||||
};
|
||||
|
||||
if (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) {
|
||||
return;
|
||||
}
|
||||
if (queryParamOptions.betaMode) {
|
||||
return;
|
||||
}
|
||||
|
||||
const wrapper = this.root.app.platformWrapper;
|
||||
|
||||
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) {
|
||||
return true;
|
||||
}
|
||||
if (queryParamOptions.betaMode) {
|
||||
return true;
|
||||
}
|
||||
return !!this.gainedRewards[reward];
|
||||
}
|
||||
|
||||
@ -233,9 +230,6 @@ export class HubGoals extends BasicSerializableObject {
|
||||
if (G_IS_DEV && globalConfig.debug.upgradesNoCost) {
|
||||
return true;
|
||||
}
|
||||
if (queryParamOptions.betaMode) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const tierData = handle.tiers[currentLevel];
|
||||
|
||||
@ -282,8 +276,6 @@ export class HubGoals extends BasicSerializableObject {
|
||||
|
||||
if (G_IS_DEV && globalConfig.debug.upgradesNoCost) {
|
||||
// Dont take resources
|
||||
} else if (queryParamOptions.betaMode) {
|
||||
// Same
|
||||
} else {
|
||||
for (let i = 0; i < tierData.required.length; ++i) {
|
||||
const requirement = tierData.required[i];
|
||||
|
Loading…
Reference in New Issue
Block a user