mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-09-20 11:01:45 +00:00
Fix multiplier tab for new TS132 effect
This commit is contained in:
parent
f17e2a81eb
commit
6fd7a59330
|
@ -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) {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user