aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_use.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_use.go')
-rw-r--r--internal/game/cmd_use.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/game/cmd_use.go b/internal/game/cmd_use.go
index 4d4ce88..7d40cc2 100644
--- a/internal/game/cmd_use.go
+++ b/internal/game/cmd_use.go
@@ -19,6 +19,10 @@ func (g *Game) doUse(sess *net.Session, input string) {
p := sess.Player.(*player.Player)
g.CancelAction(p)
+ if g.tryRecharge(sess, p, input) {
+ return
+ }
+
lower := strings.ToLower(input)
sep := ""