aboutsummaryrefslogtreecommitdiff
path: root/internal/game/game.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/game.go')
-rw-r--r--internal/game/game.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/game.go b/internal/game/game.go
index acd2924..3cfd811 100644
--- a/internal/game/game.go
+++ b/internal/game/game.go
@@ -153,7 +153,7 @@ func (g *Game) HandleSession(sess *net.Session, input string) {
g.handleGameCommand(sess, input)
case net.StateChangeDesc:
g.handleDescChange(sess, input)
- case net.StateTalk:
+ case net.StateTalk, net.StateTalkSequence:
g.handleTalkInput(sess, input)
case net.StateShop:
g.handleShopInput(sess, input)
@@ -177,11 +177,11 @@ func (g *Game) HandleSession(sess *net.Session, input string) {
}
func (g *Game) writePrompt(sess *net.Session) {
- sess.Write("\r\n" + g.promptStr(sess))
+ sess.WritePrompt(g.promptStr(sess))
}
func (g *Game) reprompt(sess *net.Session) {
- sess.Write(g.promptStr(sess))
+ sess.Reprompt(g.promptStr(sess))
}
func (g *Game) handleGameCommand(sess *net.Session, input string) {