mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-08 18:28:49 +01:00
Remove redundant 'initstats' label
This commit is contained in:
parent
c5ea9c9cb5
commit
b65ed32b14
2 changed files with 9 additions and 18 deletions
|
@ -323,7 +323,7 @@ transform scloserleft:
|
||||||
|
|
||||||
label start:
|
label start:
|
||||||
|
|
||||||
call initstats(anon = 0, fang = 0) from _call_initstats
|
$ toggle_debug()
|
||||||
|
|
||||||
pause 1.0
|
pause 1.0
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,5 @@
|
||||||
## Utility functions for game setup, debugging etc.
|
## 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:
|
init python:
|
||||||
def get_ending():
|
def get_ending():
|
||||||
if anonscore >= 4 and fangscore >= 4 and wingStory:
|
if anonscore >= 4 and fangscore >= 4 and wingStory:
|
||||||
|
@ -35,7 +19,8 @@ init python:
|
||||||
"current_chapter",
|
"current_chapter",
|
||||||
"chapter_list_length",
|
"chapter_list_length",
|
||||||
"chapter_list_index",
|
"chapter_list_index",
|
||||||
"ending_route_number"
|
"ending_route_number",
|
||||||
|
"is_end_reached"
|
||||||
]
|
]
|
||||||
|
|
||||||
for item in var_list:
|
for item in var_list:
|
||||||
|
@ -59,3 +44,9 @@ init python:
|
||||||
fangscore += 1
|
fangscore += 1
|
||||||
|
|
||||||
|
|
||||||
|
def toggle_debug():
|
||||||
|
if persistent.enable_debug_scores:
|
||||||
|
debug_story_variables(False)
|
||||||
|
debug_story_variables(True)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue