Fixed error in HP display
This commit is contained in:
parent
b2c54a0e14
commit
a404950b92
1 changed files with 1 additions and 1 deletions
|
|
@ -38,8 +38,8 @@ var current_hp = 5:
|
||||||
new_hp = 0
|
new_hp = 0
|
||||||
die()
|
die()
|
||||||
if new_hp != current_hp:
|
if new_hp != current_hp:
|
||||||
health_changed.emit(current_hp)
|
|
||||||
current_hp = new_hp
|
current_hp = new_hp
|
||||||
|
health_changed.emit(current_hp)
|
||||||
@export var max_hp = 5:
|
@export var max_hp = 5:
|
||||||
set(new_max_hp):
|
set(new_max_hp):
|
||||||
max_hp = new_max_hp
|
max_hp = new_max_hp
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue