mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-02 06:46:34 +01:00
Remove is_end_of_chapters function
This commit is contained in:
parent
f38c53776c
commit
803e878c3f
1 changed files with 1 additions and 5 deletions
|
@ -16,7 +16,7 @@ init python:
|
||||||
global chapter_list_index, current_chapter, ending_route_number
|
global chapter_list_index, current_chapter, ending_route_number
|
||||||
|
|
||||||
# Add check "is_end_reached" to have this if statement be executed only once when finishing the general chapters
|
# Add check "is_end_reached" to have this if statement be executed only once when finishing the general chapters
|
||||||
if not is_end_reached and is_end_of_chapters():
|
if not is_end_reached and chapter_list_index >= chapter_list_length:
|
||||||
process_ending()
|
process_ending()
|
||||||
|
|
||||||
if chapter_list_index < chapter_list_length:
|
if chapter_list_index < chapter_list_length:
|
||||||
|
@ -27,10 +27,6 @@ init python:
|
||||||
end_story()
|
end_story()
|
||||||
|
|
||||||
|
|
||||||
def is_end_of_chapters():
|
|
||||||
return chapter_list_index >= chapter_list_length
|
|
||||||
|
|
||||||
|
|
||||||
def process_ending():
|
def process_ending():
|
||||||
global ending_route_number
|
global ending_route_number
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue