mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-22 08:31:35 +00:00
Make faith spend small fires regardless of toggle
This commit is contained in:
parent
b88d6bedbf
commit
68fe6fa1fb
1 changed files with 3 additions and 8 deletions
|
@ -445,16 +445,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
hasToggle: true,
|
||||
toggleDesc: "Activate auto-purchased bonfires",
|
||||
onAutoPurchase() {
|
||||
const spent = unref(this.buyable.cost!);
|
||||
coal.activeFires.value = Decimal.sub(coal.activeFires.value, spent).max(0);
|
||||
coal.buildFire.amount.value = Decimal.sub(coal.buildFire.amount.value, spent).max(0);
|
||||
if (bonfireElf.toggle.value) {
|
||||
coal.activeBonfires.value = Decimal.add(coal.activeBonfires.value, 1);
|
||||
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