Refactored unit
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -4,7 +4,7 @@ func get_offensive_stats(_unit: Unit) -> Variant:
|
||||
return null
|
||||
|
||||
func get_relevant_defense(unit: Unit) -> int:
|
||||
return unit.current_stats.phys_def
|
||||
return unit.stats.phys_def
|
||||
|
||||
func deals_damage() -> bool:
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user