Implement foil
This commit is contained in:
parent
ef78085e40
commit
bd4cc10b16
@ -159,6 +159,11 @@ const TILE_TYPES = {
|
||||
wall: {
|
||||
draw_layer: DRAW_LAYERS.terrain,
|
||||
blocks_collision: COLLISION.all_but_ghost,
|
||||
on_bump(me, level, other) {
|
||||
if (other.has_item('foil')) {
|
||||
level.transmute_tile(me, 'steel');
|
||||
}
|
||||
},
|
||||
},
|
||||
wall_custom_green: {
|
||||
draw_layer: DRAW_LAYERS.terrain,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user