diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-03 22:02:03 -0400 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:22 +0200 |
| commit | 1ff595846cb48da82718975826d45e6d4e559bad (patch) | |
| tree | 4d9fe677deb5581bcf0f8d2c9dadc4d4353d12e2 | |
| parent | ce22bf133cc341e64a106152e486ba410436710f (diff) | |
| download | muhqs-game-1ff595846cb48da82718975826d45e6d4e559bad.tar.gz muhqs-game-1ff595846cb48da82718975826d45e6d4e559bad.zip | |
add new random draft pick action
| -rw-r--r-- | go/game/action.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/go/game/action.go b/go/game/action.go index 62703180..373c814f 100644 --- a/go/game/action.go +++ b/go/game/action.go @@ -115,6 +115,11 @@ func NewDraftPick(p *Player, pack PileOfCards, card *Card) Action { return &DraftPick{player: p, pack: pack, pick: card} } +func newRandomDraftPick(p *Player, n PlayerNotification) Action { + pack := n.Context.(PileOfCards) + return NewDraftPick(p, pack, pack.RandomCard()) +} + type ActionBase struct { source interface{} Card *Card |
