summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-19 22:20:56 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-19 22:20:56 -0500
commitf0e715fd3fad342c785a5b4a8637cedfaccb8731 (patch)
treecb07fa591e78c4bac440a0a1e9f2ece461d045a0 /graphics
parentnix: fix fenix flake and update lock (diff)
downloadDungeonCrawl-f0e715fd3fad342c785a5b4a8637cedfaccb8731.tar.gz
DungeonCrawl-f0e715fd3fad342c785a5b4a8637cedfaccb8731.tar.bz2
DungeonCrawl-f0e715fd3fad342c785a5b4a8637cedfaccb8731.zip
dungeon: implement items
Diffstat (limited to 'graphics')
-rw-r--r--graphics/src/render.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs
index 02bc61c..208dafb 100644
--- a/graphics/src/render.rs
+++ b/graphics/src/render.rs
@@ -665,7 +665,7 @@ impl Renderer {
where
R: RaylibDraw,
{
- let health = player.entity.health.unwrap_or(0);
+ let health = player.entity.health;
let damage = 0; // TODO: calc damage
const TEXT_WIDTH: u16 = FONT_SIZE * 3 + UI_PADDING;