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/player/player.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'internal/player') diff --git a/internal/player/player.go b/internal/player/player.go index 43f5d7e..5acced6 100644 --- a/internal/player/player.go +++ b/internal/player/player.go @@ -7,6 +7,7 @@ import ( "thehouseoficarus/internal/behavior" "thehouseoficarus/internal/item" + "thehouseoficarus/internal/prediction" ) type SkillName string @@ -194,13 +195,14 @@ type Player struct { // here, and the same save that settles or refunds the round removes it. // If the process dies with an entry still listed, startup returns the // stake (refund-on-lost-round). See PendingWager. - PendingWagers []PendingWager `yaml:"pending_wagers,omitempty"` - Description string `yaml:"description"` - AttackStyle AttackStyle `yaml:"attack_style"` - Prompt string `yaml:"prompt"` - Options map[string]any `yaml:"-"` - Flags map[string]any `yaml:"flags"` - PendingSequence *PendingSequence `yaml:"pending_sequence,omitempty"` + PendingWagers []PendingWager `yaml:"pending_wagers,omitempty"` + PredictionContracts []prediction.Contract `yaml:"prediction_contracts,omitempty"` + Description string `yaml:"description"` + AttackStyle AttackStyle `yaml:"attack_style"` + Prompt string `yaml:"prompt"` + Options map[string]any `yaml:"-"` + Flags map[string]any `yaml:"flags"` + PendingSequence *PendingSequence `yaml:"pending_sequence,omitempty"` RegenerateTick int AmmoQty int `yaml:"ammo_qty,omitempty"` Action *behavior.Action `yaml:"-"` -- cgit v1.2.3