aboutsummaryrefslogtreecommitdiff
path: root/internal/player
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-05 06:03:49 -0400
committerhistoria <[not public]>2026-10-05 06:03:49 -0400
commitc84a9944356f590d90d819d652bdf1349ebacd40 (patch)
treeaf1ee15992e141fb3eb6f26cac02cf06306d4982 /internal/player
parent8b78aa4cd930fde145959704ba7bdc0e57465b9b (diff)
downloadthehouseoficarus-c84a9944356f590d90d819d652bdf1349ebacd40.tar.gz
feat: prediction exchange with live polymarket data
Diffstat (limited to 'internal/player')
-rw-r--r--internal/player/player.go16
1 files changed, 9 insertions, 7 deletions
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:"-"`