Exits block non-players

This commit is contained in:
Eevee (Evelyn Woods) committed 2020-09-16 01:18:39 -06:00
1 parent 1dd617bbd0
commit 5f6e820b14
1 file changed
+2
+2
View File
@@ -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();