🐛 fix health display

This commit is contained in:
anyreso 2024-05-11 15:44:35 -04:00
parent 81c4212c2e
commit c26b281b96
5 changed files with 13 additions and 12 deletions

View file

@ -17,7 +17,7 @@ class_name ExplosiveDamageComponent extends Area3D
## Emitted when the scale tween is finished
signal finished
@export var damage : int = 35
@export var damage : float = .35
@export var impulse_force : int = 1000
var damage_dealer : MatchParticipantComponent

View file

@ -14,8 +14,8 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
class_name HealthComponent extends Area3D
@export var max_health : float = 100.0
@export var health : float = 100.0:
@export var max_health : float = 1.
@export var health : float = 1.:
set(value):
health = value
health_changed.emit(value)