summaryrefslogtreecommitdiff
path: root/dungeon/src/map.rs
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-20 20:27:50 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-20 20:27:50 -0500
commitff627e369f83fdaab8e90016529521b0e07d5e34 (patch)
tree68a416a471af35334ed4a4b743eb8823ac67a00d /dungeon/src/map.rs
parentgame: fix inv slot select (diff)
downloadDungeonCrawl-ff627e369f83fdaab8e90016529521b0e07d5e34.tar.gz
DungeonCrawl-ff627e369f83fdaab8e90016529521b0e07d5e34.tar.bz2
DungeonCrawl-ff627e369f83fdaab8e90016529521b0e07d5e34.zip
dungeon: add chest usage/textures
Diffstat (limited to 'dungeon/src/map.rs')
-rw-r--r--dungeon/src/map.rs5
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