Allow ghosts to pass through chip sockets at any time

This commit is contained in:
Eevee (Evelyn Woods) 2020-12-24 07:08:12 -07:00
parent effa166c67
commit 1727df4e38

View File

@ -2554,7 +2554,7 @@ const TILE_TYPES = {
draw_layer: DRAW_LAYERS.terrain,
blocks_collision: COLLISION.block_cc1 | (COLLISION.monster_solid & ~COLLISION.rover),
blocks(me, level, other) {
return (level.chips_remaining > 0);
return ! (other.type.name === 'ghost' || level.chips_remaining <= 0);
},
on_arrive(me, level, other) {
if (level.chips_remaining === 0) {