diff --git a/game/storyline.rpy b/game/storyline.rpy index 991e14b..c213c99 100644 --- a/game/storyline.rpy +++ b/game/storyline.rpy @@ -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():