mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-10 22:21:56 +00:00
Merge pull request #2404 from IvarK/resolve-2403
This commit is contained in:
commit
f0343fed0a
@ -6,8 +6,9 @@ GameDatabase.eternity.timeStudies.dilation = [
|
||||
description: "Unlock Time Dilation",
|
||||
cost: 5000,
|
||||
requirement: () => {
|
||||
const ttRequirement = Currency.timeTheorems.max.gte(TimeStudy.dilation.totalTimeTheoremRequirement);
|
||||
if (Ra.has(RA_UNLOCKS.AUTO_DILATION_UNLOCK) &&
|
||||
Currency.timeTheorems.max.gte(TimeStudy.dilation.totalTimeTheoremRequirement) &&
|
||||
ttRequirement &&
|
||||
!isInCelestialReality() && !Pelle.isDoomed
|
||||
) {
|
||||
return true;
|
||||
@ -15,7 +16,6 @@ GameDatabase.eternity.timeStudies.dilation = [
|
||||
const tsRequirement = [231, 232, 233, 234].some(id => TimeStudy(id).isBought);
|
||||
if (Perk.bypassECDilation.isBought && !Pelle.isDoomed) return tsRequirement;
|
||||
const ecRequirement = EternityChallenge(11).isFullyCompleted && EternityChallenge(12).isFullyCompleted;
|
||||
const ttRequirement = Currency.timeTheorems.max.gte(TimeStudy.dilation.totalTimeTheoremRequirement);
|
||||
return tsRequirement && ecRequirement && ttRequirement;
|
||||
}
|
||||
},
|
||||
|
@ -28,7 +28,7 @@ export default {
|
||||
return this.study.id;
|
||||
},
|
||||
requirement() {
|
||||
if (this.id === 1 && (Pelle.isDoomed && !PlayerProgress.dilationUnlocked())) {
|
||||
if (this.id === 1) {
|
||||
return `Requirement: ${formatInt(5)} EC11 and EC12 completions
|
||||
and ${formatInt(this.maxTT)}/${formatInt(TimeStudy.dilation.totalTimeTheoremRequirement)}
|
||||
total Time Theorems`;
|
||||
@ -44,10 +44,10 @@ export default {
|
||||
update() {
|
||||
if (this.id === 1) {
|
||||
this.maxTT.copyFrom(Currency.timeTheorems.max);
|
||||
this.showRequirement = !this.study.isBought && !Perk.bypassECDilation.isBought || Pelle.isDoomed;
|
||||
this.showRequirement = !this.study.isBought && (!Perk.bypassECDilation.isBought || Pelle.isDoomed);
|
||||
}
|
||||
if (this.id === 6 && !Pelle.isDoomed) {
|
||||
this.showRequirement = true;
|
||||
if (this.id === 6) {
|
||||
this.showRequirement = !Pelle.isDoomed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user