diff --git a/game/script.rpy b/game/script.rpy index 1ef0a57..641af18 100644 --- a/game/script.rpy +++ b/game/script.rpy @@ -323,7 +323,7 @@ transform scloserleft: label start: - call initstats(anon = 0, fang = 0) from _call_initstats + $ toggle_debug() pause 1.0 diff --git a/game/utility.rpy b/game/utility.rpy index 8687947..313ab33 100644 --- a/game/utility.rpy +++ b/game/utility.rpy @@ -1,21 +1,5 @@ ## Utility functions for game setup, debugging etc. -label initstats(anon=0, fang=0): - # Sets various game-related global variables - # :param int anon: Anon's score - # :param int fang: Fang's score - # :param bool trad: Tradwife ending flag - $ anonscore = anon - $ fangscore = fang - $ wingStory = False - - if persistent.enable_debug_scores: - $ debug_story_variables(False) - $ debug_story_variables(True) - - return - - init python: def get_ending(): if anonscore >= 4 and fangscore >= 4 and wingStory: @@ -35,7 +19,8 @@ init python: "current_chapter", "chapter_list_length", "chapter_list_index", - "ending_route_number" + "ending_route_number", + "is_end_reached" ] for item in var_list: @@ -58,4 +43,10 @@ init python: if not lock_scores: fangscore += 1 + + def toggle_debug(): + if persistent.enable_debug_scores: + debug_story_variables(False) + debug_story_variables(True) +