From 650563775e161cf4294a0159bbb3c4525876ed97 Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Sun, 2 Jul 2023 17:03:44 +0100 Subject: [PATCH] Bug fix * Fix a rare bug that will mask parser bugs due to the order of initialization --- game/scripts/interface/tooltip.rpy | 2 +- game/scripts/utility/periodic_functions.rpy | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/game/scripts/interface/tooltip.rpy b/game/scripts/interface/tooltip.rpy index b5154ee6..316cafca 100644 --- a/game/scripts/interface/tooltip.rpy +++ b/game/scripts/interface/tooltip.rpy @@ -6,7 +6,7 @@ screen tooltip(): zorder 5 style_prefix "tooltip" - if settings.get("tooltip") and _tooltip: + if settings.get("tooltip") and getattr(store, "_tooltip", None): window: id "tooltip" at tooltip_follow diff --git a/game/scripts/utility/periodic_functions.rpy b/game/scripts/utility/periodic_functions.rpy index 87082d4e..744ff691 100644 --- a/game/scripts/utility/periodic_functions.rpy +++ b/game/scripts/utility/periodic_functions.rpy @@ -1,5 +1,8 @@ init python: def periodic_achievements(): + if not hasattr(store, "achievements"): + return + if _in_replay is None: if not achievements.status('gold') and game.gold >= 10000: achievements.unlock("gold")