You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and the problem is in the .root(3) after the .log10, which ends up calculating (-2.6340821214933543 ^ (1/3)). This technically does have a real root of -1.3810511702377193, as (-x)^(1/3) = -(x^(1/3)).
Wraith buyMax (spotted while going into The Brain in an end-game save):
player.ps.souls is zero, so this calculates (-1.1494252873563218 ^ (1/4)). This has no real roots.
There might be more instances that surface if you're not at end-game.
The easiest way of resolving this problem is to call .abs() before calling .root or .pow, as that should keep the behaviour identical to the currently used version of break_eternity.js if break_eternity.js is updated (and is a no-op if break_eternity.js isn't updated). However, in some cases a .max call might be more appropriate.
The text was updated successfully, but these errors were encountered:
A bugfix in break_eternity.js (Patashu/break_eternity.js@8b6efe7) for Patashu/break_eternity.js#43 is causing a few instances of NaNs in my post-game save when cherry-picked into Prestige Tree Rewritten:
ba12 softcap:
Prestige-Tree/js/sc.js
Lines 273 to 280 in cec9198
is causing errors here:
Prestige-Tree/js/sc.js
Lines 386 to 387 in cec9198
specifically this portion:
start.log10()
is -0.12493873660829993, so this calculates (-0.12493873660829993 ^ 0.25), causing a NaN. This has no real roots.nextMinibot:
Prestige-Tree/js/layers.js
Lines 8271 to 8274 in cec9198
specifically, this portion:
At one point in time:
tmp.r.totalMinibots = 1
player.r.grownMinibots = 627
tmp.r.reduceMinibotReqMult = 1
so this calculates (-625 ^ 1.5), causing a NaN. This has no real roots.
The Brain "next":
Prestige-Tree/js/layers.js
Line 7874 in cec9198
That's a lot of code. Formatted using prettier, it looks like:
and the problem is in the
.root(3)
after the.log10
, which ends up calculating (-2.6340821214933543 ^ (1/3)). This technically does have a real root of -1.3810511702377193, as (-x)^(1/3) = -(x^(1/3)).Wraith buyMax (spotted while going into The Brain in an end-game save):
Prestige-Tree/js/layers.js
Lines 5003 to 5006 in cec9198
specifically this portion:
player.ps.souls
is zero, so this calculates (-1.1494252873563218 ^ (1/4)). This has no real roots.There might be more instances that surface if you're not at end-game.
The easiest way of resolving this problem is to call
.abs()
before calling.root
or.pow
, as that should keep the behaviour identical to the currently used version of break_eternity.js if break_eternity.js is updated (and is a no-op if break_eternity.js isn't updated). However, in some cases a.max
call might be more appropriate.The text was updated successfully, but these errors were encountered: