aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_steal.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-25 19:37:20 -0400
committerhistoria <[not public]>2026-06-25 19:37:20 -0400
commitc55d0e4150b23f2c5c9f96bbc3d4dc2fc6dbaa36 (patch)
treed1c02acea2b4c8d0f672c1539cfdb373b6272ed0 /internal/game/act_steal.go
parent068ce514ea3eebdc42b595c631b4b00ce4594577 (diff)
downloadthehouseoficarus-c55d0e4150b23f2c5c9f96bbc3d4dc2fc6dbaa36.tar.gz
feat: yaml conversation trees more robust
Diffstat (limited to 'internal/game/act_steal.go')
-rw-r--r--internal/game/act_steal.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/game/act_steal.go b/internal/game/act_steal.go
index 6f67944..7371782 100644
--- a/internal/game/act_steal.go
+++ b/internal/game/act_steal.go
@@ -28,7 +28,7 @@ func (g *Game) executeSteal(sess *net.Session, args []string, rawInput string) {
var stallGuardTalk = &behavior.TalkConfig{
Nodes: map[string]behavior.TalkNode{
"start": {
- Message: "Caught you red-handed! You have three options, thief.",
+ Message: behavior.MessageList{"Caught you red-handed! You have three options, thief."},
Options: []behavior.TalkOption{
{Text: "\"I'll pay a fine. (500 credits)\"", Goto: "bribe", Condition: &behavior.Condition{MinCredits: 500}},
{Text: "\"Take me to jail.\"", Goto: "jail"},
@@ -36,19 +36,19 @@ var stallGuardTalk = &behavior.TalkConfig{
},
},
"bribe": {
- Message: "Smart choice. Hand over 500 credits and we'll forget this happened.",
+ Message: behavior.MessageList{"Smart choice. Hand over 500 credits and we'll forget this happened."},
Action: &behavior.NodeAction{Cost: 500},
- Options: []behavior.TalkOption{{Text: "\"Fine, take it.\"", End: true}},
+ Options: []behavior.TalkOption{{Text: "\"Fine, take it.\""}},
},
"jail": {
- Message: "Off to the detention cell with you!",
+ Message: behavior.MessageList{"Off to the detention cell with you!"},
Action: &behavior.NodeAction{Teleport: 162},
- Options: []behavior.TalkOption{{Text: "(You are dragged away)", End: true}},
+ Options: []behavior.TalkOption{{Text: "(You are dragged away)"}},
},
"fight": {
- Message: "Then defend yourself!",
+ Message: behavior.MessageList{"Then defend yourself!"},
Action: &behavior.NodeAction{SetFlags: map[string]any{"guard_hostile": true}},
- Options: []behavior.TalkOption{{Text: "(The guard attacks!)", End: true}},
+ Options: []behavior.TalkOption{{Text: "(The guard attacks!)"}},
},
},
}