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.
This commit is contained in:
LoafyLemon 2024-01-26 17:25:15 +00:00
parent adcfa2b511
commit dc2cc3f72b
2 changed files with 16 additions and 2 deletions

View File

@ -220,6 +220,11 @@ init -1 python:
self.queued = False self.queued = False
def reset(self):
self.started = False
self.completed = False
self.completed_failed = False
def requirements_met(self): def requirements_met(self):
if self.req: if self.req:
try: try:

View File

@ -170,14 +170,23 @@ init python:
if current < 1.46: 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").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").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").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_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").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").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").req = "states.her.tier == 5"
getattr(store, "her_ev_cumslut_public_t5_e3_hub").reset()
for i in states.dolls: for i in states.dolls:
doll = getattr(store, i) doll = getattr(store, i)