Jester time
This commit is contained in:
@@ -4,6 +4,8 @@ import type { Position, Schematic } from "cubi/server";
|
||||
// placed, so a plan that comes out too small can be tried again without touching the world
|
||||
|
||||
export const DOORWAY = "dangerous_business:doorway";
|
||||
// where the surface is placed, high above the interior. anyone higher than it is outside the facility
|
||||
export const SURFACE_Y = 150;
|
||||
export const VENT_SPOT = "dangerous_business:vent_spot";
|
||||
|
||||
// a marker block in a tile, a doorway or a vent spot, with its facing state: 0 north, 1 east, 2 south, 3 west. in a
|
||||
@@ -40,6 +42,10 @@ export interface TileType extends TileRules {
|
||||
vent_spots: Marker[];
|
||||
}
|
||||
|
||||
export function in_facility(position: Position) {
|
||||
return position.y <= SURFACE_Y;
|
||||
}
|
||||
|
||||
export interface PlacedTile {
|
||||
tile: string;
|
||||
// where the schematic's lowest corner goes, before it's turned around it
|
||||
|
||||
Reference in New Issue
Block a user