Appearance sets

This commit is contained in:
gamer147
2026-04-09 07:58:58 -04:00
parent b807e9897d
commit 6b46d1c274
23 changed files with 445 additions and 81 deletions

View File

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

View File

@@ -1,10 +1,10 @@
class_name DefendCombatTactic extends CombatTactic
func get_offensive_stats(_unit: Unit) -> Variant:
func get_offensive_stats(_stats: DeployedUnitStats) -> Variant:
return null
func get_relevant_defense(unit: Unit) -> int:
return unit.stats.phys_def
func get_relevant_defense(stats: DeployedUnitStats) -> int:
return stats.phys_def
func deals_damage() -> bool:
return false