Remove is_end_of_chapters function

This commit is contained in:
Iggy 2024-08-30 14:40:28 -03:00
parent f38c53776c
commit 803e878c3f

View file

@ -16,7 +16,7 @@ init python:
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
if not is_end_reached and is_end_of_chapters():
if not is_end_reached and chapter_list_index >= chapter_list_length:
process_ending()
if chapter_list_index < chapter_list_length:
@ -25,10 +25,6 @@ init python:
renpy.call(current_chapter)
else:
end_story()
def is_end_of_chapters():
return chapter_list_index >= chapter_list_length
def process_ending():