Remove redundant 'initstats' label

This commit is contained in:
Iggy 2024-08-22 22:04:44 -03:00
parent c5ea9c9cb5
commit b65ed32b14
2 changed files with 9 additions and 18 deletions

View file

@ -323,7 +323,7 @@ transform scloserleft:
label start:
call initstats(anon = 0, fang = 0) from _call_initstats
$ toggle_debug()
pause 1.0

View file

@ -1,21 +1,5 @@
## Utility functions for game setup, debugging etc.
label initstats(anon=0, fang=0):
# Sets various game-related global variables
# :param int anon: Anon's score
# :param int fang: Fang's score
# :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
init python:
def get_ending():
if anonscore >= 4 and fangscore >= 4 and wingStory:
@ -35,7 +19,8 @@ init python:
"current_chapter",
"chapter_list_length",
"chapter_list_index",
"ending_route_number"
"ending_route_number",
"is_end_reached"
]
for item in var_list:
@ -58,4 +43,10 @@ init python:
if not lock_scores:
fangscore += 1
def toggle_debug():
if persistent.enable_debug_scores:
debug_story_variables(False)
debug_story_variables(True)