diff --git a/arguments.md b/arguments.md index d3756c9..14e5008 100644 --- a/arguments.md +++ b/arguments.md @@ -122,13 +122,13 @@ Action: store_true --- -### fast-minutes +### fast-seconds -The number of minutes between fast updates +The number of seconds between fast updates -Default: 0.0 +Default: 0 -Type: float +Type: int --- diff --git a/cromulant/args.py b/cromulant/args.py index da5cc77..470d54b 100644 --- a/cromulant/args.py +++ b/cromulant/args.py @@ -22,7 +22,7 @@ class Args: program: str = "" speed: str = "" clean: bool = False - fast_minutes: float = 0.0 + fast_seconds: int = 0 normal_minutes: float = 0.0 slow_minutes: float = 0.0 argdoc: bool = False @@ -54,7 +54,7 @@ class Args: "program", "speed", "clean", - "fast_minutes", + "fast_seconds", "normal_minutes", "slow_minutes", "argdoc", diff --git a/cromulant/argspec.py b/cromulant/argspec.py index 141416b..48f9a9f 100644 --- a/cromulant/argspec.py +++ b/cromulant/argspec.py @@ -144,9 +144,9 @@ class ArgSpec: ) ArgSpec.add_argument( - "fast_minutes", - type=float, - info="The number of minutes between fast updates", + "fast_seconds", + type=int, + info="The number of seconds between fast updates", ) ArgSpec.add_argument( diff --git a/cromulant/config.py b/cromulant/config.py index 5b16cee..111a663 100644 --- a/cromulant/config.py +++ b/cromulant/config.py @@ -24,7 +24,7 @@ class Config: image_size: int = 80 space_1: int = 18 max_updates: int = 300 - fast_minutes: float = 5 / 60 + fast_seconds: int = 5 normal_minutes: float = 1 slow_minutes: float = 5 font_size: int = 20 diff --git a/cromulant/game.py b/cromulant/game.py index 7d92fc2..9c8c944 100644 --- a/cromulant/game.py +++ b/cromulant/game.py @@ -349,7 +349,7 @@ class Game: speed = Settings.speed if speed == "fast": - minutes = Args.fast_minutes or Config.fast_minutes + minutes = (Args.fast_seconds or Config.fast_seconds) / 60 elif speed == "normal": minutes = Args.normal_minutes or Config.normal_minutes elif speed == "slow": diff --git a/cromulant/manifest.json b/cromulant/manifest.json index 8917f4e..8e14377 100644 --- a/cromulant/manifest.json +++ b/cromulant/manifest.json @@ -1,5 +1,5 @@ { - "version": "3.0.0", + "version": "3.3.0", "title": "Cromulant", "program": "cromulant", "author": "madprops", diff --git a/cromulant/window.py b/cromulant/window.py index f0d662a..8543f9b 100644 --- a/cromulant/window.py +++ b/cromulant/window.py @@ -282,7 +282,7 @@ class Window: Window.speed = SpecialComboBox() tooltip = "The speed of the updates\n" - fast = Args.fast_minutes or Config.fast_minutes + fast = (Args.fast_seconds or Config.fast_seconds) / 60 tooltip += f"Fast: {Utils.get_timeword(fast)}\n" normal = Args.normal_minutes or Config.normal_minutes