From 65664bba7bbbfb2d68446b44dfbd17aee4b62417 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Thu, 11 Apr 2024 01:54:22 -0600 Subject: [PATCH] Simplify dynamite spawn code --- js/tiletypes.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/tiletypes.js b/js/tiletypes.js index 376d7e4..54368e6 100644 --- a/js/tiletypes.js +++ b/js/tiletypes.js @@ -2761,10 +2761,7 @@ const TILE_TYPES = { // Dynamite that lands on a force floor is moved by it, and dynamite that lands on a // button holds it down // TODO is there anything this should NOT activate? - let terrain = me.cell.get_terrain(); - if (terrain && terrain.type.on_arrive && ! me.ignores(terrain.type.name)) { - terrain.type.on_arrive(terrain, level, me); - } + level.step_on_cell(me, me.cell); } }, },