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:
1 parent
6e6da14975
commit
ef4b8bd7cf
10 files changed
+105
-7
No files matched your search
@@ -33,6 +33,7 @@ func on_item_slot_item_changed(item):
|
||||
assert(false, "item dump should be disabled while broken")
|
||||
|
||||
func on_item_dump_item_dump_completed():
|
||||
ctx.full_heal()
|
||||
for item_slot in ctx.item_slots:
|
||||
if item_slot.has_item():
|
||||
ctx.change_state(ctx.States[ctx.EState.BLOCKED].new("Blocked!"))
|
||||
|
||||
Reference in new issue
Block a user