parent
c5c04ff79e
commit
fb7fc5300e
@ -57,7 +57,6 @@ init python hide:
|
|||||||
del persistent.achievements
|
del persistent.achievements
|
||||||
|
|
||||||
init python:
|
init python:
|
||||||
|
|
||||||
class Achievements(object):
|
class Achievements(object):
|
||||||
"""
|
"""
|
||||||
Useless class, can't be rolled out because of pickle and save compatibility.
|
Useless class, can't be rolled out because of pickle and save compatibility.
|
||||||
@ -70,9 +69,7 @@ init python:
|
|||||||
if not renpy.loadable(i.icon):
|
if not renpy.loadable(i.icon):
|
||||||
raise IOError(repr(i.icon))
|
raise IOError(repr(i.icon))
|
||||||
|
|
||||||
@staticmethod
|
status = staticmethod(achievement.has)
|
||||||
def status(id):
|
|
||||||
return achievement.has(id)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def unlock(id, silent=False):
|
def unlock(id, silent=False):
|
||||||
@ -86,9 +83,7 @@ init python:
|
|||||||
renpy.play('sounds/achievement.ogg')
|
renpy.play('sounds/achievement.ogg')
|
||||||
__popup_stack.append(id)
|
__popup_stack.append(id)
|
||||||
|
|
||||||
@staticmethod
|
lock = staticmethod(achievement.clear)
|
||||||
def lock(self, id):
|
|
||||||
achievement.clear(id)
|
|
||||||
|
|
||||||
def achievement_sortfilter(lst, sortby="A-z", filtering=None):
|
def achievement_sortfilter(lst, sortby="A-z", filtering=None):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user