Modify debug_story_variables to append or remove elements accordingly

This commit is contained in:
Iggy 2024-08-17 13:24:22 -03:00
parent e4d7b18bf2
commit fc903d08fb

View file

@ -44,11 +44,16 @@ init python:
var_list = [
"anonscore",
"fangscore",
"current_general_chapter" if not use_ending_chapter else "current_ending_chapter",
"chapter_index",
"ending_route_number",
"ending_chapter_index"
]
if use_ending_chapter:
var_list.remove("chapter_index")
var_list.append("current_ending_chapter")
else:
var_list.append("current_general_chapter")
for item in var_list:
if toggle:
@ -56,3 +61,4 @@ init python:
else:
renpy.unwatch(item)