Skip to content

Commit

Permalink
Added missing check_if_exist method
Browse files Browse the repository at this point in the history
  • Loading branch information
saber-nyan committed Jan 14, 2018
1 parent bdd9ef9 commit a9a315c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions game/definitions.rpy
Expand Up @@ -20,6 +20,11 @@ init python:
def delete_all_saves():
for savegame in renpy.list_saved_games(fast=True):
renpy.unlink_save(savegame)
def check_if_exist(name):
try:
return getattr(persistent, name) == "restored"
except:
return True
def delete_character(name): # TO!DONE: character fix!
setattr(persistent, name, "deleted")
renpy.save_persistent()
Expand Down

0 comments on commit a9a315c

Please sign in to comment.