aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_score.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-17 17:12:39 -0400
committerhistoria <[not public]>2026-07-17 17:12:39 -0400
commit6e6c4a157564100249bb58f412485055bb2d10cf (patch)
treed457414b989e737287384f87004bffa70ac23886 /internal/game/cmd_score.go
parente09e7badbc722f580a9d7674c46d6ff3cc320b26 (diff)
downloadthehouseoficarus-6e6c4a157564100249bb58f412485055bb2d10cf.tar.gz
feat: implement run energy, shorten walk time to 1-2 ticks between rooms, update graceful set
Diffstat (limited to 'internal/game/cmd_score.go')
-rw-r--r--internal/game/cmd_score.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/game/cmd_score.go b/internal/game/cmd_score.go
index 488979c..5e850d1 100644
--- a/internal/game/cmd_score.go
+++ b/internal/game/cmd_score.go
@@ -123,6 +123,14 @@ func (g *Game) doScore(sess *net.Session) {
color.Render(mode, color.Parse("FA"), fmt.Sprintf("%.0f", p.MaxBattery())))
content(batLine)
+ engStyle := &ui.BarStyle{FilledColor: 108, EmptyColor: 237, EmptyDim: true}
+ engBarStr := ui.RenderColoredBar(p.RunEnergy, p.MaxRunEnergy(), 26, unicode, engStyle, mode)
+ engLine := fmt.Sprintf("ENG [%s] %s / %s",
+ engBarStr,
+ color.Render(mode, color.ColorSpec{Fg: 108}, fmt.Sprint(p.RunEnergy)),
+ color.Render(mode, color.Parse("FA"), fmt.Sprint(p.MaxRunEnergy())))
+ content(engLine)
+
gap()
actionDesc := "Idle"