Add pets for tiers 4-6.

This commit is contained in:
Greyson Parrelli
2026-07-23 00:10:20 -04:00
parent 8d43bbf61e
commit 10ac457e2e
11 changed files with 1334 additions and 163 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
package game
import (
"slices"
"testing"
)
@@ -171,7 +172,8 @@ func TestTradeInThreeMatchingSuits(t *testing.T) {
if err := g.TradeChoose(p.ID, 0); err != nil {
t.Fatal(err)
}
if len(p.Deck) != 1 || p.Deck[0].ID != chosen.ID {
// The chosen card joins the deck (its Buy effect may add apples too).
if slices.IndexFunc(p.Deck, func(c Card) bool { return c.ID == chosen.ID }) < 0 {
t.Fatal("chosen card should join the deck")
}
deck2 := g.ShopDecks[1]