From 4cc1ddcd185509080b4b3e15d1646567edd51c9d Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 15 Jun 2026 02:57:35 -0400 Subject: removed game speed for being broken and an antifeature anyway. added color support. --- internal/game/cmd_move.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'internal/game/cmd_move.go') diff --git a/internal/game/cmd_move.go b/internal/game/cmd_move.go index 0b6571e..65a2875 100644 --- a/internal/game/cmd_move.go +++ b/internal/game/cmd_move.go @@ -3,6 +3,7 @@ package game import ( "fmt" + "thirdcollapse/internal/color" "thirdcollapse/internal/combat" "thirdcollapse/internal/net" "thirdcollapse/internal/player" @@ -64,6 +65,8 @@ func (g *Game) doMove(sess *net.Session, dir string) { g.seedRoomMobs(p.RoomID) g.seedRoomObjects(p.RoomID) + mode := g.colorMode(sess) + if g.Hub != nil { for _, other := range g.Hub.PlayersInRoom(oldRoom) { if other != sess { @@ -78,14 +81,14 @@ func (g *Game) doMove(sess *net.Session, dir string) { } } - sess.WriteLine(fmt.Sprintf("\nYou walk %s.", exitDir)) + sess.WriteLine(fmt.Sprintf("\nYou walk %s.", color.Wrap(mode, "cyan", string(exitDir)))) p.ActionState = &ActionState{Type: ActionMoving, Direction: string(exitDir)} if p.OptionBool("description") { g.doLook(sess) } else { targetRoom, _ := g.World.LoadRoom(targetID) if targetRoom != nil { - sess.WriteLine(targetRoom.Name) + sess.WriteLine(color.Wrap(mode, "cyan", targetRoom.Name)) } } -- cgit v1.2.3