|
|
|
@ -9,6 +9,7 @@ import { globalConfig } from "../core/config";
|
|
|
|
|
import { Math_random } from "../core/builtins";
|
|
|
|
|
import { UPGRADES } from "./upgrades";
|
|
|
|
|
import { enumItemProcessorTypes } from "./components/item_processor";
|
|
|
|
|
import { queryParamOptions } from "../core/query_parameters";
|
|
|
|
|
|
|
|
|
|
const logger = createLogger("hub_goals");
|
|
|
|
|
|
|
|
|
@ -98,6 +99,9 @@ export class HubGoals extends BasicSerializableObject {
|
|
|
|
|
if (G_IS_DEV && globalConfig.debug.allBuildingsUnlocked) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if (queryParamOptions.betaMode) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return !!this.gainedRewards[reward];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -177,6 +181,9 @@ export class HubGoals extends BasicSerializableObject {
|
|
|
|
|
if (G_IS_DEV && globalConfig.debug.upgradesNoCost) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
if (queryParamOptions.betaMode) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const tierData = handle.tiers[currentLevel];
|
|
|
|
|
|
|
|
|
@ -209,6 +216,8 @@ 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];
|
|
|
|
|