mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-12 23:23:20 +00:00
Fix some recent prestige subtab bugs
This commit is contained in:
parent
2d0d40c230
commit
af378c2d56
@ -111,6 +111,7 @@ export default {
|
||||
|
||||
if (this.hasChallenges) cells.push(this.challengeText(run));
|
||||
for (let i = 0; i < this.layer.extra?.length && cells.length <= this.longestRow; i++) {
|
||||
if (!this.layer.showExtra[i]()) continue;
|
||||
const formatFn = this.layer.formatExtra[i];
|
||||
const val = run[i + 5] ?? 0;
|
||||
if (this.layer.allowRate[i] && this.showRate) cells.push(this.rateText(run, run[i + 5]));
|
||||
@ -129,6 +130,7 @@ export default {
|
||||
if (this.hasChallenges) cells.push("Challenge");
|
||||
|
||||
for (let index = 0; index < this.layer.extra?.length && cells.length <= this.longestRow; index++) {
|
||||
if (!this.layer.showExtra[index]()) continue;
|
||||
cells.push((this.layer.allowRate[index] && this.showRate)
|
||||
? this.layer.rateString[index]
|
||||
: this.layer.extra[index]);
|
||||
@ -256,6 +258,7 @@ export default {
|
||||
.c-row-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.c-empty-row {
|
||||
|
@ -18,6 +18,7 @@ export default {
|
||||
condition: () => PlayerProgress.realityUnlocked(),
|
||||
getRuns: () => player.records.recentRealities,
|
||||
extra: ["Glyph Level", "Relic Shards"],
|
||||
showExtra: [() => true, () => TeresaUnlocks.effarig.canBeApplied],
|
||||
formatExtra: [x => formatInt(x), x => format(x, 2)],
|
||||
allowRate: [false, true],
|
||||
rateString: ["", "Relic Shard Rate"],
|
||||
@ -29,6 +30,7 @@ export default {
|
||||
condition: () => PlayerProgress.eternityUnlocked(),
|
||||
getRuns: () => player.records.recentEternities,
|
||||
extra: ["Tachyon Particles"],
|
||||
showExtra: [() => PlayerProgress.dilationUnlocked()],
|
||||
formatExtra: [x => format(x, 2)],
|
||||
allowRate: [false],
|
||||
},
|
||||
|
@ -12,13 +12,6 @@ function giveEternityRewards(auto) {
|
||||
Tab.dimensions.time.show();
|
||||
}
|
||||
|
||||
addEternityTime(
|
||||
player.records.thisEternity.time,
|
||||
player.records.thisEternity.realTime,
|
||||
gainedEternityPoints(),
|
||||
newEternities
|
||||
);
|
||||
|
||||
Currency.eternities.add(newEternities);
|
||||
|
||||
if (EternityChallenge.isRunning) {
|
||||
@ -37,6 +30,13 @@ function giveEternityRewards(auto) {
|
||||
respecTimeStudies(auto);
|
||||
}
|
||||
|
||||
addEternityTime(
|
||||
player.records.thisEternity.time,
|
||||
player.records.thisEternity.realTime,
|
||||
gainedEternityPoints(),
|
||||
newEternities
|
||||
);
|
||||
|
||||
player.records.thisReality.bestEternitiesPerMs = player.records.thisReality.bestEternitiesPerMs.clampMin(
|
||||
newEternities.div(Math.clampMin(33, player.records.thisEternity.realTime))
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user