Files
MaidEngine/scripts/battle/deployed_units/deployed_unit_stats.gd
2026-04-08 18:44:58 -04:00

15 lines
416 B
GDScript

class_name DeployedUnitStats extends Resource
@export var unit_stats: UnitStats
@export var current_hp: int
@export var current_sp: int
@export var current_fs: int
static func from_unit_stats(source: UnitStats) -> DeployedUnitStats:
var stats := DeployedUnitStats.new()
stats.unit_stats = source
stats.current_hp = source.max_hp
stats.current_sp = source.max_sp
stats.current_fs = source.max_fs
return stats