Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -253,7 +253,7 @@ public class Pathfinder implements Runnable{
|
|||||||
nearSolid,
|
nearSolid,
|
||||||
nearLegSolid,
|
nearLegSolid,
|
||||||
tile.floor().isDeep(),
|
tile.floor().isDeep(),
|
||||||
tile.floor().damageTaken > 0.00001f,
|
tile.floor().damages(),
|
||||||
allDeep,
|
allDeep,
|
||||||
nearDeep,
|
nearDeep,
|
||||||
tile.block().teamPassable
|
tile.block().teamPassable
|
||||||
|
|||||||
@@ -379,6 +379,11 @@ public class Floor extends Block{
|
|||||||
return (other.realBlendId(otherTile) > realBlendId(tile) || edges(tile.x, tile.y) == null);
|
return (other.realBlendId(otherTile) > realBlendId(tile) || edges(tile.x, tile.y) == null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @return whether being on this floor can damage a unit */
|
||||||
|
public boolean damages(){
|
||||||
|
return damageTaken > 0f || (status != null && status.damage > 0f);
|
||||||
|
}
|
||||||
|
|
||||||
public static class UpdateRenderState{
|
public static class UpdateRenderState{
|
||||||
public Tile tile;
|
public Tile tile;
|
||||||
public Floor floor;
|
public Floor floor;
|
||||||
|
|||||||
Reference in New Issue
Block a user