Simplify dynamite spawn code
This commit is contained in:
parent
d7e1b969e8
commit
65664bba7b
@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user