Initial pass at Golden Pack.
This commit is contained in:
+15
-5
@@ -17,16 +17,26 @@ func SimulateBattle(round, prioritySeat int, deckA, deckB []Card, rollDie func()
|
||||
{Name: "A", Seat: 0, Deck: append([]Card(nil), deckA...)},
|
||||
{Name: "B", Seat: 1, Deck: append([]Card(nil), deckB...)},
|
||||
},
|
||||
// Rollouts never pause for a mid-battle decision; a fixed policy resolves
|
||||
// them (Golden pack: Nurse Shark).
|
||||
autoBattleDecide: true,
|
||||
}
|
||||
g.resolveBattle()
|
||||
g.startBattle()
|
||||
return g.Battle
|
||||
}
|
||||
|
||||
// TierContents returns the full printed contents of a tier's shop deck —
|
||||
// public information from the box. Cards carry placeholder IDs; they are
|
||||
// reference data, not live instances.
|
||||
// TierContents returns the full printed contents of a tier's shop deck for the
|
||||
// default pack. Cards carry placeholder IDs; they are reference data, not live
|
||||
// instances.
|
||||
func TierContents(tier int) []Card {
|
||||
scratch := &Game{}
|
||||
return TierContentsForPack(DefaultPack, tier)
|
||||
}
|
||||
|
||||
// TierContentsForPack returns a pack's printed tier contents — public
|
||||
// information from the box. Used by the AI, which decides from a View that
|
||||
// names its pack.
|
||||
func TierContentsForPack(pack string, tier int) []Card {
|
||||
scratch := &Game{Pack: pack}
|
||||
scratch.buildShopDecks()
|
||||
if tier < 1 || tier > len(scratch.ShopDecks) {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user