From 2b488b2d895983d305fddacbf7c6e0d85a907147 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Fri, 7 May 2021 22:40:21 -0600 Subject: [PATCH] Disable lilypad/popwall effects when activating dynamite --- js/tiletypes.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/js/tiletypes.js b/js/tiletypes.js index 04e4b21..6e2f374 100644 --- a/js/tiletypes.js +++ b/js/tiletypes.js @@ -355,6 +355,11 @@ const TILE_TYPES = { } }, on_depart(me, level, other) { + // Inexplicable CC2 quirk: nothing happens if there's dynamite on us + // TODO compat? this makes no sense to me + if (me.cell.has('dynamite_lit')) + return; + level.spawn_animation(me.cell, 'puff'); level.transmute_tile(me, 'wall'); if (other === level.player) { @@ -859,6 +864,11 @@ const TILE_TYPES = { layer: LAYERS.terrain, blocks_collision: COLLISION.ghost | COLLISION.fireball, on_depart(me, level, other) { + // Inexplicable CC2 quirk: nothing happens if there's dynamite on us + // TODO compat? this makes no sense to me + if (me.cell.has('dynamite_lit')) + return; + level.transmute_tile(me, 'water'); level.spawn_animation(me.cell, 'splash'); level.sfx.play_once('splash', me.cell);