From a598832dffa3d2dfd65d9e4e83b923ddc1c25e0f Mon Sep 17 00:00:00 2001 From: Anthony Lawn Date: Tue, 6 Sep 2022 10:36:51 -0500 Subject: [PATCH] Delete prestige.tsx --- src/data/layers/prestige.tsx | 65 ------------------------------------ 1 file changed, 65 deletions(-) delete mode 100644 src/data/layers/prestige.tsx diff --git a/src/data/layers/prestige.tsx b/src/data/layers/prestige.tsx deleted file mode 100644 index 8216af1..0000000 --- a/src/data/layers/prestige.tsx +++ /dev/null @@ -1,65 +0,0 @@ -/** - * @module - * @hidden - */ -import { main } from "data/projEntry"; -import { createCumulativeConversion, createPolynomialScaling } from "features/conversion"; -import { jsx } from "features/feature"; -import { createReset } from "features/reset"; -import MainDisplay from "features/resources/MainDisplay.vue"; -import { createResource } from "features/resources/resource"; -import { addTooltip } from "features/tooltips/tooltip"; -import { createResourceTooltip } from "features/trees/tree"; -import { BaseLayer, createLayer } from "game/layers"; -import type { DecimalSource } from "util/bignum"; -import { render } from "util/vue"; -import { createLayerTreeNode, createResetButton } from "../common"; - -const id = "p"; -const layer = createLayer(id, function (this: BaseLayer) { - const name = "Prestige"; - const color = "#4BDC13"; - const points = createResource(0, "prestige points"); - - const conversion = createCumulativeConversion(() => ({ - scaling: createPolynomialScaling(10, 0.5), - baseResource: main.points, - gainResource: points, - roundUpCost: true - })); - - const reset = createReset(() => ({ - thingsToReset: (): Record[] => [layer] - })); - - const treeNode = createLayerTreeNode(() => ({ - layerID: id, - color, - reset - })); - addTooltip(treeNode, { - display: createResourceTooltip(points), - pinnable: true - }); - - const resetButton = createResetButton(() => ({ - conversion, - tree: main.tree, - treeNode - })); - - return { - name, - color, - points, - display: jsx(() => ( - <> - - {render(resetButton)} - - )), - treeNode - }; -}); - -export default layer;