Combat base added

This commit is contained in:
gamer147
2026-04-02 08:29:24 -04:00
parent 470e89b15b
commit ce92c6e435
14 changed files with 402 additions and 18 deletions

View File

@@ -0,0 +1,13 @@
class_name CombatProposal extends Resource
class CombatantStats:
var unit: Unit
var hp: int
var sp: int
var hit: int
var atk: int
var def: int
var spd: int
var attacker: CombatantStats
var defender: CombatantStats

View File

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

View File

@@ -2,8 +2,10 @@ class_name UnitStats extends Resource
@export var max_hp: int = 10
@export var current_hp: int
@export var phys_atk: int = 1
@export var phys_def: int = 1
@export var max_sp: int = 10
@export var current_sp: int = 10
@export var phys_atk: int = 10
@export var phys_def: int = 5
@export var magic_atk: int = 0
@export var magic_def: int = 0
@export var hit: int = 85