From 803e878c3fad6ef7cbb39d1de3bb4644118e1a1f Mon Sep 17 00:00:00 2001 From: Iggy Date: Fri, 30 Aug 2024 14:40:28 -0300 Subject: [PATCH] Remove is_end_of_chapters function --- game/storyline.rpy | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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():