forked from Cavemanon/SnootGame
- Move variables out of utility
- Add increase_points functions
This commit is contained in:
@ -9,15 +9,6 @@ label initstats(anon=0, fang=0):
|
|||||||
$ fangscore = fang
|
$ fangscore = fang
|
||||||
$ wingStory = False
|
$ 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:
|
if persistent.enable_debug_scores:
|
||||||
$ debug_story_variables(False)
|
$ debug_story_variables(False)
|
||||||
$ debug_story_variables(True)
|
$ debug_story_variables(True)
|
||||||
@ -54,3 +45,17 @@ init python:
|
|||||||
renpy.unwatch(item)
|
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
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user