Disable lilypad/popwall effects when activating dynamite
This commit is contained in:
parent
642c977df3
commit
2b488b2d89
@ -355,6 +355,11 @@ const TILE_TYPES = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
on_depart(me, level, other) {
|
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.spawn_animation(me.cell, 'puff');
|
||||||
level.transmute_tile(me, 'wall');
|
level.transmute_tile(me, 'wall');
|
||||||
if (other === level.player) {
|
if (other === level.player) {
|
||||||
@ -859,6 +864,11 @@ const TILE_TYPES = {
|
|||||||
layer: LAYERS.terrain,
|
layer: LAYERS.terrain,
|
||||||
blocks_collision: COLLISION.ghost | COLLISION.fireball,
|
blocks_collision: COLLISION.ghost | COLLISION.fireball,
|
||||||
on_depart(me, level, other) {
|
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.transmute_tile(me, 'water');
|
||||||
level.spawn_animation(me.cell, 'splash');
|
level.spawn_animation(me.cell, 'splash');
|
||||||
level.sfx.play_once('splash', me.cell);
|
level.sfx.play_once('splash', me.cell);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user