aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_jack.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_jack.go')
-rw-r--r--internal/game/cmd_jack.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/game/cmd_jack.go b/internal/game/cmd_jack.go
index 8cb5062..16f8b2a 100644
--- a/internal/game/cmd_jack.go
+++ b/internal/game/cmd_jack.go
@@ -10,6 +10,12 @@ import (
"thehouseoficarus/internal/player"
)
+func (g *Game) executeJack(sess *net.Session, args []string, rawInput string) {
+ p := sess.Player
+ g.cancelAction(p)
+ g.doJack(sess, strings.Join(args, " "))
+}
+
func (g *Game) doJack(sess *net.Session, target string) {
p := sess.Player