Fix demo flags

This commit is contained in:
tobspr 2020-09-29 18:42:29 +02:00
parent 1c88b99de3
commit 1c97f3f32a
2 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,4 @@
import { IS_DEMO } from "../core/config";
import { findNiceIntegerValue } from "../core/utils";
import { ShapeDefinition } from "./shape_definition";
@ -8,7 +9,7 @@ export const blueprintShape = "CbCbCbRb:CwCwCwCw";
const fixedImprovements = [0.5, 0.5, 1, 1, 2, 1, 1];
const numEndgameUpgrades = G_IS_DEV || G_IS_STANDALONE ? 20 - fixedImprovements.length - 1 : 0;
const numEndgameUpgrades = !IS_DEMO ? 20 - fixedImprovements.length - 1 : 0;
function generateEndgameUpgrades() {
return new Array(numEndgameUpgrades).fill(null).map((_, i) => ({

View File

@ -6,7 +6,7 @@ import { GameRoot } from "../game/root";
import { newEmptyMap, clamp } from "../core/utils";
import { createLogger } from "../core/logging";
import { globalConfig } from "../core/config";
import { globalConfig, IS_DEMO } from "../core/config";
const logger = createLogger("sound");
@ -29,7 +29,7 @@ export const SOUNDS = {
};
export const MUSIC = {
theme: G_IS_STANDALONE ? "theme-full" : "theme-short",
theme: IS_DEMO ? "theme-short" : "theme-full",
menu: "menu",
};