plant pick menu

This commit is contained in:
Rendo 2025-08-03 02:09:11 +05:00
commit 32453f2e9d
18 changed files with 121 additions and 39 deletions

View file

@ -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