From 2ae4a052fd1c15c3c6ba0f1dd324d896371aaffc Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 19 Jun 2026 02:40:22 -0400 Subject: feat: rough technology skill added --- internal/game/cmd_score.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'internal/game/cmd_score.go') diff --git a/internal/game/cmd_score.go b/internal/game/cmd_score.go index c31433b..2005903 100644 --- a/internal/game/cmd_score.go +++ b/internal/game/cmd_score.go @@ -17,6 +17,7 @@ func (g *Game) doScore(sess *net.Session) { fmt.Sprintf("Name: %s", g.colorize(sess, "player_name", p.Name)), fmt.Sprintf("Combat Level: %s", color.Render(mode, color.Parse("230"), fmt.Sprint(p.CombatLevel()))), fmt.Sprintf("HP: %s/%s", g.colorize(sess, "character_hp", fmt.Sprint(p.HP)), color.Render(mode, color.Parse("230"), fmt.Sprint(p.MaxHP()))), + fmt.Sprintf("Battery: %s/%s", g.colorize(sess, "battery", fmt.Sprintf("%.1f", p.Battery)), color.Render(mode, color.Parse("230"), fmt.Sprintf("%.0f", p.MaxBattery()))), fmt.Sprintf("Credits: %s", g.colorize(sess, "credits_pickup", fmt.Sprint(p.Credits))), ) @@ -42,4 +43,18 @@ func (g *Game) doScore(sess *net.Session) { for _, line := range t.Render(p.OptionBool("unicode")) { sess.WriteLine(line) } + + if len(p.ActiveTechs) > 0 { + sess.WriteLine("") + sess.WriteLine("Active Tech:") + for _, id := range p.ActiveTechList() { + def := GetTechDef(id) + if def != nil { + sess.WriteLine(fmt.Sprintf(" %s %s", + color.Render(mode, color.Parse("82"), "[ON]"), + color.Render(mode, color.Parse("75"), def.Name), + )) + } + } + } } -- cgit v1.2.3