diff options
Diffstat (limited to 'dungeon/src/map.rs')
| -rw-r--r-- | dungeon/src/map.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dungeon/src/map.rs b/dungeon/src/map.rs index ba3e143..f19157b 100644 --- a/dungeon/src/map.rs +++ b/dungeon/src/map.rs @@ -45,7 +45,10 @@ impl Tile { /// Returns if the tile is walkable #[must_use] pub const fn is_walkable(self) -> bool { - matches!(self, Self::Room | Self::Hallway | Self::Stairs) + matches!( + self, + Self::Room | Self::Hallway | Self::Stairs | Self::Chest(_) + ) } /// Returns if the tile is blast resistant |