mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 08:31:35 +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 = Decimal.sub(
|
||||||
coal.buildFire.amount.value,
|
coal.buildFire.amount.value,
|
||||||
unref(this.buyable.cost!)
|
unref(this.buyable.cost!)
|
||||||
);
|
).max(0);
|
||||||
coal.activeFires.value = Decimal.sub(
|
coal.activeFires.value = Decimal.sub(
|
||||||
coal.activeFires.value,
|
coal.activeFires.value,
|
||||||
unref(this.buyable.cost!)
|
unref(this.buyable.cost!)
|
||||||
);
|
).max(0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPurchase() {
|
onPurchase() {
|
||||||
|
|
Loading…
Reference in a new issue