aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_look.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-15 02:57:35 -0400
committerhistoria <[not public]>2026-06-15 02:58:50 -0400
commit4cc1ddcd185509080b4b3e15d1646567edd51c9d (patch)
tree2a564846ad4fd159a2d7e55451bfa9569fe8c0b8 /internal/game/cmd_look.go
parent445c4612cc5cf2c226f85894b6ad1e2419a374e2 (diff)
downloadthehouseoficarus-4cc1ddcd185509080b4b3e15d1646567edd51c9d.tar.gz
removed game speed for being broken and an antifeature anyway. added color support.
Diffstat (limited to 'internal/game/cmd_look.go')
-rw-r--r--internal/game/cmd_look.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/game/cmd_look.go b/internal/game/cmd_look.go
index ac0c42a..992f3d0 100644
--- a/internal/game/cmd_look.go
+++ b/internal/game/cmd_look.go
@@ -6,6 +6,7 @@ import (
"strconv"
"strings"
+ "thirdcollapse/internal/color"
"thirdcollapse/internal/combat"
"thirdcollapse/internal/net"
"thirdcollapse/internal/player"
@@ -20,16 +21,17 @@ func (g *Game) doLook(sess *net.Session) {
return
}
+ mode := g.colorMode(sess)
sess.WriteLines(
"",
- fmt.Sprintf("%s (#%d)", room.Name, room.ID),
+ fmt.Sprintf("%s (#%d)", color.Wrap(mode, "cyan", room.Name), room.ID),
)
descWidth := p.OptionInt("room_desc_width")
if descWidth <= 0 {
descWidth = 70
}
- descLines := wrapText(room.Description, descWidth)
+ descLines := wrapText(g.colorTag(sess, room.Description), descWidth)
wroteDesc := false
if p.OptionString("tiny_map") != "off" {
mapLines := buildTinyMap(g, p.RoomID, mapGlyphsForPlayer(p.OptionBool("unicode")))