Updated item_generator to have states. Also made it extend Damageable class and added a broken state
This commit is contained in:
1 parent
14eb5b24de
commit
6e6da14975
9 files changed
+260
-70
No files matched your search
@@ -50,4 +50,5 @@ func on_item_holder_item_changed(item):
|
||||
|
||||
func on_damage_taken():
|
||||
if ctx.current_hp <= 0:
|
||||
ctx.gen_timer.stop()
|
||||
ctx.change_state(ctx.States[ctx.EState.BROKEN].new())
|
||||
Reference in new issue
Block a user