lock tp upgrade in cel7

This commit is contained in:
L4R5W 2024-04-25 10:13:04 +02:00 committed by cyip92
parent 2fa8abed94
commit 4b037b95b1
2 changed files with 7 additions and 10 deletions

View File

@ -40,7 +40,6 @@ export default {
currentDT: new Decimal(0), currentDT: new Decimal(0),
currentDTGain: new Decimal(0), currentDTGain: new Decimal(0),
timeEstimate: "", timeEstimate: "",
rebuyableBoost: false,
isHovering: false, isHovering: false,
hideEstimate: false, hideEstimate: false,
}; };
@ -48,12 +47,12 @@ export default {
computed: { computed: {
classObject() { classObject() {
if (this.isUseless) { if (this.isUseless) {
// Note: TP mult (3) is conditionally useless and IP mult (7) is always useless; we style them similarly to // A lot of people did not understand the old way of handling TP mult (3) so we now permanently disable it
// the rest of the game - TP appears as "currently available" while IP appears as "strictly disabled" // and adjust the rift formula to come up for the lack of purchasable upgrade. Therefore we mark both upgrades
// similar to the rest of the game - as strictly disabled.
return { return {
"o-dilation-upgrade o-pelle-disabled-pointer": true, "o-dilation-upgrade o-pelle-disabled-pointer": true,
"o-dilation-upgrade--unavailable": this.upgrade.id === 3, "o-pelle-disabled o-dilation-upgrade--useless": this.upgrade.id === 7 || this.upgrade.id === 3,
"o-pelle-disabled o-dilation-upgrade--useless": this.upgrade.id === 7,
}; };
} }
return { return {
@ -66,9 +65,8 @@ export default {
}; };
}, },
isUseless() { isUseless() {
const tp = this.upgrade.id === 3 && !this.rebuyableBoost; const tpip = this.upgrade.id === 3 || this.upgrade.id === 7;
const ip = this.upgrade.id === 7; return Pelle.isDoomed && tpip;
return Pelle.isDoomed && (tp || ip);
} }
}, },
watch: { watch: {
@ -88,7 +86,6 @@ export default {
this.isCapped = upgrade.isCapped; this.isCapped = upgrade.isCapped;
const autobuyer = Autobuyer.dilationUpgrade(upgrade.id); const autobuyer = Autobuyer.dilationUpgrade(upgrade.id);
this.boughtAmount = upgrade.boughtAmount; this.boughtAmount = upgrade.boughtAmount;
this.rebuyableBoost = PelleRifts.paradox.milestones[2].canBeApplied;
if (!autobuyer) return; if (!autobuyer) return;
this.isAutoUnlocked = autobuyer.isUnlocked; this.isAutoUnlocked = autobuyer.isUnlocked;
this.isAutobuyerOn = autobuyer.isActive; this.isAutobuyerOn = autobuyer.isActive;

View File

@ -212,7 +212,7 @@ export const pelleRifts = {
requirement: 0.5, requirement: 0.5,
description: "Dilation rebuyable purchase count improves Infinity Power conversion rate", description: "Dilation rebuyable purchase count improves Infinity Power conversion rate",
effect: () => Math.min( effect: () => Math.min(
1.1 ** (Object.values(player.dilation.rebuyables).sum() - 90), 1.1075 ** (Object.values(player.dilation.rebuyables).sum() - 60),
712 712
), ),
formatEffect: x => `Infinity Power Conversion ${formatX(x, 2, 2)}` formatEffect: x => `Infinity Power Conversion ${formatX(x, 2, 2)}`