Reorganized files, started splitting up unit

This commit is contained in:
gamer147
2026-04-08 18:28:52 -04:00
parent 24134cfa33
commit c192d48bc4
70 changed files with 528 additions and 56 deletions

View File

@@ -0,0 +1,4 @@
class_name DeployedUnit extends Node2D
# The unit represented by this deployment
@export var unit: Unit

View File

@@ -0,0 +1 @@
uid://cmh4lphvboggy

View File

@@ -0,0 +1,14 @@
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
func _init() -> void:
_init_stats.call_deferred()
func _init_stats() -> void:
current_hp = unit_stats.max_hp
current_sp = unit_stats.max_sp
current_fs = unit_stats.max_fs

View File

@@ -0,0 +1 @@
uid://b3jekvxwi8sxi