diff options
| author | historia <[not public]> | 2026-07-18 05:22:00 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-18 05:22:00 -0400 |
| commit | dd2882e528dee042b9ff3e098ce710ace021ef41 (patch) | |
| tree | 6b763d3549c3d25ca50249745095778620f318f1 /internal/game | |
| parent | 2b5d8f595f96a2864899f4c7e28bc06fa52d2603 (diff) | |
| download | thehouseoficarus-dd2882e528dee042b9ff3e098ce710ace021ef41.tar.gz | |
fix: admin color page example text
Diffstat (limited to 'internal/game')
| -rw-r--r-- | internal/game/cmd_score.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cmd_score.go b/internal/game/cmd_score.go index 3949486..426dc08 100644 --- a/internal/game/cmd_score.go +++ b/internal/game/cmd_score.go @@ -109,7 +109,7 @@ func (g *Game) doScore(sess *net.Session) { hpStyle := g.hpBarStyle(sess, p.HP, p.MaxHP()) hpBarStr := ui.RenderColoredBar(p.HP, p.MaxHP(), 26, unicode, hpStyle, mode) hpFg := g.hpBarStyle(sess, p.HP, p.MaxHP()).FilledColor - hpLine := fmt.Sprintf("HP [%s] %s / %s", + hpLine := fmt.Sprintf("HP [%s] %s / %s", hpBarStr, color.Render(mode, color.ColorSpec{Fg: hpFg}, fmt.Sprint(p.HP)), g.colorizeConstant(sess, "score_max_value", fmt.Sprint(p.MaxHP()))) @@ -118,7 +118,7 @@ func (g *Game) doScore(sess *net.Session) { batBarRaw := ui.RenderBarF(p.Battery, p.MaxBattery(), 26, unicode) batBarStr := color.Render(mode, g.resolveConstant(sess, "battery_bar"), batBarRaw) batFg := g.resolveConstant(sess, "battery_bar").Fg - batLine := fmt.Sprintf("BAT [%s] %s / %s", + batLine := fmt.Sprintf("Battery [%s] %s / %s", batBarStr, color.Render(mode, color.ColorSpec{Fg: batFg}, fmt.Sprintf("%.1f", p.Battery)), g.colorizeConstant(sess, "score_max_value", fmt.Sprintf("%.0f", p.MaxBattery()))) @@ -128,7 +128,7 @@ func (g *Game) doScore(sess *net.Session) { engEmpty := g.resolveConstant(sess, "hp_bar_empty") engStyle := &ui.BarStyle{FilledColor: engSpec.Fg, EmptyColor: engEmpty.Fg, EmptyDim: engEmpty.Dim} engBarStr := ui.RenderColoredBar(p.RunEnergy, p.MaxRunEnergy(), 26, unicode, engStyle, mode) - engLine := fmt.Sprintf("ENG [%s] %s / %s", + engLine := fmt.Sprintf("Run En. [%s] %s / %s", engBarStr, color.Render(mode, color.ColorSpec{Fg: engSpec.Fg}, fmt.Sprint(p.RunEnergy)), g.colorizeConstant(sess, "score_max_value", fmt.Sprint(p.MaxRunEnergy()))) |
