aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_score.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-19 02:40:22 -0400
committerhistoria <[not public]>2026-06-19 02:40:22 -0400
commit2ae4a052fd1c15c3c6ba0f1dd324d896371aaffc (patch)
tree3caef60f71a462b7e7ace668053e1f02fb61db15 /internal/game/cmd_score.go
parent86aec0e14eb6fec0a39d742bab1761dad8d7012c (diff)
downloadthehouseoficarus-2ae4a052fd1c15c3c6ba0f1dd324d896371aaffc.tar.gz
feat: rough technology skill added
Diffstat (limited to 'internal/game/cmd_score.go')
-rw-r--r--internal/game/cmd_score.go15
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),
+ ))
+ }
+ }
+ }
}