From 40174689526b8ce666f9e3c0228269b1724bfdc6 Mon Sep 17 00:00:00 2001 From: neil <78829653+horrible-little-slime@users.noreply.github.com> Date: Wed, 10 Apr 2024 01:44:19 -0400 Subject: [PATCH] resequence `getDifficulty` (#70) --- packages/excavator-projects/utils.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/excavator-projects/utils.ts b/packages/excavator-projects/utils.ts index c1cc52c..d0518b7 100644 --- a/packages/excavator-projects/utils.ts +++ b/packages/excavator-projects/utils.ts @@ -63,9 +63,13 @@ export function getGamedaySeed() { } export function getDifficulty() { - if (myPath() !== Path.none) return "Normal"; - if (!canInteract()) return "Normal (Ronin)"; + // If we're in hardcore, we're in hardcore if (inHardcore()) return "Hardcore"; + // If we aren't in hardcore and we can't access the mall, we're in ronin + if (!canInteract()) return "Normal (Ronin)"; + // If we're out of ronin and not in a path, we're in post-ronin softcore + if (myPath() !== Path.none) return "Normal"; + // If we're out of ronin and not in a path, it's safe to assume we're casual return "Casual"; }