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
@@ -160,7 +160,7 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
public Floor getFloorOn(){
Tile tile = world.tileWorld(x, y);
return (Floor)(tile == null || (tile.floor() == null) ? Blocks.defaultFloor : tile.floor());
return tile == null ? (Floor) Blocks.air : tile.floor();
}
/**Updates velocity and status effects.*/