Bug fixes and autosaves

* Added autosave toggle
* Fixed achievements being granted in replay scope
This commit is contained in:
LoafyLemon 2023-07-18 17:01:17 +01:00
parent 962cc2f695
commit 316aea6a5a
2 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,7 @@ screen preferences_general():
textbutton _("Tooltips") action settings.Toggle("tooltip") textbutton _("Tooltips") action settings.Toggle("tooltip")
textbutton _("System Cursor") action Preference("system cursor", "toggle") textbutton _("System Cursor") action Preference("system cursor", "toggle")
textbutton _("Automatic Updates") action settings.Toggle("updates") textbutton _("Automatic Updates") action settings.Toggle("updates")
textbutton _("Autosave") action ToggleField(store, "_autosave")
default trans = config.intra_transition default trans = config.intra_transition

View File

@ -83,6 +83,9 @@ init python:
return self.achievements.get(id)[3] return self.achievements.get(id)[3]
def unlock(self, id, silent=False): def unlock(self, id, silent=False):
if _in_replay:
return
if persistent.achievements[id][3] == False: if persistent.achievements[id][3] == False:
self.achievements[id][3] = True self.achievements[id][3] = True
persistent.achievements[id][3] = True persistent.achievements[id][3] = True