aboutsummaryrefslogtreecommitdiff
path: root/internal/game/game.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/game.go')
-rw-r--r--internal/game/game.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/game/game.go b/internal/game/game.go
index 1ce89e5..0c550ae 100644
--- a/internal/game/game.go
+++ b/internal/game/game.go
@@ -15,6 +15,7 @@ import (
"thehouseoficarus/internal/casino"
"thehouseoficarus/internal/combat"
"thehouseoficarus/internal/config"
+ "thehouseoficarus/internal/cryptomarket"
"thehouseoficarus/internal/engine"
"thehouseoficarus/internal/game/hacking"
"thehouseoficarus/internal/item"
@@ -62,6 +63,7 @@ type Game struct {
GlobalFlags *GlobalFlagStore
Combat *combat.Tracker
PredictionClient *prediction.Client
+ CryptoClient *cryptomarket.Client
Casino *casino.Manager
flagIndex *flagTriggerIndex
queue *CommandQueue
@@ -632,7 +634,7 @@ func (g *Game) handleGameCommand(sess *net.Session, input string) {
cmd := parts[0]
// Counter commands exist only while using the counter, before global prefixes.
- if g.predictionInputOwned(sess, cmd) {
+ if g.cryptoInputOwned(sess, cmd) || g.predictionInputOwned(sess, cmd) {
g.executeCommand(sess, cmd, parts[1:], input)
g.writePrompt(sess)
return