From 2d793f86affcfe7057478326ad5e8a2043b80a48 Mon Sep 17 00:00:00 2001 From: Iggy Date: Tue, 20 Aug 2024 22:09:04 -0300 Subject: [PATCH] - Move variables out of utility - Add increase_points functions --- game/utility.rpy | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/game/utility.rpy b/game/utility.rpy index e7a1b6d..1d57ace 100644 --- a/game/utility.rpy +++ b/game/utility.rpy @@ -9,15 +9,6 @@ label initstats(anon=0, fang=0): $ fangscore = fang $ wingStory = False - # Chapter related variables - $ chapter_list_length = len(chapter_list) - 1 - $ chapter_list_index = 0 # Index number for the current position of the chapter_list array - $ current_chapter = chapter_list[chapter_list_index] # Store the name of the label as a string - - # Ending related variables - $ ending_route_number = None - $ is_end_reached = False - if persistent.enable_debug_scores: $ debug_story_variables(False) $ debug_story_variables(True) @@ -54,3 +45,17 @@ init python: renpy.unwatch(item) + def increase_anon_points(): + global anonscore, lock_scores + + if not lock_scores: + anonscore += 1 + + + def inscrease_fang_points(): + global fangscore, lock_scores + + if not lock_scores: + fangscore += 1 + +