fix scoping on death_check change more

pull/53/head
Nate Smith 2023-12-06 21:37:12 -08:00
parent be770c6b5e
commit 84bb89b48c
1 changed files with 4 additions and 4 deletions

View File

@ -346,10 +346,10 @@ class Plant:
# Do something
pass
if self.dead_check():
dm.save_plant(this_plant)
dm.data_write_json(this_plant)
dm.update_garden_db(this_plant)
dm.harvest_plant(this_plant)
dm.save_plant(self)
dm.data_write_json(self)
dm.update_garden_db(self)
dm.harvest_plant(self)
this_plant.unlock_new_creation()
# TODO: event check
time.sleep(2)