aboutsummaryrefslogtreecommitdiff
path: root/internal/game/action_steal.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/action_steal.go')
-rw-r--r--internal/game/action_steal.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/game/action_steal.go b/internal/game/action_steal.go
index ee5456c..3510ce7 100644
--- a/internal/game/action_steal.go
+++ b/internal/game/action_steal.go
@@ -16,6 +16,16 @@ import (
"thehouseoficarus/internal/world"
)
+func (g *Game) executeSteal(sess *net.Session, args []string, rawInput string) {
+ p := sess.Player
+ g.cancelAction(p)
+ if len(args) == 0 {
+ g.doSteal(sess, "")
+ } else {
+ g.doSteal(sess, strings.Join(args, " "))
+ }
+}
+
var stallGuardTalk = &action.TalkConfig{
Nodes: map[string]action.TalkNode{
"start": {