aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_talk.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-05 17:05:14 -0400
committerhistoria <[not public]>2026-10-05 17:05:14 -0400
commite42952469dadfb3535633c66c881050ac128703c (patch)
treea78f7396b72cdbd6fa4f6c454c830f40cf2ad0cb /internal/game/act_talk.go
parent90ad8c0c33b519d5830c69d4128bdc984b5e9de8 (diff)
downloadthehouseoficarus-e42952469dadfb3535633c66c881050ac128703c.tar.gz
fix: gather verbs, walk oom, admin path bypass, roulette refund
Diffstat (limited to 'internal/game/act_talk.go')
-rw-r--r--internal/game/act_talk.go14
1 files changed, 13 insertions, 1 deletions
diff --git a/internal/game/act_talk.go b/internal/game/act_talk.go
index 239e6f5..fa93435 100644
--- a/internal/game/act_talk.go
+++ b/internal/game/act_talk.go
@@ -278,7 +278,19 @@ func (g *Game) handleTalkInput(sess *net.Session, input string) {
func (g *Game) advanceTalk(sess *net.Session, p *player.Player) {
td, ok := p.Action.Data.(*behavior.TalkData)
- if !ok || td.Cfg == nil {
+ if !ok {
+ g.cancelAction(p)
+ sess.SetState(net.StateGame)
+ return
+ }
+ if td.Cfg == nil {
+ if td.EstateDirectory {
+ // The estate-directory prompt is a talk action with no dialogue
+ // tree; it waits for player input, so there is nothing to advance.
+ // (handleTalkInput has the same exemption.) Without this the prompt
+ // was cancelled one tick after it appeared.
+ return
+ }
g.cancelAction(p)
sess.SetState(net.StateGame)
return