Another round of misc text fixes

This commit is contained in:
SpectralFlame 2023-01-30 11:15:52 -06:00 committed by cyip92
parent 71811f70d8
commit 597f9f0429
6 changed files with 11 additions and 7 deletions

View File

@ -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}`)

View File

@ -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,

View File

@ -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: {

View File

@ -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

View File

@ -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,

View File

@ -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);