From 44f940d3a16a0daf617bb12f9f93bac52f13fd7c Mon Sep 17 00:00:00 2001 From: Chunkybanana <62921243+chunkybanana@users.noreply.github.com> Date: Fri, 16 Dec 2022 02:55:26 +0000 Subject: [PATCH] Fixed persistent refs (volar is magic) --- src/data/layers/coal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/layers/coal.tsx b/src/data/layers/coal.tsx index 140e6e2..bacfe26 100644 --- a/src/data/layers/coal.tsx +++ b/src/data/layers/coal.tsx @@ -1004,7 +1004,7 @@ const layer = createLayer(id, function (this: BaseLayer) { const ash = createResource(0,"ash"); const buildFire = createBuyable(() => ({ - resource: trees.mastery.logs, + resource: noPersist(trees.mastery.logs), // apparently necessary cost() { let v = Decimal.times(buildBonfire.amount.value, unref(buildBonfire.cost!)).plus( this.amount.value @@ -1105,7 +1105,7 @@ const layer = createLayer(id, function (this: BaseLayer) { }); const buildKiln = createBuyable(() => ({ - resource: trees.mastery.logs, + resource: noPersist(trees.mastery.logs), cost() { let v = this.amount.value; if (Decimal.gte(v, 100)) v = Decimal.pow(v, 2).div(100);