Skip to content

Commit

Permalink
fix(catlas): always display 0 if room contains 0 secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Dec 13, 2024
1 parent d5103dc commit 01fad36
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 -> "${unq.foundSecrets ?: "?"}/${secretCount}"
1 -> if (secretCount == 0) "0" else "${unq.foundSecrets ?: "?"}/${secretCount}"
2 -> unq.foundSecrets?.toString() ?: "?"
else -> error("Invalid foundRoomSecrets value")
}
Expand Down

0 comments on commit 01fad36

Please sign in to comment.