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 DimensionBoostRow from "@/components/tabs/antimatter-dimensions/ModernDimensionBoostRow";
|
||||||
import PrimaryButton from "@/components/PrimaryButton";
|
import PrimaryButton from "@/components/PrimaryButton";
|
||||||
import TickspeedRow from "@/components/tabs/antimatter-dimensions/TickspeedRow";
|
import TickspeedRow from "@/components/tabs/antimatter-dimensions/TickspeedRow";
|
||||||
|
import { Achievement } from "../../../core/globals";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ModernAntimatterDimensionsTab",
|
name: "ModernAntimatterDimensionsTab",
|
||||||
@ -30,10 +31,13 @@ export default {
|
|||||||
hasContinuum: false,
|
hasContinuum: false,
|
||||||
isContinuumActive: false,
|
isContinuumActive: false,
|
||||||
multiplierText: "",
|
multiplierText: "",
|
||||||
|
isFullyAutomated: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
sacrificeTooltip() {
|
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)}`;
|
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)}`;
|
this.multiplierText = `Buy 10 Dimension purchase multiplier: ${formatX(this.buy10Mult, 2, 2)}`;
|
||||||
if (!isSacrificeUnlocked) return;
|
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.currentSacrifice.copyFrom(Sacrifice.totalBoost);
|
||||||
this.sacrificeBoost.copyFrom(Sacrifice.nextBoost);
|
this.sacrificeBoost.copyFrom(Sacrifice.nextBoost);
|
||||||
this.disabledCondition = Sacrifice.disabledCondition;
|
this.disabledCondition = Sacrifice.disabledCondition;
|
||||||
@ -112,6 +117,7 @@ export default {
|
|||||||
@click="sacrifice"
|
@click="sacrifice"
|
||||||
>
|
>
|
||||||
<span v-if="isSacrificeAffordable">Dimensional Sacrifice ({{ formatX(sacrificeBoost, 2, 2) }})</span>
|
<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>
|
<span v-else>Dimensional Sacrifice Disabled ({{ disabledCondition }})</span>
|
||||||
</PrimaryButton>
|
</PrimaryButton>
|
||||||
<button
|
<button
|
||||||
|
Loading…
Reference in New Issue
Block a user