From 9e0ad6b578e2c2c2f49bd77ef52618356c58803e Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 2 Apr 2023 22:31:13 -0500 Subject: [PATCH] Fix build issues --- src/data/projEntry.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/data/projEntry.tsx b/src/data/projEntry.tsx index 5d5c5c4..623e54d 100644 --- a/src/data/projEntry.tsx +++ b/src/data/projEntry.tsx @@ -2,13 +2,10 @@ import Profectus from "components/Profectus.vue"; import Spacer from "components/layout/Spacer.vue"; import { jsx } from "features/feature"; import { createResource, trackBest, trackOOMPS, trackTotal } from "features/resources/resource"; -import type { GenericTree } from "features/trees/tree"; -import { branchedResetPropagation, createTree } from "features/trees/tree"; import { globalBus } from "game/events"; import type { BaseLayer, GenericLayer } from "game/layers"; import { setupLayerModal } from "game/layers"; import { createLayer } from "game/layers"; -import type { PlayerData } from "game/player"; import player from "game/player"; import type { DecimalSource } from "util/bignum"; import Decimal, { format, formatTime } from "util/bignum"; @@ -17,6 +14,8 @@ import { computed, toRaw } from "vue"; import a from "./layers/aca/a"; import c from "./layers/aca/c"; import f from "./layers/aca/f"; +import { Player } from "game/player"; +import { createTree, GenericTree, branchedResetPropagation } from "features/trees/tree"; /** * @hidden @@ -71,10 +70,10 @@ export const main = createLayer("main", function (this: BaseLayer) { display: jsx(() => ( <> {player.devSpeed === 0 ?
Game Paused
: null} - {player.devSpeed && player.devSpeed !== 1 ? ( + {player.devSpeed != null && player.devSpeed != 0 && player.devSpeed !== 1 ? (
Dev Speed: {format(player.devSpeed)}x
) : null} - {player.offlineTime ? ( + {player.offlineTime != null && player.offlineTime != 0 ? (
Offline Time: {formatTime(player.offlineTime)}
) : null}
@@ -105,7 +104,7 @@ export const main = createLayer("main", function (this: BaseLayer) { */ export const getInitialLayers = ( /* eslint-disable-next-line @typescript-eslint/no-unused-vars */ - player: Partial + player: Partial ): Array => [main, f, c, a]; /** @@ -123,7 +122,7 @@ export const hasWon = computed(() => { /* eslint-disable @typescript-eslint/no-unused-vars */ export function fixOldSave( oldVersion: string | undefined, - player: Partial + player: Partial // eslint-disable-next-line @typescript-eslint/no-empty-function ): void {} /* eslint-enable @typescript-eslint/no-unused-vars */