From 5b9a75a1520a198c9c6b1f1f55e05c9f4aab5629 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 22 Jun 2026 04:24:11 -0400 Subject: feat: map now only reveals with exploration. players can set custom map symbols. --- internal/game/cmd_color.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'internal/game/cmd_color.go') diff --git a/internal/game/cmd_color.go b/internal/game/cmd_color.go index fe2fe62..51f8158 100644 --- a/internal/game/cmd_color.go +++ b/internal/game/cmd_color.go @@ -11,7 +11,7 @@ import ( func (g *Game) doColor(sess *net.Session, input string) { if sess.Account == nil { - sess.WriteLine("\nYou must be logged into an account to set colors.") + sess.WriteLine("You must be logged into an account to set colors.") return } @@ -24,7 +24,7 @@ func (g *Game) doColor(sess *net.Session, input string) { target := strings.ToLower(parts[0]) if _, ok := config.DefaultColors()[target]; !ok { - sess.WriteLine(fmt.Sprintf("\nUnknown color target: %s", target)) + sess.WriteLine(fmt.Sprintf("Unknown color target: %s", target)) sess.WriteLine("Available targets:") for _, t := range colorCategoryOrder { sess.WriteLine(fmt.Sprintf(" %s", t)) @@ -35,7 +35,7 @@ func (g *Game) doColor(sess *net.Session, input string) { if len(parts) == 1 { current := g.getCurrentColor(sess, target) source := g.colorSource(sess, target) - sess.WriteLine(fmt.Sprintf("\n%s = %s [source: %s]", target, current, source)) + sess.WriteLine(fmt.Sprintf("%s = %s [source: %s]", target, current, source)) return } @@ -43,26 +43,26 @@ func (g *Game) doColor(sess *net.Session, input string) { if len(parts) == 2 && parts[1] == "reset" { g.saveAccountColor(sess, target, "") - sess.WriteLine(fmt.Sprintf("\n%s reset to default (%s).", target, config.DefaultColors()[target])) + sess.WriteLine(fmt.Sprintf("%s reset to default (%s).", target, config.DefaultColors()[target])) return } if value == "off" { g.saveAccountColor(sess, target, "off") - sess.WriteLine(fmt.Sprintf("\n%s set to off.", target)) + sess.WriteLine(fmt.Sprintf("%s set to off.", target)) return } spec := color.Parse(value) if spec.Empty() && value != "" { - sess.WriteLine(fmt.Sprintf("\nInvalid color string: %s", value)) + sess.WriteLine(fmt.Sprintf("Invalid color string: %s", value)) sess.WriteLine("Format: <0-255> [bg:<0-255>] [bold] [dim] [underline]") sess.WriteLine("Example: 208 bold") return } g.saveAccountColor(sess, target, value) - sess.WriteLine(fmt.Sprintf("\n%s set to %s.", target, value)) + sess.WriteLine(fmt.Sprintf("%s set to %s.", target, value)) } func (g *Game) saveAccountColor(sess *net.Session, target, value string) { -- cgit v1.2.3