- Implement debug_story_variables function
- Modify initstats label to handle debugging and wingStory variable
This commit is contained in:
@ -7,6 +7,12 @@ label initstats(anon=0, fang=0):
|
||||
# :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
|
||||
|
||||
# label get_ending:
|
||||
@ -32,3 +38,21 @@ init python:
|
||||
return 2 # Doomer
|
||||
else:
|
||||
return 1 # Shooter
|
||||
|
||||
|
||||
def debug_story_variables(toggle=True, use_ending_chapter=False):
|
||||
var_list = [
|
||||
"anonscore",
|
||||
"fangscore",
|
||||
"current_general_chapter" if not use_ending_chapter else "current_ending_chapter",
|
||||
"chapter_index",
|
||||
"ending_route_number",
|
||||
"ending_chapter_index"
|
||||
]
|
||||
|
||||
for item in var_list:
|
||||
if toggle:
|
||||
renpy.watch(item)
|
||||
else:
|
||||
renpy.unwatch(item)
|
||||
|
||||
|
Reference in New Issue
Block a user