From 99624280cab8728c5ac4f097b82be18ef47c0f21 Mon Sep 17 00:00:00 2001 From: stellar-demesne <54080611+stellar-demesne@users.noreply.github.com> Date: Sat, 8 Mar 2025 05:38:35 -0800 Subject: [PATCH 1/2] fix dire (unreachable?) universe crossover bug in void map dropping logic --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index e8dea497..88113b70 100644 --- a/main.js +++ b/main.js @@ -6620,10 +6620,10 @@ function checkVoidMap() { if (game.global.universe == 2 && game.global.totalRadPortals < 1) return; var max = getVoidMaxLevel(); if (getLastPortal() != -1){ - if (max < game.global.world){ + if (max < game.global.world){ // this check will always return false; upon reaching new HZE, the game calls setVoidMaxLevel with game.global.world, so max **has** to be greater or equal to game.global.world. setVoidMaxLevel(game.global.world); if ((getLastPortal() + 25) < game.global.world) - setVoidMaxLevel(getHighestLevelCleared(false, true)); + setVoidMaxLevel(getHighestLevelCleared(true, true)); } if ((max - getLastPortal()) < 25) { max = getLastPortal(); @@ -20597,4 +20597,4 @@ function keyTooltip(keyEvent, what, isItIn, event, textString, attachFunction, n else tooltip(what, isItIn, "screenRead", ...Object.values(arguments).slice(3,)) } -} \ No newline at end of file +} From 2d7b40eb65f161091364ac46f7efd36b94c28a8f Mon Sep 17 00:00:00 2001 From: stellar-demesne <54080611+stellar-demesne@users.noreply.github.com> Date: Sat, 8 Mar 2025 05:54:37 -0800 Subject: [PATCH 2/2] de-comment because NooNoo told me to. --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 88113b70..09059e89 100644 --- a/main.js +++ b/main.js @@ -6620,7 +6620,7 @@ function checkVoidMap() { if (game.global.universe == 2 && game.global.totalRadPortals < 1) return; var max = getVoidMaxLevel(); if (getLastPortal() != -1){ - if (max < game.global.world){ // this check will always return false; upon reaching new HZE, the game calls setVoidMaxLevel with game.global.world, so max **has** to be greater or equal to game.global.world. + if (max < game.global.world){ setVoidMaxLevel(game.global.world); if ((getLastPortal() + 25) < game.global.world) setVoidMaxLevel(getHighestLevelCleared(true, true));