From c84a9944356f590d90d819d652bdf1349ebacd40 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 5 Oct 2026 06:03:49 -0400 Subject: feat: prediction exchange with live polymarket data --- internal/game/game.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'internal/game/game.go') diff --git a/internal/game/game.go b/internal/game/game.go index 521c892..1ce89e5 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -21,6 +21,7 @@ import ( "thehouseoficarus/internal/net" "thehouseoficarus/internal/object" "thehouseoficarus/internal/player" + "thehouseoficarus/internal/prediction" "thehouseoficarus/internal/world" ) @@ -60,6 +61,7 @@ type Game struct { Hub *net.Hub GlobalFlags *GlobalFlagStore Combat *combat.Tracker + PredictionClient *prediction.Client Casino *casino.Manager flagIndex *flagTriggerIndex queue *CommandQueue @@ -629,6 +631,13 @@ 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) { + g.executeCommand(sess, cmd, parts[1:], input) + g.writePrompt(sess) + return + } + // Seated casino players may shorten any of their game's verbs to an // unambiguous prefix (b 1000 -> bet 1000, sp -> spin at Big 6). Only the // current game's vocabulary is considered, and exact commands still win, so -- cgit v1.2.3