Implemented various suggestions

- Pathfinding weighs walls more
- C disables all HUD
- Unloader doesn't store items
- Some bugfixes
This commit is contained in:
Anuken
2020-05-07 21:37:41 -04:00
parent 2ca7f553bb
commit 2b9d618bd2
16 changed files with 78 additions and 54 deletions

View File

@@ -62,7 +62,7 @@ public class Pathfinder implements Runnable{
/** Packs a tile into its internal representation. */
private int packTile(Tile tile){
return PathTile.get(tile.cost, tile.getTeamID(), (byte)0, !tile.solid() && tile.floor().drownTime <= 0f);
return PathTile.get(tile.cost, tile.getTeamID(), !tile.solid() && tile.floor().drownTime <= 0f);
}
/** Starts or restarts the pathfinding thread. */
@@ -360,11 +360,11 @@ public class Pathfinder implements Runnable{
@Struct
class PathTileStruct{
//traversal cost
byte cost;
short cost;
//team of block, if applicable (0 by default)
byte team;
//type of target; TODO remove
byte type;
//byte type;
//whether it's viable to pass this block
boolean passable;
}