From ebc1ec8c7c26ba111d8e6b3be5566c16ffaf875a Mon Sep 17 00:00:00 2001 From: Kodi Arfer Date: Fri, 1 Mar 2024 15:20:26 -0500 Subject: [PATCH] Fixed an off-by-one error in counting levels. --- simalq/display.hy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simalq/display.hy b/simalq/display.hy index 1f4cada..fc7a52c 100644 --- a/simalq/display.hy +++ b/simalq/display.hy @@ -333,9 +333,9 @@ interface elements as lists of `ColorChar`s." (when G.time-left (.format "⏲ {:,} (→ {})" G.time-left - (if (< G.level.next-level (len G.quest.levels)) - (.format "DL {:,}" G.level.next-level) - "victory"))) + (if (> G.level.next-level (len G.quest.levels)) + "victory" + (.format "DL {:,}" G.level.next-level)))) (when G.player.keys (.format "⚷ {}" G.player.keys)) (when G.player.magic-arrows (+