From 719f08ba2433663df04234ba9f7fafe710e61ac7 Mon Sep 17 00:00:00 2001 From: Iggy Date: Fri, 30 Aug 2024 15:18:00 -0300 Subject: [PATCH] Make set_scores function more readable --- game/src/chapter_select.rpy | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/game/src/chapter_select.rpy b/game/src/chapter_select.rpy index e442338..1a2ace2 100644 --- a/game/src/chapter_select.rpy +++ b/game/src/chapter_select.rpy @@ -91,6 +91,9 @@ label reset_chapter_list: label chapter_select: $ quick_menu = False + $ anon_points = 0 + $ fang_points = 0 + stop sound stop music fadeout 2 scene black with dissolve @@ -99,17 +102,21 @@ label chapter_select: "Initialize scores:" "Ending 1": - $ set_scores(0, 0) + pass # Since points are already initialized at 0 "Ending 2": - $ set_scores(0, 4) + # anon 0 + $ fang_points = 4 "Ending 3": - $ set_scores(4, 0) + $ anon_points = 4 + # fang 0 "Ending 4": - $ set_scores(4, 4) + $ anon_points = 4 + $ fang_points = 4 "Exit to main menu": scene black with dissolve return - + + $ set_scores(anon_points, fang_points) $ is_end_reached = False # Reset this for when the tool is used more than once window hide