Implemented elevation in editor and mechanically in-game

This commit is contained in:
Anuken
2018-06-11 15:18:25 -04:00
parent cbd83b5e39
commit b609b5909b
25 changed files with 534 additions and 376 deletions
@@ -152,7 +152,7 @@ public class Pathfinder {
if (other != null && (path.weights[dx][dy] > cost + 1 || path.searches[dx][dy] < path.search)
&& passable(other, team)){
path.frontier.addFirst(world.tile(dx, dy));
path.weights[dx][dy] = cost + other.cost;
path.weights[dx][dy] = cost + other.cost/2f;
path.searches[dx][dy] = path.search;
}
}