mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-08 18:28:49 +01:00
Reset story vars when chapter select initializes
This commit is contained in:
parent
6b93689456
commit
c8b5c68649
1 changed files with 12 additions and 5 deletions
|
@ -42,10 +42,17 @@ define ending_4_tuple = [
|
||||||
|
|
||||||
|
|
||||||
label chapter_select:
|
label chapter_select:
|
||||||
$ quick_menu = False # Hides bottom quick menu UI
|
python:
|
||||||
|
quick_menu = False # Hides bottom quick menu UI
|
||||||
|
|
||||||
$ anonscore = 0
|
# Reset story vars. Not that it terribly matters.
|
||||||
$ fangscore = 0
|
anonscore = 0
|
||||||
|
fangscore = 0
|
||||||
|
wingStory = False
|
||||||
|
|
||||||
|
chapter_list = base_chapter_list
|
||||||
|
chapter_list_index = 0
|
||||||
|
chapter_list_length = get_chapter_list_length()
|
||||||
|
|
||||||
camera:
|
camera:
|
||||||
yanchor 0.0 xanchor 0.0 rotate None zoom 1.0
|
yanchor 0.0 xanchor 0.0 rotate None zoom 1.0
|
||||||
|
@ -83,14 +90,14 @@ label chapter_select_go_back:
|
||||||
|
|
||||||
window auto hide
|
window auto hide
|
||||||
|
|
||||||
$ select_chapter()
|
$ chapter_select()
|
||||||
|
|
||||||
|
|
||||||
init python:
|
init python:
|
||||||
|
|
||||||
# Some of this would be much easier to do if we could just reorganize how the chapters are laid out, but breaking translations is way more of a hassle to fix
|
# Some of this would be much easier to do if we could just reorganize how the chapters are laid out, but breaking translations is way more of a hassle to fix
|
||||||
|
|
||||||
def select_chapter():
|
def chapter_select():
|
||||||
global current_chapter, quick_menu, ending_route_number, chapter_list_index, chapter_list, ending_chapters_determined, chapter_list_length
|
global current_chapter, quick_menu, ending_route_number, chapter_list_index, chapter_list, ending_chapters_determined, chapter_list_length
|
||||||
|
|
||||||
selected_label = display_chapter_choices() # Returns a label of the chapter to jump to
|
selected_label = display_chapter_choices() # Returns a label of the chapter to jump to
|
||||||
|
|
Loading…
Reference in a new issue