From b20ac9c3560a7fc70f35c6f0787aeed8346f2c6d Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Mon, 18 May 2020 14:58:31 +0200 Subject: [PATCH] Removed stepCount (bugged) --- src/AI/AutomaticMovement.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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):