mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-03-14 01:51:40 +00:00
Don't reset all logs and ash
This commit is contained in:
parent
a128d08c55
commit
07bcc75366
1 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
}));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue