Refactored unit

This commit is contained in:
gamer147
2026-04-08 18:44:58 -04:00
parent c192d48bc4
commit b807e9897d
16 changed files with 239 additions and 154 deletions

View File

@@ -1,10 +1,10 @@
class_name AttackCombatTactic extends CombatTactic
func get_offensive_stats(unit: Unit) -> Variant:
return {"atk": unit.current_stats.phys_atk, "hit": unit.current_stats.hit}
return {"atk": unit.stats.phys_atk, "hit": unit.stats.hit}
func get_relevant_defense(unit: Unit) -> int:
return unit.current_stats.phys_def
return unit.stats.phys_def
func deals_damage() -> bool:
return true