Exits block non-players
This commit is contained in:
parent
1dd617bbd0
commit
5f6e820b14
@ -1212,6 +1212,8 @@ const TILE_TYPES = {
|
||||
},
|
||||
exit: {
|
||||
draw_layer: LAYER_TERRAIN,
|
||||
blocks_monsters: true,
|
||||
blocks_blocks: true,
|
||||
on_arrive(me, level, other) {
|
||||
if (other.type.is_player) {
|
||||
level.win();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user