Clear tile content when monster eats a block
This commit is contained in:
parent
e948ad1d93
commit
2b484a4ad7
1 changed files with 1 additions and 0 deletions
|
@ -74,6 +74,7 @@ pub fn run(world: &mut World, resources: &mut Resources) {
|
||||||
resources.stats.add_score(1);
|
resources.stats.add_score(1);
|
||||||
*tile = TileType::Floor;
|
*tile = TileType::Floor;
|
||||||
to_kill.push(entity);
|
to_kill.push(entity);
|
||||||
|
resources.map.clear_tile_content_at(Point::from(*position));
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
resources.map.clear_tile_content_at(Point::from(*position));
|
resources.map.clear_tile_content_at(Point::from(*position));
|
||||||
|
|
Loading…
Add table
Reference in a new issue