monsters as trait

This commit is contained in:
2023-12-18 16:11:19 +01:00
parent 7ac3b76e6c
commit 73315a7636
6 changed files with 104 additions and 36 deletions

View File

@@ -65,8 +65,9 @@ impl StatefulWidget for LevelWidget {
}
}
}
(_, Some(_), _) => {
self.set_cell(buf, x, y, "M", Color::Red, Color::Gray);
(_, Some(m), _) => {
let (s, c) = m.get_representation();
self.set_cell(buf, x, y, s, c, Color::Gray);
}
(_, _, Some(t)) => {
let (s, c) = t.get_representation();