aboutsummaryrefslogtreecommitdiff
path: root/internal/game/game.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-05 14:22:14 -0400
committerhistoria <[not public]>2026-10-05 14:22:14 -0400
commit90ad8c0c33b519d5830c69d4128bdc984b5e9de8 (patch)
treec10bc0bebfbed6fde01a7f08cf6e2d98809b91a7 /internal/game/game.go
parentc84a9944356f590d90d819d652bdf1349ebacd40 (diff)
downloadthehouseoficarus-90ad8c0c33b519d5830c69d4128bdc984b5e9de8.tar.gz
feat: cryptocurrency exchange added to casino
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