aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_color.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-22 04:24:11 -0400
committerhistoria <[not public]>2026-06-22 04:24:11 -0400
commit5b9a75a1520a198c9c6b1f1f55e05c9f4aab5629 (patch)
tree18f500ca3492ba206a3f66e2f01146b05a1675b2 /internal/game/cmd_color.go
parent7f07c7236578e1a7bcef0282ff9d7f5bf8c7c045 (diff)
downloadthehouseoficarus-5b9a75a1520a198c9c6b1f1f55e05c9f4aab5629.tar.gz
feat: map now only reveals with exploration. players can set custom map symbols.
Diffstat (limited to 'internal/game/cmd_color.go')
-rw-r--r--internal/game/cmd_color.go14
1 files changed, 7 insertions, 7 deletions
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) {