Version bump

* Added staging version support for version_float func
* Bumped version
This commit is contained in:
LoafyLemon 2023-05-14 18:15:38 +01:00
parent babbc11cf0
commit a9740ff99e
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ define config.developer = "auto"
define config.console = True define config.console = True
# Game version and naming # Game version and naming
define config.version = "1.45.0" define config.version = "1.45.0.1"
define compatible_version = 1.45 define compatible_version = 1.45
define config.name = "Witch Trainer Silver" define config.name = "Witch Trainer Silver"
define prerelease = True# if not config.developer else False define prerelease = True# if not config.developer else False

View File

@ -64,8 +64,8 @@ init python:
renpy.set_return_stack(("main_room",)) renpy.set_return_stack(("main_room",))
def version_float(): def version_float():
control, major, minor = config.version.split(" ")[0].split(".") control, major, *minor = config.version.split(" ")[0].split(".")
return float("{}.{}{}".format(control, major, minor)) return float("{}.{}{}".format(control, major, "".join(minor)))
def version_patch(): def version_patch():
if renpy.is_init_phase(): if renpy.is_init_phase():