Simplify dynamite spawn code

This commit is contained in:
Eevee (Evelyn Woods) 2024-04-11 01:54:22 -06:00
parent d7e1b969e8
commit 65664bba7b

View File

@ -2761,10 +2761,7 @@ const TILE_TYPES = {
// Dynamite that lands on a force floor is moved by it, and dynamite that lands on a // Dynamite that lands on a force floor is moved by it, and dynamite that lands on a
// button holds it down // button holds it down
// TODO is there anything this should NOT activate? // TODO is there anything this should NOT activate?
let terrain = me.cell.get_terrain(); level.step_on_cell(me, me.cell);
if (terrain && terrain.type.on_arrive && ! me.ignores(terrain.type.name)) {
terrain.type.on_arrive(terrain, level, me);
}
} }
}, },
}, },