diff options
Diffstat (limited to 'internal/game/cmd_score.go')
| -rw-r--r-- | internal/game/cmd_score.go | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/internal/game/cmd_score.go b/internal/game/cmd_score.go index 59cedb1..488979c 100644 --- a/internal/game/cmd_score.go +++ b/internal/game/cmd_score.go @@ -92,14 +92,14 @@ func (g *Game) doScore(sess *net.Session) { sep() nameStr := g.colorize(sess, "player_name", p.Name) - clStr := color.Render(mode, color.Parse("E6"), fmt.Sprintf("Combat Lvl %d", p.CombatLevel())) + clStr := color.Render(mode, color.Parse("FA"), fmt.Sprintf("Combat Lvl %d", p.CombatLevel())) roomStr := g.colorize(sess, "room_number", fmt.Sprintf("Room #%d", p.RoomID)) row1 := padded(nameStr, 20) + padded(clStr, 24) + roomStr content(row1) creditsStr := g.colorize(sess, "credits_pickup", formatInt(p.Credits)) chipsStr := g.colorize(sess, "chips_pickup", formatInt(countChips(p))) - styleStr := color.Render(mode, color.Parse("4B"), fmt.Sprintf("Style: %s", p.AttackStyle)) + styleStr := color.Render(mode, color.Parse("49"), fmt.Sprintf("Style: %s", p.AttackStyle)) invStr := fmt.Sprintf("Inv: %d/28", 28-p.FreeSlots()) row2 := padded("Credits: "+creditsStr, 19) + padded("Chips: "+chipsStr, 16) + padded(styleStr, 22) + invStr content(row2) @@ -112,15 +112,15 @@ func (g *Game) doScore(sess *net.Session) { hpLine := fmt.Sprintf("HP [%s] %s / %s", hpBarStr, color.Render(mode, color.ColorSpec{Fg: hpFg}, fmt.Sprint(p.HP)), - color.Render(mode, color.Parse("E6"), fmt.Sprint(p.MaxHP()))) + color.Render(mode, color.Parse("FA"), fmt.Sprint(p.MaxHP()))) content(hpLine) batBarRaw := ui.RenderBarF(p.Battery, p.MaxBattery(), 26, unicode) - batBarStr := color.Render(mode, color.ColorSpec{Fg: 45}, batBarRaw) + batBarStr := color.Render(mode, color.ColorSpec{Fg: 110}, batBarRaw) batLine := fmt.Sprintf("BAT [%s] %s / %s", batBarStr, - color.Render(mode, color.ColorSpec{Fg: 45}, fmt.Sprintf("%.1f", p.Battery)), - color.Render(mode, color.Parse("E6"), fmt.Sprintf("%.0f", p.MaxBattery()))) + color.Render(mode, color.ColorSpec{Fg: 110}, fmt.Sprintf("%.1f", p.Battery)), + color.Render(mode, color.Parse("FA"), fmt.Sprintf("%.0f", p.MaxBattery()))) content(batLine) gap() @@ -148,7 +148,7 @@ func (g *Game) doScore(sess *net.Session) { buildSkillCell := func(s player.SkillName) string { level := p.Level(s) lvlColor := skillLevelColor(level) - name := padded(color.Render(mode, color.ColorSpec{Fg: 75}, skillDisplay[s]), 12) + name := padded(color.Render(mode, color.ColorSpec{Fg: 110}, skillDisplay[s]), 12) lvl := color.Render(mode, color.ColorSpec{Fg: lvlColor}, fmt.Sprintf("%2d", level)) xpBar := xpProgressBar(p.Skills[s], 12, unicode) return fmt.Sprintf("%s %s [%s]", name, lvl, xpBar) @@ -187,8 +187,8 @@ func (g *Game) doScore(sess *net.Session) { for _, id := range p.ActiveTechList() { def := GetTechDef(id) if def != nil { - on := color.Render(mode, color.ColorSpec{Fg: 82}, "[ON]") - name := color.Render(mode, color.ColorSpec{Fg: 75}, def.Name) + on := color.Render(mode, color.ColorSpec{Fg: 108}, "[ON]") + name := color.Render(mode, color.ColorSpec{Fg: 110}, def.Name) techParts = append(techParts, on+" "+name) } } @@ -197,9 +197,9 @@ func (g *Game) doScore(sess *net.Session) { if len(p.ActiveBuffs) > 0 { for _, buff := range p.ActiveBuffs { buffLine := fmt.Sprintf("%s +%d%% %s (%d ticks remaining)", - color.Render(mode, color.ColorSpec{Fg: 82}, "[BUFF]"), + color.Render(mode, color.ColorSpec{Fg: 108}, "[BUFF]"), buff.BonusPercent, - color.Render(mode, color.ColorSpec{Fg: 75}, buff.Stat), + color.Render(mode, color.ColorSpec{Fg: 110}, buff.Stat), buff.TicksLeft) content(buffLine) } @@ -252,13 +252,13 @@ func hpBarStyle(current, max int) *ui.BarStyle { var fg int switch { case pct >= 0.7: - fg = 84 + fg = 108 case pct >= 0.4: - fg = 208 + fg = 179 default: - fg = 196 + fg = 167 } - return &ui.BarStyle{FilledColor: fg, EmptyColor: 238, EmptyDim: true} + return &ui.BarStyle{FilledColor: fg, EmptyColor: 237, EmptyDim: true} } func hpBarFg(current, max int) int { @@ -268,26 +268,26 @@ func hpBarFg(current, max int) int { pct := float64(current) / float64(max) switch { case pct >= 0.7: - return 84 + return 108 case pct >= 0.4: - return 208 + return 179 default: - return 196 + return 167 } } func skillLevelColor(level int) int { switch { case level >= 99: - return 196 + return 180 case level >= 80: - return 214 + return 179 case level >= 60: - return 208 + return 116 case level >= 40: - return 220 + return 73 default: - return 40 + return 66 } } |
