* Fix a rare bug that will mask parser bugs due to the order of initialization
This commit is contained in:
LoafyLemon 2023-07-02 17:03:44 +01:00
parent d2a76938b4
commit 650563775e
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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")