mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-09-20 11:01:45 +00:00
Address most review comments 12
This commit is contained in:
parent
3f66817f07
commit
4dbf845a33
|
@ -50,6 +50,7 @@ Vue.component("replicanti-galaxy-button", {
|
|||
this.update();
|
||||
},
|
||||
handleClick() {
|
||||
if (!this.isAvailable) return;
|
||||
if (player.options.confirmations.replicantiGalaxy) Modal.replicantiGalaxy.show();
|
||||
else replicantiGalaxy();
|
||||
}
|
||||
|
|
|
@ -9,6 +9,10 @@ Vue.component("modal-antimatter-galaxy", {
|
|||
perkANRBought: false,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.on$(GAME_EVENT.DIMBOOST_AFTER, this.emitClose);
|
||||
this.on$(GAME_EVENT.BIG_CRUNCH_AFTER, this.emitClose);
|
||||
},
|
||||
computed: {
|
||||
bulk() { return this.modalConfig.bulk; },
|
||||
topLabel() {
|
||||
|
|
|
@ -7,6 +7,10 @@ Vue.component("modal-big-crunch", {
|
|||
gainedInfinityPoints: Decimal,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.$on(GAME_EVENT.ETERNITY_RESET_AFTER, this.emitClose);
|
||||
this.$on(GAME_EVENT.REALITY_RESET_AFTER, this.emitClose);
|
||||
},
|
||||
computed: {
|
||||
message() {
|
||||
return `Upon Infinity, all Dimensions, Dimension Boosts, and Antimatter Galaxies are reset. You will gain
|
||||
|
|
|
@ -5,21 +5,24 @@ Vue.component("modal-dimension-boost", {
|
|||
data() {
|
||||
return {
|
||||
unlockedByBoost: String,
|
||||
canBuy: Number
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
bulk() { return this.modalConfig.bulk; },
|
||||
topLabel() {
|
||||
if (this.bulk) return `You are about to purchase ${quantifyInt("Dimension Boost", this.getCanBuy())}`;
|
||||
if (this.bulk) return `You are about to purchase ${quantifyInt("Dimension Boost", this.canBuy)}`;
|
||||
return `You are about to purchase a Dimension Boost`;
|
||||
},
|
||||
message() {
|
||||
return `${this.unlockedByBoost}?`;
|
||||
return `This will ${this.unlockedByBoost}. Are you sure you want to do this?`;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
update() {
|
||||
this.unlockedByBoost = DimBoost.unlockedByBoost;
|
||||
// Make sure we make the first character of the string lowercase, as it's a part of a longer string
|
||||
this.unlockedByBoost = DimBoost.unlockedByBoost.charAt(0).toLowerCase() + DimBoost.unlockedByBoost.slice(1);
|
||||
this.canBuy = this.getCanBuy();
|
||||
},
|
||||
handleYesClick() {
|
||||
this.emitClose();
|
||||
|
|
|
@ -9,11 +9,13 @@ Vue.component("modal-replicanti-galaxy", {
|
|||
},
|
||||
computed: {
|
||||
message() {
|
||||
return `A Replicanti Galaxy functions as a regular, standard Antimatter Galaxy would. It, however, does not
|
||||
increase the cost on Antimatter Galaxies. It will ${this.divideReplicanti
|
||||
? `divide your Replicanti by ${format(Number.MAX_VALUE, 2, 2)}
|
||||
(${format(this.replicanti, 2, 2)} to ${format(this.replicanti.divide(Number.MAX_VALUE), 2, 2)})`
|
||||
: `reset your Replicanti to ${formatInt(1)}`}.`;
|
||||
const reductionString = this.divideReplicanti
|
||||
? `divide your Replicanti by ${format(Number.MAX_VALUE, 2, 2)}
|
||||
(${format(this.replicanti, 2, 2)} to ${format(this.replicanti.divide(Number.MAX_VALUE), 2, 2)})`
|
||||
: `reset your Replicanti to ${formatInt(1)}`;
|
||||
return `A Replicanti Galaxy boosts Tickspeed the same way an Antimatter Galaxy does. However, it does not
|
||||
increase the cost of Antimatter Galaxies, nor is it affected by multipliers to Antimatter Galaxies specifically.
|
||||
It will ${reductionString}.`;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user