plant pick menu
This commit is contained in:
parent
73a2fe42ad
commit
32453f2e9d
18 changed files with 121 additions and 39 deletions
|
|
@ -33,6 +33,8 @@ func deal_damage(amount : float, source : Entity):
|
|||
delta_context.delta = -amount
|
||||
hp_changed.emit(delta_context)
|
||||
|
||||
damaged.emit()
|
||||
|
||||
hp -= amount
|
||||
if hp <= 0:
|
||||
hp = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue