From a9740ff99e01f8f46ccbefa1366bbd05421af2b6 Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Sun, 14 May 2023 18:15:38 +0100 Subject: [PATCH] Version bump * Added staging version support for version_float func * Bumped version --- game/scripts/options.rpy | 2 +- game/scripts/utility/updater.rpy | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/game/scripts/options.rpy b/game/scripts/options.rpy index 134206c9..9799d58b 100644 --- a/game/scripts/options.rpy +++ b/game/scripts/options.rpy @@ -35,7 +35,7 @@ define config.developer = "auto" define config.console = True # Game version and naming -define config.version = "1.45.0" +define config.version = "1.45.0.1" define compatible_version = 1.45 define config.name = "Witch Trainer Silver" define prerelease = True# if not config.developer else False diff --git a/game/scripts/utility/updater.rpy b/game/scripts/utility/updater.rpy index 4948a6f1..ebdc8557 100644 --- a/game/scripts/utility/updater.rpy +++ b/game/scripts/utility/updater.rpy @@ -64,8 +64,8 @@ init python: renpy.set_return_stack(("main_room",)) def version_float(): - control, major, minor = config.version.split(" ")[0].split(".") - return float("{}.{}{}".format(control, major, minor)) + control, major, *minor = config.version.split(" ")[0].split(".") + return float("{}.{}{}".format(control, major, "".join(minor))) def version_patch(): if renpy.is_init_phase():