Added broken state to hydroponic station and fixed a bug with all the brokens tates where they wouldn't heal the object back up on repair

This commit is contained in:
akshay committed 2022-08-18 20:31:07 -04:00
1 parent 6e6da14975
commit ef4b8bd7cf
10 files changed
+105 -7

No files matched your search

+1
View File
@@ -30,6 +30,7 @@ func on_item_holder_item_changed(item):
assert(false, "should be impossible while broken")
func on_item_dump_completed():
ctx.full_heal()
ctx.change_state(ctx.StateIdle.new())
func take_damage():