From 1ba391231ad44d327d0ee441d4f7a545f317e972 Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Fri, 13 Dec 2024 15:30:53 -0500 Subject: [PATCH] fix(catlas): display secrets in 0-expected rooms if non-zero --- .../features/impl/dungeons/catlas/core/CatlasElement.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/core/CatlasElement.kt b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/core/CatlasElement.kt index 96a612813..322ebe094 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/core/CatlasElement.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/core/CatlasElement.kt @@ -163,7 +163,7 @@ object CatlasElement : GuiElement(name = "Dungeon Map", x = 0, y = 0) { val secretText = when (CatlasConfig.foundRoomSecrets) { 0 -> secretCount.toString() - 1 -> if (secretCount == 0) "0" else "${unq.foundSecrets ?: "?"}/${secretCount}" + 1 -> if (secretCount == 0 && (unq.foundSecrets ?: 0) == 0) "0" else "${unq.foundSecrets ?: "?"}/${secretCount}" 2 -> unq.foundSecrets?.toString() ?: "?" else -> error("Invalid foundRoomSecrets value") }