diff --git a/simalq/__init__.py b/simalq/__init__.py index 69504d9..3273b14 100644 --- a/simalq/__init__.py +++ b/simalq/__init__.py @@ -1,3 +1,5 @@ import hy __version__ = '(unreleased)' + +version_string = f"Infinitesimal Quest 2 + ε version {__version__}" diff --git a/simalq/cmdline.hy b/simalq/cmdline.hy index f20b416..c5a5361 100644 --- a/simalq/cmdline.hy +++ b/simalq/cmdline.hy @@ -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]) @@ -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) diff --git a/simalq/main.hy b/simalq/main.hy index 2b120a0..26bc023 100644 --- a/simalq/main.hy +++ b/simalq/main.hy @@ -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 @@ -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)))