Skip to content

Commit

Permalink
Show the game version in victory-screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodiologist committed Feb 12, 2024
1 parent 7612908 commit 49cade8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions simalq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import hy

__version__ = '(unreleased)'

version_string = f"Infinitesimal Quest 2 + ε version {__version__}"
3 changes: 1 addition & 2 deletions simalq/cmdline.hy
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
fractions [Fraction :as f/]
re
hyrule [parse-args]
simalq [__version__]
simalq [version-string]
simalq.un-iq [iq-quest iq-quests-raw]
simalq.quest-definition [builtin-quests])

Expand All @@ -23,7 +23,6 @@


(defn handle-cmdline-args [args]
(setv version-string f"Infinitesimal Quest 2 + ε version {__version__}")
(setv p (parse-args :args args
:prog "simalq"
:description (+ version-string "\n" url)
Expand Down
5 changes: 4 additions & 1 deletion simalq/main.hy
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
(import
time [sleep]
contextlib [contextmanager]
simalq [version-string]
simalq.strings
simalq.util [CommandError StatusEffect message-queue msg DamageType GameOverException menu-letters]
simalq.color :as color
Expand Down Expand Up @@ -319,4 +320,6 @@
"You've escaped the dungeon and returned home to your kingdom, safe and sound. Congratulations!\n"
"\n"
f"Score: {G.score :10,}\n"
f"Turn: {G.turn-n :10,}")))
f"Turn: {G.turn-n :10,}\n"
"\n"
version-string)))

0 comments on commit 49cade8

Please sign in to comment.