summaryrefslogtreecommitdiff
path: root/dungeon
diff options
context:
space:
mode:
Diffstat (limited to 'dungeon')
-rw-r--r--dungeon/src/entity.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/dungeon/src/entity.rs b/dungeon/src/entity.rs
index ebdd332..badb43c 100644
--- a/dungeon/src/entity.rs
+++ b/dungeon/src/entity.rs
@@ -6,7 +6,10 @@ use crate::{Direction, FPos, Floor, Pos, astar, const_pos};
pub const PLAYER_FULL_HEALTH: u32 = 10;
/// `PLAYER_INVENTORY_SIZE` is the maximum size of the inventory
-pub const PLAYER_INVENTORY_SIZE: usize = 5;
+pub const PLAYER_INVENTORY_SIZE: u16 = 5;
+
+/// `PLAYER_INVENTORY_SIZE_USIZE` is the maximum size of the inventory
+pub const PLAYER_INVENTORY_SIZE_USIZE: usize = PLAYER_INVENTORY_SIZE as usize;
/// The `Item` type represents any item an entity may be using
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]