fix ice block/fireball interaction

This commit is contained in:
Timothy Stiles 2021-02-21 10:23:38 +11:00
parent ac008e9564
commit b74ce300e5
2 changed files with 5 additions and 1 deletions

View File

@ -306,6 +306,10 @@ export class Cell extends Array {
if (! tile.blocks(actor, direction, level)) if (! tile.blocks(actor, direction, level))
continue; continue;
if (tile.type.on_after_bumped) {
tile.type.on_after_bumped(tile, level, actor);
}
if (push_mode === null) if (push_mode === null)
return false; return false;

View File

@ -1192,7 +1192,7 @@ const TILE_TYPES = {
frame_block: true, frame_block: true,
boulder: true, boulder: true,
}, },
on_bumped(me, level, other) { on_after_bumped(me, level, other) {
// Fireballs melt ice blocks on regular floor FIXME and water! // Fireballs melt ice blocks on regular floor FIXME and water!
// XXX what if i'm in motion? // XXX what if i'm in motion?
if (other.type.name === 'fireball') { if (other.type.name === 'fireball') {