aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_color.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-27 16:50:41 -0400
committerhistoria <[not public]>2026-06-27 16:50:41 -0400
commit988b006a5bb9edb6465653566e7bdf8175347b8c (patch)
tree3a1fceff2ee80c11b5dafcc49c13ababe021e880 /internal/game/cmd_color.go
parent1cab9ca20e24742f770a676f84e4ed9f1636f297 (diff)
downloadthehouseoficarus-988b006a5bb9edb6465653566e7bdf8175347b8c.tar.gz
feat: one-way map links, blocked paths on map, map grid startup validation, user colors for maps
Diffstat (limited to 'internal/game/cmd_color.go')
-rw-r--r--internal/game/cmd_color.go15
1 files changed, 9 insertions, 6 deletions
diff --git a/internal/game/cmd_color.go b/internal/game/cmd_color.go
index 33b406d..8e90f02 100644
--- a/internal/game/cmd_color.go
+++ b/internal/game/cmd_color.go
@@ -57,8 +57,8 @@ func (g *Game) doColor(sess *net.Session, input string) {
spec := color.Parse(value)
if spec.Empty() && 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")
+ sess.WriteLine("Format: <00-FF> [bg:<00-FF>] [bold] [dim] [underline]")
+ sess.WriteLine("Example: D0 bold")
return
}
@@ -162,6 +162,9 @@ var colorCategoryOrder = []string{
"eat_food",
"drop_message",
"credits_pickup",
+
+ "map_at",
+ "map_blocked",
}
func showColorTable(g *Game, sess *net.Session) {
@@ -169,9 +172,9 @@ func showColorTable(g *Game, sess *net.Session) {
mode := g.colorMode(sess)
table := &ui.Table{
Columns: []string{
- color.Render(mode, color.Parse("75"), "Target"),
+ color.Render(mode, color.Parse("4B"), "Target"),
"Color",
- color.Render(mode, color.Parse("243"), "Source"),
+ color.Render(mode, color.Parse("F3"), "Source"),
},
}
for _, cat := range colorCategoryOrder {
@@ -185,9 +188,9 @@ func showColorTable(g *Game, sess *net.Session) {
}
}
table.Rows = append(table.Rows, []string{
- color.Render(mode, color.Parse("75"), cat),
+ color.Render(mode, color.Parse("4B"), cat),
coloredVal,
- color.Render(mode, color.Parse("243"), source),
+ color.Render(mode, color.Parse("F3"), source),
})
}
for _, line := range table.Render(p.OptionBool("unicode")) {