Fix multiplier tab for new TS132 effect

This commit is contained in:
Hirame1 2024-04-30 19:43:52 +07:00
parent f17e2a81eb
commit 6fd7a59330
2 changed files with 8 additions and 4 deletions

View File

@ -48,8 +48,12 @@ export const general = {
: `Time Study ${ts}`),
multValue: (ts, dim) => {
// This is a special case for the passive path RG study, as its effect is 0.4 (for galaxy power) but
// in the multiplier tab we only reference its replicanti speed value (which is 3)
if (ts === 132) return TimeStudy(ts).canBeApplied ? 3 : 1;
// in the multiplier tab we only reference its replicanti speed value (which is 1.5)
// The PASS perk doubles this effect
if (ts === 132) {
const passPerkMult = Perk.studyPassive.isBought ? 2 : 1;
return TimeStudy(ts).canBeApplied ? 1.5 * passPerkMult : 1;
}
if (!dim) return TimeStudy(ts).canBeApplied ? TimeStudy(ts).effectOrDefault(1) : 1;
if (dim?.length === 2) {

View File

@ -20,8 +20,8 @@ export const replicanti = {
timeStudy: {
name: "Time Studies",
multValue: () => {
const preReality = Effects.product(TimeStudy(62), TimeStudy(213));
return preReality * (Perk.studyPassive.isBought && TimeStudy(132).isBought ? 3 : 1);
const preReality = Effects.product(TimeStudy(62), TimeStudy(213)) * (TimeStudy(132).isBought ? 1.5 : 1);
return preReality * (Perk.studyPassive.isBought && TimeStudy(132).isBought ? 2 : 1);
},
isActive: () => PlayerProgress.eternityUnlocked() && !Pelle.isDoomed,
icon: MultiplierTabIcons.TIME_STUDY,