about summary refs log tree commit diff
path: root/src/entities/item.rs
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-08-03T19·59-0400
committerGriffin Smith <root@gws.fyi>2019-08-04T00·31-0400
commit48fb3f6624b95e9b18a5ff0a814573445c6bc2ab (patch)
tree441a8f04c3e64fd8e3559bab85bab8e0b45789ff /src/entities/item.rs
parent82cefedab9e44b48f4d3cc08b0f6e002ae383c9d (diff)
Add inventory, and the ability to pick up items
Add inventory as a basic vector of items attached to the character, and
the ability to pick up a single item where the character stands
Diffstat (limited to 'src/entities/item.rs')
-rw-r--r--src/entities/item.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/item.rs b/src/entities/item.rs
index aa99fb42e2c1..5f08780d4fb2 100644
--- a/src/entities/item.rs
+++ b/src/entities/item.rs
@@ -4,7 +4,7 @@ use crate::entities::{Describe, EntityID};
 use crate::types::Position;
 use std::io::{self, Write};
 
-#[derive(Debug, Clone)]
+#[derive(Debug, Clone, PartialEq, Eq)]
 pub struct Item {
     pub id: Option<EntityID>,
     pub typ: &'static ItemType<'static>,