mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-03-14 01:51:40 +00:00
Fix elves not activating purchased fires
This commit is contained in:
parent
c26f7ddd21
commit
3c890e003b
1 changed files with 3 additions and 3 deletions
|
@ -427,7 +427,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
hasToggle: true,
|
||||
toggleDesc: "Activate auto-purchased small fires",
|
||||
onAutoPurchase() {
|
||||
if (smallFireElf.toggle.value && unref(this.buyable.canPurchase)) {
|
||||
if (smallFireElf.toggle.value) {
|
||||
coal.activeFires.value = Decimal.add(coal.activeFires.value, 1);
|
||||
}
|
||||
},
|
||||
|
@ -445,7 +445,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
hasToggle: true,
|
||||
toggleDesc: "Activate auto-purchased bonfires",
|
||||
onAutoPurchase() {
|
||||
if (bonfireElf.toggle.value && unref(this.buyable.canPurchase)) {
|
||||
if (bonfireElf.toggle.value) {
|
||||
coal.activeBonfires.value = Decimal.add(coal.activeBonfires.value, 1);
|
||||
coal.buildFire.amount.value = Decimal.sub(
|
||||
coal.buildFire.amount.value,
|
||||
|
@ -472,7 +472,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
|||
hasToggle: true,
|
||||
toggleDesc: "Activate auto-purchased kilns",
|
||||
onAutoPurchase() {
|
||||
if (kilnElf.toggle.value && unref(this.buyable.canPurchase)) {
|
||||
if (kilnElf.toggle.value) {
|
||||
coal.activeKilns.value = Decimal.add(coal.activeKilns.value, 1);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue