diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-20 20:27:50 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-20 20:27:50 -0500 |
| commit | ff627e369f83fdaab8e90016529521b0e07d5e34 (patch) | |
| tree | 68a416a471af35334ed4a4b743eb8823ac67a00d /dungeon/src/map.rs | |
| parent | game: fix inv slot select (diff) | |
| download | DungeonCrawl-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.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 |