make more upgrades

This commit is contained in:
unsoftcapped3 2022-12-23 00:20:03 +00:00
parent 24e8a477bf
commit b2f888b92a

View file

@ -85,6 +85,10 @@ import Toy from "./Toy.vue";
import toys from "./toys"; import toys from "./toys";
import trees from "./trees"; import trees from "./trees";
import workshop from "./workshop"; import workshop from "./workshop";
import paper from "./paper";
import metal from "./metal";
import dyes from "./dyes"
import plastic from "./plastic"
const id = "factory"; const id = "factory";
@ -1043,13 +1047,54 @@ const factory = createLayer(id, () => {
} }
})), })),
createUpgrade(() => ({ createUpgrade(() => ({
resource: trees.logs, resource: paper.paper,
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e80), cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e94),
display: { display: {
title: "Sawmill Efficiency", title: "News Ticker",
description: "Metal increases sawmill consumption and production by *log(metal)/10" description: "Paper boosts tick speed" // formula: *1+log(x)/100
} }
})),] })),
createUpgrade(() => ({
resource: toys.trucks,
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1000),
display: {
title: "Haul wood in trucks",
description: "Trucks multiply wood gain"
}
})),
createUpgrade(() => ({
resource: metal.metal,
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e55),
display: {
title: "Diamond-tipped drills",
description: "Drill power ^1.2"
}
})),
createUpgrade(() => ({
resource: toys.woodenBlocks,
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1000),
display: {
title: "Larger wood pieces",
description: "Wooden block producers produce 3x as much"
}
})),
createUpgrade(() => ({
resource: dyes.dyes.red.amount,
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e17),
display: {
title: "Colorful clothes",
description: "Dye producers produce 4x as much"
}
})),
createUpgrade(() => ({
resource: plastic.plastic,
cost: () =>Decimal.pow(10, upgradeAmount.value).mul(1e17),
display: {
title: "Improved plastic producers",
description: "Plastic producers produce 4x as much"
}
})),
]
// pixi // pixi
const upgradeAmount = computed(() => Object.values(upgrades).filter(u => u.bought.value).length) as ComputedRef<number> const upgradeAmount = computed(() => Object.values(upgrades).filter(u => u.bought.value).length) as ComputedRef<number>
@ -1810,6 +1855,8 @@ const factory = createLayer(id, () => {
{renderRow(...Object.values(elfBuyables))} {renderRow(...Object.values(elfBuyables))}
<Spacer /> <Spacer />
{renderRow(...Object.values(factoryBuyables))} {renderRow(...Object.values(factoryBuyables))}
<Spacer />
{renderRow(...Object.values(upgrades))}
</> </>
)) ))
})), })),