Skip to content

Commit

Permalink
fix save importing and continuum display
Browse files Browse the repository at this point in the history
  • Loading branch information
circle-gon authored Aug 27, 2024
1 parent 17392e5 commit fb0bc09
Show file tree
Hide file tree
Showing 3 changed files with 263 additions and 258 deletions.
1 change: 1 addition & 0 deletions src/core/atom.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function skipToNewContent() {
GameStorage.import(save);
});
// Dear god hopefully this should fix it now
player.records.thisInfinity.maxAM = Decimal.MAX_VALUE
collapse();
}

Expand Down
10 changes: 7 additions & 3 deletions src/core/dimensions/time-dimension.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ class TimeDimensionState extends DimensionState {
}

// We handle exceptions here just because it's easier to do so
get continuumAmount() {
if (!TimeDimensions.continuumActive) return 0;
get continuumValue() {
if (RealityUpgrade(13).isLockingMechanics && this._tier > 4) return 0;
// TODO: better handling of IM upgrade 15?
if (ImaginaryUpgrade(15).isLockingMechanics && EternityChallenge(7).completions > 0) return 0;
Expand All @@ -237,6 +236,11 @@ class TimeDimensionState extends DimensionState {
return val;
}

get continuumAmount() {
if (!TimeDimensions.continuumActive) return 0;
return Math.floor(this.continuumValue);
}

get totalAmount() {
return this.amount.max(this.continuumAmount);
}
Expand All @@ -254,7 +258,7 @@ class TimeDimensionState extends DimensionState {
);

const dim = TimeDimension(tier);
const realBought = TimeDimensions.continuumActive ? dim.continuumAmount : dim.bought;
const realBought = TimeDimensions.continuumActive ? dim.continuumValue : dim.bought;
const bought = tier === 8 ? Math.clampMax(realBought, 1e8) : realBought;
mult += bought * dim.powerMultiplier.log10();

Expand Down
Loading

0 comments on commit fb0bc09

Please sign in to comment.