monsters as trait
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user