mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-01-31 15:41:37 +00:00
uses computed not the modifier
This commit is contained in:
parent
33bd09e9bf
commit
9c5a31a81a
1 changed files with 1 additions and 1 deletions
|
@ -762,7 +762,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
Decimal.times(computedAutoPlantingAmount.value, diff)
|
||||
);
|
||||
saplings.value = Decimal.sub(saplings.value, amountPlanted);
|
||||
if(Decimal.gte(saplings.value, totalTrees.value)) saplings.value = totalTrees.value;
|
||||
if(Decimal.gte(saplings.value, computedTotalTrees.value)) saplings.value = computedTotalTrees.value;
|
||||
});
|
||||
|
||||
const netSaplingGain = computed(() =>
|
||||
|
|
Loading…
Add table
Reference in a new issue