From c9667ee249d74fcd1972c581d573b4b4dc624fa1 Mon Sep 17 00:00:00 2001 From: unsoftcapped3 <75136164+unsoftcapped3@users.noreply.github.com> Date: Fri, 23 Dec 2022 03:05:06 +0000 Subject: [PATCH] upgrade #8 also changed scalings --- src/data/layers/factory.tsx | 53 ++++++++++++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/src/data/layers/factory.tsx b/src/data/layers/factory.tsx index 60c9e53..7f90a2d 100644 --- a/src/data/layers/factory.tsx +++ b/src/data/layers/factory.tsx @@ -1010,7 +1010,7 @@ const factory = createLayer(id, () => { const oilFuel = createBuyable(() => ({ resource: oil.oil, cost() { - return Decimal.pow(10, this.amount.value).times(1e24); + return Decimal.pow(10, this.amount.value).times(1e23); }, display: { title: "Oil Fuel", @@ -1058,7 +1058,7 @@ const factory = createLayer(id, () => { })), createUpgrade(() => ({ resource: toys.trucks, - cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1000), + cost: () =>Decimal.pow(1.25, upgradeAmount.value).mul(1000), display: { title: "Haul wood in trucks", description: "Trucks multiply wood gain" @@ -1076,7 +1076,43 @@ const factory = createLayer(id, () => { }))], [createUpgrade(() => ({ resource: toys.woodenBlocks, - cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1000), + cost: () =>Decimal.pow(1.25, upgradeAmount.value).mul(1000), + display: { + title: "Larger wood pieces", + description: "Wooden block producers produce 3x as much" + }, + visible: () => showIf(main.days[advancedDay - 1].opened.value) + })), + createUpgrade(() => ({ + resource: dyes.dyes.red.amount, + cost: () =>Decimal.pow(2, upgradeAmount.value).mul(1e17), + display: { + title: "Colorful clothes", + description: "Dye producers produce 4x as much" + }, + visible: () => showIf(main.days[advancedDay - 1].opened.value) + })), + createUpgrade(() => ({ + resource: plastic.plastic, + cost: () =>Decimal.pow(2, upgradeAmount.value).mul(1e17), + display: { + title: "Improved plastic producers", + description: "Plastic producers produce 4x as much" + }, + visible: () => showIf(main.days[advancedDay - 1].opened.value) + })), + createUpgrade(() => ({ + resource: oil.oil, + cost: () =>Decimal.pow(4, upgradeAmount.value).mul(1e23), + display: { + title: "Capitalism", + description: "Console production is tripled" + }, + visible: () => showIf(main.days[advancedDay - 1].opened.value) + }))], + /*[createUpgrade(() => ({ + resource: coal.coal, + cost: () =>Decimal.pow(15, upgradeAmount.value).mul(1000), display: { title: "Larger wood pieces", description: "Wooden block producers produce 3x as much" @@ -1100,7 +1136,16 @@ const factory = createLayer(id, () => { description: "Plastic producers produce 4x as much" }, visible: () => showIf(main.days[advancedDay - 1].opened.value) - }))], + })), + createUpgrade(() => ({ + resource: oil.oil, + cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e23), + display: { + title: "Capitalism", + description: "Console production is tripled" + }, + visible: () => showIf(main.days[advancedDay - 1].opened.value) + }))],*/ ] // pixi