mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 00:21:34 +00:00
add .max(0)s
This commit is contained in:
parent
21dda55cb6
commit
009d33383f
1 changed files with 2 additions and 2 deletions
|
@ -450,11 +450,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
coal.buildFire.amount.value = Decimal.sub(
|
||||
coal.buildFire.amount.value,
|
||||
unref(this.buyable.cost!)
|
||||
);
|
||||
).max(0);
|
||||
coal.activeFires.value = Decimal.sub(
|
||||
coal.activeFires.value,
|
||||
unref(this.buyable.cost!)
|
||||
);
|
||||
).max(0);
|
||||
}
|
||||
},
|
||||
onPurchase() {
|
||||
|
|
Loading…
Reference in a new issue