Skip to content

Commit

Permalink
fix(catlas): display secrets in 0-expected rooms if non-zero
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Dec 13, 2024
1 parent 5140177 commit 1ba3912
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 1ba3912

Please sign in to comment.