Fixed error in HP display

This commit is contained in:
RealMelwei 2025-10-12 18:29:14 +02:00
parent b2c54a0e14
commit a404950b92

View file

@ -38,8 +38,8 @@ var current_hp = 5:
new_hp = 0
die()
if new_hp != current_hp:
health_changed.emit(current_hp)
current_hp = new_hp
health_changed.emit(current_hp)
@export var max_hp = 5:
set(new_max_hp):
max_hp = new_max_hp