Reorganized files, started splitting up unit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# resources/resource_definitions/any_combat_tactic_range.gd
|
||||
class_name AnyCombatTacticRange extends CombatTacticRange
|
||||
|
||||
func is_valid_range(_distance: int, _unit: Unit) -> bool:
|
||||
return true
|
||||
@@ -0,0 +1 @@
|
||||
uid://danory6304bl6
|
||||
@@ -0,0 +1,5 @@
|
||||
# resources/resource_definitions/combat_tactic_range.gd
|
||||
class_name CombatTacticRange extends Resource
|
||||
|
||||
func is_valid_range(_distance: int, _unit: Unit) -> bool:
|
||||
return false
|
||||
@@ -0,0 +1 @@
|
||||
uid://5cr4kl14gvd7
|
||||
@@ -0,0 +1,7 @@
|
||||
# resources/resource_definitions/fixed_combat_tactic_range.gd
|
||||
class_name FixedCombatTacticRange extends CombatTacticRange
|
||||
|
||||
@export var tactic_range: int = 1
|
||||
|
||||
func is_valid_range(distance: int, unit: Unit) -> bool:
|
||||
return distance <= tactic_range
|
||||
@@ -0,0 +1 @@
|
||||
uid://6jxhvwrkiq6f
|
||||
@@ -0,0 +1,5 @@
|
||||
# resources/resource_definitions/unit_matching_combat_tactic_range.gd
|
||||
class_name UnitMatchingCombatTacticRange extends CombatTacticRange
|
||||
|
||||
func is_valid_range(distance: int, unit: Unit) -> bool:
|
||||
return distance <= unit.current_stats.atk_range
|
||||
@@ -0,0 +1 @@
|
||||
uid://7locjqufdkgj
|
||||
Reference in New Issue
Block a user