diff options
| author | historia <[not public]> | 2026-07-14 17:13:18 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-14 17:13:18 -0400 |
| commit | beb188ce050fb76cdddc0bbeedee7ec608e47995 (patch) | |
| tree | d7c050b30567004ae143d554dcd533f4980e8fd8 /internal/game/render_combat.go | |
| parent | e679811057bedda7864b61a325a11e472e0034ad (diff) | |
| download | thehouseoficarus-beb188ce050fb76cdddc0bbeedee7ec608e47995.tar.gz | |
feat: unicode hitsplat symbol, area name in look
Diffstat (limited to 'internal/game/render_combat.go')
| -rw-r--r-- | internal/game/render_combat.go | 12 |
1 files changed, 9 insertions, 3 deletions
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 |
