Restructure tile size usage
This commit is contained in:
@@ -46,8 +46,8 @@ func _on_mouse_grid_changed(coords: Vector2i) -> void:
|
||||
combat_map.target_tile(coords)
|
||||
|
||||
func _on_combat_requested(attacker: DeployedUnit, defender: DeployedUnit) -> void:
|
||||
var atk_coords := combat_map.world_to_coords(attacker.position)
|
||||
var def_coords := combat_map.world_to_coords(defender.position)
|
||||
var atk_coords := BattleMapHelper.world_to_coords(attacker.position)
|
||||
var def_coords := BattleMapHelper.world_to_coords(defender.position)
|
||||
var distance := absi(atk_coords.x - def_coords.x) + absi(atk_coords.y - def_coords.y)
|
||||
var proposal := combat_system.create_proposal(attacker, defender, distance)
|
||||
_set_input_disabled(true)
|
||||
|
||||
Reference in New Issue
Block a user