diff options
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()))) |
