mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-22 04:05:42 +00:00
Another round of misc text fixes
This commit is contained in:
parent
71811f70d8
commit
597f9f0429
@ -3,6 +3,7 @@ import { GameDatabase } from "./secret-formula/game-database";
|
||||
class AwayProgress {
|
||||
constructor(config) {
|
||||
this.name = config.name;
|
||||
this.forcedName = config.forcedName;
|
||||
this.isUnlocked = config.isUnlocked;
|
||||
this.awayOption = config.awayOption ?? this.name;
|
||||
this.showOption = config.showOption ?? true;
|
||||
@ -32,6 +33,7 @@ class AwayProgress {
|
||||
}
|
||||
|
||||
get formatName() {
|
||||
if (this.forcedName) return this.forcedName;
|
||||
// Format the camelCase name to Title Case, with spaces added before the capital letters
|
||||
return this.name
|
||||
.replace(/[A-Z]/gu, match => ` ${match}`)
|
||||
|
@ -97,6 +97,7 @@ GameDatabase.awayProgressTypes = [
|
||||
showOption: false,
|
||||
}, {
|
||||
name: "enslavedMemories",
|
||||
forcedName: "Nameless Memories",
|
||||
awayOption: "celestialMemories",
|
||||
reference: ["celestials", "ra", "pets", "enslaved", "memories"],
|
||||
isUnlocked: () => Ra.pets.enslaved.isUnlocked && !Ra.pets.enslaved.isCapped,
|
||||
|
@ -63,8 +63,8 @@ GameDatabase.challenges.infinity = [
|
||||
{
|
||||
id: 5,
|
||||
description:
|
||||
`buying Antimatter Dimensions 1-4 causes all smaller Antimatter Dimension costs to increase.
|
||||
Buying Antimatter Dimensions 5-8 causes all larger Antimatter Dimension costs to increase.`,
|
||||
`buying Antimatter Dimensions 1-4 causes all cheaper AD costs to increase.
|
||||
Buying Antimatter Dimensions 5-8 causes all more expensive AD costs to increase.`,
|
||||
goal: DC.E16500,
|
||||
isQuickResettable: true,
|
||||
reward: {
|
||||
|
@ -143,8 +143,9 @@ GameDatabase.eternity.milestones = {
|
||||
player.eternities.gte(200));
|
||||
// As far as I can tell, using templates here as Codefactor wants would lead to nested templates,
|
||||
// which seems messy to say the least.
|
||||
const realTime = PlayerProgress.seenAlteredSpeed() ? " real-time" : "";
|
||||
// eslint-disable-next-line prefer-template
|
||||
return `While offline, gain Eternities at ${formatPercents(0.5)} the rate of your fastest Eternity ` +
|
||||
return `While offline, gain Eternities at ${formatPercents(0.5)} the rate of your fastest${realTime} Eternity ` +
|
||||
(eternities.gt(0) ? `(Currently ${format(eternities, 2, 2)}/hour)` : "(Inactive)");
|
||||
},
|
||||
activeCondition: () => (player.options.offlineProgress
|
||||
|
@ -89,7 +89,7 @@ GameDatabase.eternity.timeStudies.normal = [
|
||||
reqType: TS_REQUIREMENT_TYPE.AT_LEAST_ONE,
|
||||
description: `You gain more Infinities based on Dimension Boosts`,
|
||||
effect: () => Math.max(DimBoost.totalBoosts, 1),
|
||||
formatEffect: value => formatX(value)
|
||||
formatEffect: value => formatX(value, 2)
|
||||
},
|
||||
{
|
||||
id: 33,
|
||||
|
@ -19,9 +19,9 @@ export default {
|
||||
methods: {
|
||||
update() {
|
||||
this.AM.copyFrom(Currency.antimatter);
|
||||
this.IP.copyFrom(Currency.infinityPoints);
|
||||
this.EP.copyFrom(Currency.eternityPoints);
|
||||
this.RM.copyFrom(Currency.realityMachines);
|
||||
this.IP.copyFrom(Currency.infinityPoints.value.floor());
|
||||
this.EP.copyFrom(Currency.eternityPoints.value.floor());
|
||||
this.RM.copyFrom(Currency.realityMachines.value.floor());
|
||||
this.IM = Currency.imaginaryMachines.value;
|
||||
this.RS.copyFrom(Currency.realityShards);
|
||||
this.machineStr = formatMachines(this.RM, this.IM);
|
||||
|
Loading…
Reference in New Issue
Block a user