From dc2cc3f72b916bbb8172298b39de8c880f4d4630 Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Fri, 26 Jan 2024 17:25:15 +0000 Subject: [PATCH] Save Compatibility and Event Class * Added reset method for the Event class. * Updated save compatibility to reset the state of the modified events on update. --- game/scripts/events/queue.rpy | 5 +++++ game/scripts/utility/updater.rpy | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/game/scripts/events/queue.rpy b/game/scripts/events/queue.rpy index 2af20593..070aa351 100644 --- a/game/scripts/events/queue.rpy +++ b/game/scripts/events/queue.rpy @@ -220,6 +220,11 @@ init -1 python: self.queued = False + def reset(self): + self.started = False + self.completed = False + self.completed_failed = False + def requirements_met(self): if self.req: try: diff --git a/game/scripts/utility/updater.rpy b/game/scripts/utility/updater.rpy index 992393f4..6bbe5398 100644 --- a/game/scripts/utility/updater.rpy +++ b/game/scripts/utility/updater.rpy @@ -170,14 +170,23 @@ init python: if current < 1.46: getattr(store, "her_ev_cumslut_public_t5_e1").label = "hg_pr_cumslut_T5_return" + getattr(store, "her_ev_cumslut_public_t5_e1").reset() + getattr(store, "her_ev_cumslut_public_t5_e1").dequeue() getattr(store, "her_ev_cumslut_public_t5_e2").label = "hg_pr_cumslut_T5_return" + getattr(store, "her_ev_cumslut_public_t5_e2").reset() + getattr(store, "her_ev_cumslut_public_t5_e2").dequeue() getattr(store, "her_ev_cumslut_public_t5_e3").label = "hg_pr_cumslut_T5_return" + getattr(store, "her_ev_cumslut_public_t5_e3").reset() + getattr(store, "her_ev_cumslut_public_t5_e3").dequeue() getattr(store, "her_ev_cumslut_public_t5_e1_hub").label = "hg_pr_cumslut" - getattr(store, "her_ev_cumslut_public_t5_e2_hub").label = "hg_pr_cumslut" - getattr(store, "her_ev_cumslut_public_t5_e3_hub").label = "hg_pr_cumslut" getattr(store, "her_ev_cumslut_public_t5_e1_hub").req = "states.her.tier == 5" + getattr(store, "her_ev_cumslut_public_t5_e1_hub").reset() + getattr(store, "her_ev_cumslut_public_t5_e2_hub").label = "hg_pr_cumslut" getattr(store, "her_ev_cumslut_public_t5_e2_hub").req = "states.her.tier == 5" + getattr(store, "her_ev_cumslut_public_t5_e2_hub").reset() + getattr(store, "her_ev_cumslut_public_t5_e3_hub").label = "hg_pr_cumslut" getattr(store, "her_ev_cumslut_public_t5_e3_hub").req = "states.her.tier == 5" + getattr(store, "her_ev_cumslut_public_t5_e3_hub").reset() for i in states.dolls: doll = getattr(store, i)