Skip to content

Commit

Permalink
Fixed an off-by-one error in counting levels.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodiologist committed Mar 1, 2024
1 parent e06991a commit ebc1ec8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions simalq/display.hy
Original file line number Diff line number Diff line change
Expand Up @@ -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 (+
Expand Down

0 comments on commit ebc1ec8

Please sign in to comment.