mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-26 02:01:43 +00:00
Fixed small fires and bonfires not activating max
This commit is contained in:
parent
dfe9ea515c
commit
a36b690c00
1 changed files with 3 additions and 3 deletions
|
@ -718,9 +718,9 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
visibility: () => showIf(boxes.upgrades.logsUpgrade.bought.value),
|
visibility: () => showIf(boxes.upgrades.logsUpgrade.bought.value),
|
||||||
hasToggle: true,
|
hasToggle: true,
|
||||||
toggleDesc: "Activate auto-purchased small fires",
|
toggleDesc: "Activate auto-purchased small fires",
|
||||||
onAutoPurchase() {
|
onAutoPurchase(_, amount) {
|
||||||
if (smallFireElf.toggle.value) {
|
if (smallFireElf.toggle.value) {
|
||||||
coal.activeFires.value = Decimal.add(coal.activeFires.value, 1);
|
coal.activeFires.value = Decimal.add(coal.activeFires.value, amount);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPurchase() {
|
onPurchase() {
|
||||||
|
@ -741,7 +741,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
coal.activeFires.value = Decimal.sub(coal.activeFires.value, spent).max(0);
|
coal.activeFires.value = Decimal.sub(coal.activeFires.value, spent).max(0);
|
||||||
coal.buildFire.amount.value = Decimal.sub(coal.buildFire.amount.value, spent).max(0);
|
coal.buildFire.amount.value = Decimal.sub(coal.buildFire.amount.value, spent).max(0);
|
||||||
if (bonfireElf.toggle.value) {
|
if (bonfireElf.toggle.value) {
|
||||||
coal.activeBonfires.value = Decimal.add(coal.activeBonfires.value, 1);
|
coal.activeBonfires.value = Decimal.add(coal.activeBonfires.value, amount);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPurchase() {
|
onPurchase() {
|
||||||
|
|
Loading…
Reference in a new issue