From 0e9d09fc6a1dfd3ccc353aa2941017d5c8d38f60 Mon Sep 17 00:00:00 2001 From: unsoftcapped3 <75136164+unsoftcapped3@users.noreply.github.com> Date: Wed, 14 Dec 2022 15:44:11 -0800 Subject: [PATCH] You need to start the scaling at a lower amount, like in this case, 10 instead of 100. --- src/data/layers/oil.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/layers/oil.tsx b/src/data/layers/oil.tsx index cdcfc8e..89df301 100644 --- a/src/data/layers/oil.tsx +++ b/src/data/layers/oil.tsx @@ -227,14 +227,14 @@ const layer = createLayer(id, function (this: BaseLayer) { resource: metal.metal, cost() { let v = new Decimal(this.amount.value); - if (Decimal.gte(v, 100)) v = Decimal.pow(v, 4).div(100**3); + if (Decimal.gte(v, 10)) v = Decimal.pow(v, 4).div(10**3); v = Decimal.pow(0.95, paper.books.heavyDrillBook.totalAmount.value).times(v); return Decimal.pow(8, v).times(2e5); }, inverseCost(x: DecimalSource) { let v = Decimal.div(x, 2e5).log(8); v = v.div(Decimal.pow(0.95, paper.books.heavyDrillBook.totalAmount.value)); - if (Decimal.gte(v, 100)) v = Decimal.mul(v, 100**3).root(4); + if (Decimal.gte(v, 10)) v = Decimal.mul(v, 10**3).root(4); return Decimal.isNaN(v) ? Decimal.dZero : v.floor().max(0); }, display: jsx(() => (