Skip to content

GridPath

Defined in: GridPath.ts:6

GridPath is not an enum, but rather a variable integer that represents the cost it would take for an entity to pass through a grid entity. This enum lists some standard cost values that the vanilla game uses.

NONE: 0

Defined in: GridPath.ts:7


WALKED_TILE: 900

Defined in: GridPath.ts:13

Set by some enemies when they pass through a tile. De-prioritizes the tile for pathfinders. Degrades over time in steps of 100.


FIREPLACE: 950

Defined in: GridPath.ts:16

De-prioritizes the tile for pathfinders. Does not degrade.


ROCK: 1000

Defined in: GridPath.ts:22

Set by grid entities. Invalidates the tile for pathfinders. Impedes grounded player movement. Does not degrade.


PIT: 3000

Defined in: GridPath.ts:25

Invalidates the tile for pathfinders. Impedes grounded player movement. Does not degrade.


GRIMACE: 3999

Defined in: GridPath.ts:31

Invalidates the tile for pathfinders. Impedes grounded player movement. Drops to 900 and then degrades over time in steps of 100. (Grimaces reset the value every frame.)