From beb188ce050fb76cdddc0bbeedee7ec608e47995 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 14 Jul 2026 17:13:18 -0400 Subject: feat: unicode hitsplat symbol, area name in look --- internal/game/render_combat.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'internal/game/render_combat.go') diff --git a/internal/game/render_combat.go b/internal/game/render_combat.go index c3c594c..e4a0d55 100644 --- a/internal/game/render_combat.go +++ b/internal/game/render_combat.go @@ -1,13 +1,19 @@ package game import ( + "fmt" + "thehouseoficarus/internal/net" "thehouseoficarus/internal/ui" ) -// renderBar is the shared bar renderer for both HP bars and task-progress bars. -// lowColor is the color used when the value falls below 40% (167 dusty red for -// HP, 67 steel blue for progress) -- both palette colors. +func (g *Game) dmgDisplay(sess *net.Session, dmg int) string { + if sess.Player != nil && sess.Player.OptionBool("unicode") { + return fmt.Sprintf("\U0001FB38 %d \U0001FB34", dmg) + } + return fmt.Sprintf("> %d <", dmg) +} + func (g *Game) renderBar(sess *net.Session, current, max, lowColor int) string { if max <= 0 { max = 1 -- cgit v1.2.3