mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-01-22 17:26:20 +01:00
Modify debug_story_variables to append or remove elements accordingly
This commit is contained in:
parent
e4d7b18bf2
commit
fc903d08fb
1 changed files with 7 additions and 1 deletions
|
@ -44,15 +44,21 @@ 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:
|
||||
renpy.watch(item)
|
||||
else:
|
||||
renpy.unwatch(item)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue