forked from Cavemanon/SnootGame
Change call order for reset_debug_scores function
This commit is contained in:
@ -50,6 +50,7 @@ init python:
|
|||||||
|
|
||||||
if is_end_of_chapters():
|
if is_end_of_chapters():
|
||||||
ending_route_number = get_ending()
|
ending_route_number = get_ending()
|
||||||
|
reset_debug_scores()
|
||||||
next_ending_chapter()
|
next_ending_chapter()
|
||||||
# return
|
# return
|
||||||
|
|
||||||
@ -73,8 +74,6 @@ init python:
|
|||||||
# the ending_routes dictionary
|
# the ending_routes dictionary
|
||||||
current_ending_list: list[str] = ending_routes[ending_route_number]
|
current_ending_list: list[str] = ending_routes[ending_route_number]
|
||||||
|
|
||||||
reset_debug_scores()
|
|
||||||
|
|
||||||
if ending_chapter_index < len(current_ending_list):
|
if ending_chapter_index < len(current_ending_list):
|
||||||
# Stores the label name from the current_ending_list array in the item variable
|
# Stores the label name from the current_ending_list array in the item variable
|
||||||
current_ending_chapter = current_ending_list[ending_chapter_index]
|
current_ending_chapter = current_ending_list[ending_chapter_index]
|
||||||
@ -91,10 +90,6 @@ init python:
|
|||||||
|
|
||||||
|
|
||||||
def reset_debug_scores():
|
def reset_debug_scores():
|
||||||
global current_general_chapter
|
|
||||||
|
|
||||||
current_general_chapter = None
|
|
||||||
|
|
||||||
if config.developer and persistent.enable_debug_scores:
|
if config.developer and persistent.enable_debug_scores:
|
||||||
debug_story_variables(False)
|
debug_story_variables(False)
|
||||||
debug_story_variables(True, True)
|
debug_story_variables(True, True)
|
||||||
|
Reference in New Issue
Block a user