diff options
| author | historia <[not public]> | 2026-06-15 00:03:55 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-15 00:03:55 -0400 |
| commit | b6fdde0aa6fcefd735e7c550aaa7fca879023f1c (patch) | |
| tree | 924be72a906522d60512213cdbaba1f55e694bd3 /internal/game/game.go | |
| parent | eb37418b933d7bd996658209e867ea3f3e3806ec (diff) | |
| download | thehouseoficarus-b6fdde0aa6fcefd735e7c550aaa7fca879023f1c.tar.gz | |
feat: unicode option, fixed up options and tables
Diffstat (limited to 'internal/game/game.go')
| -rw-r--r-- | internal/game/game.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/game.go b/internal/game/game.go index 37a1f3f..7447215 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -177,10 +177,9 @@ func (g *Game) handleGameCommand(sess *net.Session, input string) { Args: strings.Join(parts[1:], " "), Timestamp: time.Now(), }) - if !p.OptionBool("queue_actions_silently") { + if !p.OptionBool("queue_silently") { sess.WriteLine(fmt.Sprintf("\nYou prepare to %s.", cmd)) } - sess.Write("\r\n> ") return } @@ -191,10 +190,9 @@ func (g *Game) handleGameCommand(sess *net.Session, input string) { Timestamp: time.Now(), } g.cancelRest(p.Name) - if !p.OptionBool("queue_actions_silently") { + if !p.OptionBool("queue_silently") { sess.WriteLine(fmt.Sprintf("\nYou prepare to %s.", cmd)) } - sess.Write("\r\n> ") } func (g *Game) executeCommand(sess *net.Session, cmd string, args []string, rawInput string) { @@ -401,6 +399,7 @@ func (g *Game) ProcessQueuedCommands() { if len(parts) > 0 { g.executeCommand(qc.Session, parts[0], parts[1:], qc.Command+" "+qc.Args) } + qc.Session.Write("\r\n> ") } delete(g.freeQueue, p.Name) } @@ -418,6 +417,7 @@ func (g *Game) ProcessQueuedCommands() { if len(parts) > 0 { g.executeCommand(qc.Session, parts[0], parts[1:], qc.Command+" "+qc.Args) } + qc.Session.Write("\r\n> ") } g.activeQueue = make(map[string]*QueuedCommand) |
