diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-08 23:18:14 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-08 23:25:36 -0500 |
| commit | b386d5a67c72c15e05e6e2996106d6c79793fe90 (patch) | |
| tree | 864486d8af95d86161ebf442bfe997a8389614d7 /dungeon | |
| parent | dungeon: fix pos idx overflow (diff) | |
| download | DungeonCrawl-b386d5a67c72c15e05e6e2996106d6c79793fe90.tar.gz DungeonCrawl-b386d5a67c72c15e05e6e2996106d6c79793fe90.tar.bz2 DungeonCrawl-b386d5a67c72c15e05e6e2996106d6c79793fe90.zip | |
graphics: refactor renderer to hardcode resolution (360p)
Diffstat (limited to 'dungeon')
| -rw-r--r-- | dungeon/src/entity.rs | 5 |
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)] |