Don't reset all logs and ash

This commit is contained in:
thepaperpilot 2022-12-04 12:16:10 -06:00
parent a128d08c55
commit 07bcc75366

View file

@ -43,9 +43,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
baseResource: pulp,
gainResource: paper,
roundUpCost: true,
spend() {
trees.logs.value = 0;
coal.ash.value = 0;
spend(gain, cost) {
trees.logs.value = Decimal.sub(trees.logs.value, Decimal.times(cost, 1e9));
coal.ash.value = Decimal.sub(coal.ash.value, Decimal.times(cost, 1e6));
}
}));