From a63a4084cb6dc14f8eb9a31f3e38e997ccf44125 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 30 Aug 2021 23:14:22 -0500 Subject: [PATCH] Fixed errors caused by lack of .layers in player object --- src/components/tree/TreeNode.vue | 2 +- src/data/layers/aca/c.ts | 2 +- src/data/layers/aca/f.ts | 2 +- src/data/layers/demo.ts | 1 - src/data/mod.ts | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/tree/TreeNode.vue b/src/components/tree/TreeNode.vue index 2f4f53b..9425ce9 100644 --- a/src/components/tree/TreeNode.vue +++ b/src/components/tree/TreeNode.vue @@ -88,7 +88,7 @@ export default defineComponent({ if (player.layers[this.id].unlocked) { return ( this.layer.tooltip || - `{{ formatWhole(player.${this.id}.points) }} {{ layers.${this.id}.resource }}` + `{{ formatWhole(player.layers.${this.id}.points) }} {{ layers.${this.id}.resource }}` ); } else { return ( diff --git a/src/data/layers/aca/c.ts b/src/data/layers/aca/c.ts index b291172..1c2f6d2 100644 --- a/src/data/layers/aca/c.ts +++ b/src/data/layers/aca/c.ts @@ -531,7 +531,7 @@ export default {
Adjust how many points H gives you!
- ` + ` } }, style() { diff --git a/src/data/layers/aca/f.ts b/src/data/layers/aca/f.ts index 95c2bdd..5e19934 100644 --- a/src/data/layers/aca/f.ts +++ b/src/data/layers/aca/f.ts @@ -43,7 +43,7 @@ export default { return false; }, name: "Farms", - //directMult() {return new Decimal(player.c.otherThingy)}, + //directMult() {return new Decimal(player.layers.c.otherThingy)}, row: 1, branches: [ diff --git a/src/data/layers/demo.ts b/src/data/layers/demo.ts index 329ac6f..32179da 100644 --- a/src/data/layers/demo.ts +++ b/src/data/layers/demo.ts @@ -1,7 +1,6 @@ /* eslint-disable */ import { layers } from "@/game/layers"; import player from "@/game/player"; -import { DecimalSource } from "@/lib/break_eternity"; import { RawLayer } from "@/typings/layer"; import Decimal, { format } from "@/util/bignum"; import { diff --git a/src/data/mod.ts b/src/data/mod.ts index 6dfbc4e..729b739 100644 --- a/src/data/mod.ts +++ b/src/data/mod.ts @@ -52,7 +52,7 @@ const h = { }) ], tooltip() { - return "Restore your points to {{ player.c.otherThingy }}"; + return "Restore your points to {{ player.layers.c.otherThingy }}"; }, row: "side", position: 3,