From 8211da6cc31ecb770f75d25ba6e95f553387275c Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sun, 27 Dec 2020 07:28:38 -0700 Subject: [PATCH] Make gravel and dirt also block doppelganger Cerise --- js/tiletypes.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/tiletypes.js b/js/tiletypes.js index a522e11..35041be 100644 --- a/js/tiletypes.js +++ b/js/tiletypes.js @@ -601,7 +601,8 @@ const TILE_TYPES = { draw_layer: DRAW_LAYERS.terrain, blocks_collision: COLLISION.block_cc1 | (COLLISION.monster_solid & ~COLLISION.rover), blocks(me, level, other) { - return (other.type.name === 'player2' && ! other.has_item('hiking_boots')); + return ((other.type.name === 'player2' || other.type.name === 'doppelganger2') && + ! other.has_item('hiking_boots')); }, on_arrive(me, level, other) { // Bizarre interaction @@ -614,7 +615,8 @@ const TILE_TYPES = { draw_layer: DRAW_LAYERS.terrain, blocks_collision: COLLISION.monster_solid & ~COLLISION.rover, blocks(me, level, other) { - return (other.type.name === 'player2' && ! other.has_item('hiking_boots')); + return ((other.type.name === 'player2' || other.type.name === 'doppelganger2') && + ! other.has_item('hiking_boots')); }, },