diff --git a/src/components/tabs/autobuyers/AutobuyerToggles.vue b/src/components/tabs/autobuyers/AutobuyerToggles.vue index 9fe9a74602..c5f123f9ef 100644 --- a/src/components/tabs/autobuyers/AutobuyerToggles.vue +++ b/src/components/tabs/autobuyers/AutobuyerToggles.vue @@ -6,7 +6,7 @@ export default { name: "AutobuyerToggles", components: { PrimaryButton, - PrimaryToggleButton + PrimaryToggleButton, }, data() { return { @@ -14,7 +14,8 @@ export default { autobuyersOn: false, showContinuum: false, disableContinuum: false, - allAutobuyersDisabled: false + allAutobuyersDisabled: false, + antimatterAutobuyersBuyMax: false, }; }, watch: { @@ -36,13 +37,21 @@ export default { this.showContinuum = Laitela.isUnlocked; this.disableContinuum = player.auto.disableContinuum; this.allAutobuyersDisabled = Autobuyers.unlocked.every(autobuyer => !autobuyer.isActive); + this.antimatterAutobuyersBuyMax = Autobuyer.antimatterDimension.zeroIndexed.every( + autobuyer => autobuyer.mode === AUTOBUYER_MODE.BUY_10 + ); }, toggleAllAutobuyers() { for (const autobuyer of Autobuyers.unlocked) { autobuyer.isActive = this.allAutobuyersDisabled; } - } - } + }, + toggleAntimatterSingles() { + for (const autobuyer of Autobuyer.antimatterDimension.zeroIndexed) { + autobuyer.mode = this.antimatterAutobuyersBuyMax ? AUTOBUYER_MODE.BUY_SINGLE : AUTOBUYER_MODE.BUY_10; + } + }, + }, }; @@ -60,6 +69,12 @@ export default { > {{ allAutobuyersDisabled ? "Enable" : "Disable" }} all autobuyers + + Set AD autobuyers to buy {{ antimatterAutobuyersBuyMax ? "singles" : "max" }} +