SnootGame/game/src/utility.rpy
Map 73328cb2e1 final overhaul that should make everything work
Redid chapter names, sourced from the source snoot script
Tightened up transitions in chapter select
made all get_ending() checks use ending_route_number instead.
2024-10-02 11:16:26 -05:00

41 lines
1.1 KiB
Text

## Utility functions for game setup, debugging etc.
init python:
def get_ending():
if ending_route_number == None:
if anonscore >= 4 and fangscore >= 4 and wingStory:
return 4 # Golden
elif anonscore >= 3 and fangscore <= 4:
return 3 # Tradwife
elif anonscore <= 3 and fangscore >= 3:
return 2 # Doomer
else:
return 1 # Shooter
else:
return ending_route_number
def debug_story_variables(toggle=True):
var_list = [
"anonscore",
"fangscore",
"current_chapter",
"chapter_list_length",
"chapter_list_index",
"ending_route_number",
"ending_chapters_determined"
]
for item in var_list:
if toggle:
renpy.watch(item)
else:
renpy.unwatch(item)
def toggle_debug():
if persistent.enable_debug_scores:
debug_story_variables(False)
debug_story_variables(True)