mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-01-22 09:16:56 +01:00
- Move variables out of utility
- Add increase_points functions
This commit is contained in:
parent
fb64284d84
commit
2d793f86af
1 changed files with 14 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue