Removed stepCount (bugged)
This commit is contained in:
parent
ded03f5a3b
commit
b20ac9c356
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user