summaryrefslogtreecommitdiff
path: root/dungeon/src/map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dungeon/src/map.rs')
-rw-r--r--dungeon/src/map.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/dungeon/src/map.rs b/dungeon/src/map.rs
index 9aa513f..ba3e143 100644
--- a/dungeon/src/map.rs
+++ b/dungeon/src/map.rs
@@ -32,7 +32,8 @@ pub enum Tile {
Hallway,
/// `Stairs` represents stairs to another floor
Stairs,
- Chest(Item),
+ /// `Chest` represents an item on the map, possibly containing and item
+ Chest(Option<Item>),
}
impl Tile {
/// Returns if the tile is a wall