mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-10 06:02:13 +00:00
Improve sacrifice with r118 and sac auto
Co-authored-by: HexaVault <44529573+HexaVault@users.noreply.github.com>
This commit is contained in:
parent
fe0e3001eb
commit
50f75592a9
@ -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"
|
||||
>
|
||||
<span v-if="isSacrificeAffordable">Dimensional Sacrifice ({{ formatX(sacrificeBoost, 2, 2) }})</span>
|
||||
<span v-else-if="isFullyAutomated && disabledCondition !== ''">Dimensional Sacrifice is Automated (Achievement 118)</span>
|
||||
<span v-else>Dimensional Sacrifice Disabled ({{ disabledCondition }})</span>
|
||||
</PrimaryButton>
|
||||
<button
|
||||
|
Loading…
Reference in New Issue
Block a user