Add movement order tactics

This commit is contained in:
2026-06-18 10:18:07 +09:00
parent 14ca76d8cb
commit feae7dd167
9 changed files with 42 additions and 14 deletions

View File

@@ -1047,7 +1047,7 @@ func _status_display_name(status: String) -> String:
func _is_supported_status_stat(stat: String) -> bool:
return stat == "atk" or stat == "def" or stat == "int" or stat == "agi"
return stat == "atk" or stat == "def" or stat == "int" or stat == "agi" or stat == "move"
func _unit_has_action_lock(unit: Dictionary, action: String) -> bool:
@@ -1665,7 +1665,7 @@ func _movement_range_for_unit(unit: Dictionary) -> Array[Vector2i]:
continue
var new_cost := int(costs[current]) + terrain_cost
if new_cost > int(unit["move"]):
if new_cost > _effective_stat(unit, "move"):
continue
if not costs.has(next_cell) or new_cost < int(costs[next_cell]):
costs[next_cell] = new_cost
@@ -2220,6 +2220,8 @@ func _support_ai_score(caster: Dictionary, target: Dictionary, skill: Dictionary
func _support_ai_stat_weight(stat: String) -> int:
if stat == "atk":
return 9
if stat == "move":
return 8
if stat == "def":
return 7
if stat == "int":