From 48fb3f6624b95e9b18a5ff0a814573445c6bc2ab Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sat, 3 Aug 2019 15:59:05 -0400 Subject: 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 --- src/entities/item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/entities/item.rs') 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, pub typ: &'static ItemType<'static>, -- cgit 1.4.1