diff options
| author | historia <[not public]> | 2026-07-18 04:44:50 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-18 04:44:50 -0400 |
| commit | 2b5d8f595f96a2864899f4c7e28bc06fa52d2603 (patch) | |
| tree | f1539db865d9968414e59d9b250861c1b356d627 /internal/game/cmd_tech.go | |
| parent | db8ca1fe26a36b78074a424ae657b2cbb9b3af19 (diff) | |
| download | thehouseoficarus-2b5d8f595f96a2864899f4c7e28bc06fa52d2603.tar.gz | |
feat: expose all colors in config.yaml for easier theming
Diffstat (limited to 'internal/game/cmd_tech.go')
| -rw-r--r-- | internal/game/cmd_tech.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/game/cmd_tech.go b/internal/game/cmd_tech.go index 4ca1382..0a5580c 100644 --- a/internal/game/cmd_tech.go +++ b/internal/game/cmd_tech.go @@ -118,7 +118,7 @@ func (g *Game) doTechList(sess *net.Session) { "", fmt.Sprintf("Battery: %s/%s", g.colorize(sess, "battery", fmt.Sprintf("%.1f", p.Battery)), - color.Render(mode, color.Parse("FA"), fmt.Sprintf("%.0f", p.MaxBattery())), + g.colorizeConstant(sess, "score_max_value", fmt.Sprintf("%.0f", p.MaxBattery())), ), ) @@ -129,14 +129,14 @@ func (g *Game) doTechList(sess *net.Session) { nameStr := tech.Name if tech.Level <= techLevel { if p.HasActiveTech(tech.ID) { - status = color.Render(mode, color.Parse("6C"), "ON") + status = color.Render(mode, g.resolveConstant(sess, "tech_status_on"), "ON") } else { - status = color.Render(mode, color.Parse("F0"), "off") + status = color.Render(mode, g.resolveConstant(sess, "tech_status_off"), "off") } - nameStr = color.Render(mode, color.Parse("49"), tech.Name) + nameStr = color.Render(mode, g.resolveConstant(sess, "tech_name_unlocked"), tech.Name) } else { - status = color.Render(mode, color.Parse("A7"), "locked") - nameStr = color.Render(mode, color.Parse("F0"), tech.Name) + status = color.Render(mode, g.resolveConstant(sess, "tech_status_locked"), "locked") + nameStr = color.Render(mode, g.resolveConstant(sess, "tech_name_locked"), tech.Name) } effect := techEffectString(tech) |
