From 50f75592a90fe031f9b1b5fb1d2f4fe2e59f1493 Mon Sep 17 00:00:00 2001 From: Donaldino7712 Date: Wed, 15 May 2024 20:40:40 +0200 Subject: [PATCH] Improve sacrifice with r118 and sac auto Co-authored-by: HexaVault <44529573+HexaVault@users.noreply.github.com> --- .../ModernAntimatterDimensionsTab.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/tabs/antimatter-dimensions/ModernAntimatterDimensionsTab.vue b/src/components/tabs/antimatter-dimensions/ModernAntimatterDimensionsTab.vue index 60afc34c5..7efe43383 100644 --- a/src/components/tabs/antimatter-dimensions/ModernAntimatterDimensionsTab.vue +++ b/src/components/tabs/antimatter-dimensions/ModernAntimatterDimensionsTab.vue @@ -5,6 +5,7 @@ import AntimatterGalaxyRow from "@/components/tabs/antimatter-dimensions/ModernA import DimensionBoostRow from "@/components/tabs/antimatter-dimensions/ModernDimensionBoostRow"; import PrimaryButton from "@/components/PrimaryButton"; import TickspeedRow from "@/components/tabs/antimatter-dimensions/TickspeedRow"; +import { Achievement } from "../../../core/globals"; export default { name: "ModernAntimatterDimensionsTab", @@ -30,10 +31,13 @@ export default { hasContinuum: false, isContinuumActive: false, multiplierText: "", + isFullyAutomated: false, }; }, computed: { sacrificeTooltip() { + if (this.isFullyAutomated) + return "Sacrifice autobuyer is enabled and r118 is completed, so there is no reason to manually sacrifice"; return `Boosts 8th Antimatter Dimension by ${formatX(this.sacrificeBoost, 2, 2)}`; }, }, @@ -82,7 +86,8 @@ export default { this.multiplierText = `Buy 10 Dimension purchase multiplier: ${formatX(this.buy10Mult, 2, 2)}`; if (!isSacrificeUnlocked) return; - this.isSacrificeAffordable = Sacrifice.canSacrifice; + this.isFullyAutomated = Autobuyer.sacrifice.isActive && Achievement(118).isUnlocked; + this.isSacrificeAffordable = Sacrifice.canSacrifice && !this.isFullyAutomated; this.currentSacrifice.copyFrom(Sacrifice.totalBoost); this.sacrificeBoost.copyFrom(Sacrifice.nextBoost); this.disabledCondition = Sacrifice.disabledCondition; @@ -112,6 +117,7 @@ export default { @click="sacrifice" > Dimensional Sacrifice ({{ formatX(sacrificeBoost, 2, 2) }}) + Dimensional Sacrifice is Automated (Achievement 118) Dimensional Sacrifice Disabled ({{ disabledCondition }})