From 750d8dff4df83b7d8e7d2c63e9e25885da5f8fa9 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Fri, 29 Mar 2024 21:04:30 +0100 Subject: [PATCH] hotfix --- game/scripts/interface/achievements.rpy | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/game/scripts/interface/achievements.rpy b/game/scripts/interface/achievements.rpy index 0d197bda..3e6f966c 100644 --- a/game/scripts/interface/achievements.rpy +++ b/game/scripts/interface/achievements.rpy @@ -57,7 +57,6 @@ init python hide: del persistent.achievements init python: - class Achievements(object): """ 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): raise IOError(repr(i.icon)) - @staticmethod - def status(id): - return achievement.has(id) + status = staticmethod(achievement.has) @staticmethod def unlock(id, silent=False): @@ -86,9 +83,7 @@ init python: renpy.play('sounds/achievement.ogg') __popup_stack.append(id) - @staticmethod - def lock(self, id): - achievement.clear(id) + lock = staticmethod(achievement.clear) def achievement_sortfilter(lst, sortby="A-z", filtering=None): """ @@ -451,4 +446,4 @@ style light_achievements_filters_button: style achievements_filters_button_text is default: align (0.5, 0.5) size 12 - outlines [] \ No newline at end of file + outlines []