diff options
Diffstat (limited to 'internal/game/cmd_score.go')
| -rw-r--r-- | internal/game/cmd_score.go | 15 |
1 files changed, 15 insertions, 0 deletions
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), + )) + } + } + } } |
