Files
fmm/game/player_stats.gd
2025-08-14 20:29:46 +02:00

18 lines
371 B
GDScript

extends Node
const BASE_SPEED: float = 5.0
const BASE_MAX_HEALTH: float = 100.0
const BASE_SPRINT_MULTIPLIER: float = 1.5
var current_health: float
var speed: float
var sprint_multiplier: float
func _ready() -> void:
current_health = BASE_MAX_HEALTH
speed = BASE_SPEED
sprint_multiplier = BASE_SPRINT_MULTIPLIER
func add_health(val: float):
current_health += val