about summary refs log tree commit diff
path: root/src/entities/creature.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities/creature.rs')
-rw-r--r--src/entities/creature.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/entities/creature.rs b/src/entities/creature.rs
index 9fd8d23c752e..4cf6f60bdc6c 100644
--- a/src/entities/creature.rs
+++ b/src/entities/creature.rs
@@ -1,7 +1,7 @@
 use crate::display;
 use crate::entities::raws::CreatureType;
 use crate::entities::raws::EntityRaw;
-use crate::entities::{raw, EntityID};
+use crate::entities::{raw, Describe, EntityID};
 use crate::types::Position;
 use std::io::{self, Write};
 
@@ -50,6 +50,12 @@ impl Creature {
 
 entity!(Creature);
 
+impl Describe for Creature {
+    fn description(&self) -> String {
+        self.typ.description.to_string()
+    }
+}
+
 impl display::Draw for Creature {
     fn do_draw(&self, out: &mut Write) -> io::Result<()> {
         write!(out, "{}", self.typ.chr)