diff --git a/src/AI/AutomaticMovement.py b/src/AI/AutomaticMovement.py index 72fdc15..9fd1d85 100644 --- a/src/AI/AutomaticMovement.py +++ b/src/AI/AutomaticMovement.py @@ -72,8 +72,9 @@ def priority(elem: AStarNode, map, target): :param target: Target goal :return: Priority as int """ - return approximateDistanceFromTarget(elem.state[0], elem.state[1], target) + stepCost( - map.getTileOnCoord((elem.state[0], elem.state[1]))) + # return approximateDistanceFromTarget(elem.state[0], elem.state[1], target) + stepCost( + # map.getTileOnCoord((elem.state[0], elem.state[1]))) + return approximateDistanceFromTarget(elem.state[0], elem.state[1], target) def successor(movable: Entity, elemState, map, target):