fix scoping on death_check change more
parent
be770c6b5e
commit
84bb89b48c
8
plant.py
8
plant.py
|
@ -346,10 +346,10 @@ class Plant:
|
||||||
# Do something
|
# Do something
|
||||||
pass
|
pass
|
||||||
if self.dead_check():
|
if self.dead_check():
|
||||||
dm.save_plant(this_plant)
|
dm.save_plant(self)
|
||||||
dm.data_write_json(this_plant)
|
dm.data_write_json(self)
|
||||||
dm.update_garden_db(this_plant)
|
dm.update_garden_db(self)
|
||||||
dm.harvest_plant(this_plant)
|
dm.harvest_plant(self)
|
||||||
this_plant.unlock_new_creation()
|
this_plant.unlock_new_creation()
|
||||||
# TODO: event check
|
# TODO: event check
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
|
Loading…
Reference in New Issue