-
Notifications
You must be signed in to change notification settings - Fork 21
/
GridPath.ts
32 lines (27 loc) · 998 Bytes
/
GridPath.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* 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.
*/
export enum GridPath {
NONE = 0,
/**
* Set by some enemies when they pass through a tile. De-prioritizes the tile for pathfinders.
* Degrades over time in steps of 100.
*/
WALKED_TILE = 900,
/** De-prioritizes the tile for pathfinders. Does not degrade. */
FIREPLACE = 950,
/**
* Set by grid entities. Invalidates the tile for pathfinders. Impedes grounded player movement.
* Does not degrade.
*/
ROCK = 1000,
/** Invalidates the tile for pathfinders. Impedes grounded player movement. Does not degrade. */
PIT = 3000,
/**
* 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.)
*/
GRIMACE = 3999,
}