mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-26 22:21:56 +00:00
Merge branch 'master' of https://github.com/IvarK/HahaSlabWontGetHere into omsi_cleanup
This commit is contained in:
commit
14ed09f597
@ -18,9 +18,8 @@ function canCrunch() {
|
||||
// Used to prevent galaxies and dimboosts when you can crunch (pre-break and in challenges only)
|
||||
function disallowOtherResets() {
|
||||
const challenge = NormalChallenge.current || InfinityChallenge.current;
|
||||
if (challenge !== undefined) return true;
|
||||
const goal = challenge === undefined ? Decimal.MAX_NUMBER : challenge.goal;
|
||||
if (!player.break && player.antimatter.gte(goal)) return true;
|
||||
if ((!player.break || challenge !== undefined) && player.antimatter.gte(goal)) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user