From bd0d29323fbab4b653b37a1d5142d95b529cafed Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 20 Nov 2025 12:39:16 -0500 Subject: dungeon: make chest items optional (no item = open) --- dungeon/src/map.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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), } impl Tile { /// Returns if the tile is a wall -- cgit v1.2.3-freya