From d2d397e4fcf26664219522c054ff720cf62bc91f Mon Sep 17 00:00:00 2001 From: Chunkybanana <62921243+chunkybanana@users.noreply.github.com> Date: Fri, 23 Dec 2022 08:32:10 +0000 Subject: [PATCH 1/2] Fixed persistent ref issues --- src/data/layers/factory.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/data/layers/factory.tsx b/src/data/layers/factory.tsx index 2e6cde0..d079744 100644 --- a/src/data/layers/factory.tsx +++ b/src/data/layers/factory.tsx @@ -671,7 +671,7 @@ const factory = createLayer(id, () => { outputs: { bear: { amount: computed(() => (upgrades[1][3].bought.value ? 2 : 1)), - resource: bears + resource: noPersist(bears) } }, visible: main.days[advancedDay - 1].opened @@ -695,7 +695,7 @@ const factory = createLayer(id, () => { outputs: { shovelBucket: { amount: 1, - resource: bucketAndShovels + resource: noPersist(bucketAndShovels) } }, visible: main.days[advancedDay - 1].opened @@ -723,7 +723,7 @@ const factory = createLayer(id, () => { outputs: { console: { amount: computed(() => (upgrades[1][3].bought.value ? 3 : 1)), - resource: consoles + resource: noPersist(consoles) } }, visible: main.days[advancedDay - 1].opened @@ -958,7 +958,7 @@ const factory = createLayer(id, () => { style: "width: 110px" })); const bearsBuyable = createBuyable(() => ({ - resource: bears, + resource: noPersist(bears), cost() { return Decimal.pow(2, Decimal.add(this.amount.value, 5)); }, @@ -970,7 +970,7 @@ const factory = createLayer(id, () => { visible: () => showIf(main.days[advancedDay - 1].opened.value) })); const bucketBuyable = createBuyable(() => ({ - resource: bucketAndShovels, + resource: noPersist(bucketAndShovels), cost() { return Decimal.pow(2, Decimal.add(this.amount.value, 5)); }, @@ -982,7 +982,7 @@ const factory = createLayer(id, () => { visible: () => showIf(main.days[advancedDay - 1].opened.value) })); const consolesBuyable = createBuyable(() => ({ - resource: consoles, + resource: noPersist(consoles), cost() { return Decimal.pow(2, Decimal.add(this.amount.value, 5)); }, From 08434d44be95c8da97e2799ecde29dcd8639be85 Mon Sep 17 00:00:00 2001 From: Chunkybanana <62921243+chunkybanana@users.noreply.github.com> Date: Fri, 23 Dec 2022 08:41:52 +0000 Subject: [PATCH 2/2] Added a little padding to the component list --- src/data/layers/styles/factory.css | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data/layers/styles/factory.css b/src/data/layers/styles/factory.css index 6a0b3df..9a02626 100644 --- a/src/data/layers/styles/factory.css +++ b/src/data/layers/styles/factory.css @@ -141,6 +141,7 @@ overflow-x: hidden; padding-right: 370px; direction: rtl; + padding-left: 10px; } .comp-list-child {