diff options
Diffstat (limited to 'go')
| -rw-r--r-- | go/game/challenge.go | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/go/game/challenge.go b/go/game/challenge.go index 0cee7d63..3b5b35cd 100644 --- a/go/game/challenge.go +++ b/go/game/challenge.go @@ -54,10 +54,15 @@ func prepCavArcherChallenge(s *LocalState) *LocalState { // add support equipment if nUnits > 3 { - candidates := NewDeckFromCardPaths(Sets.Base.CardPaths()).FilterCards(func(c *Card) bool { - return c.Type == CardTypes.Equipment - }) - e := NewCard(candidates[rand.Intn(len(candidates))].Path()) + candidates := []string{ + "base/shield", + "base/tower_shield", + "equipments/armor", + "equipments/gear", + "equipments/mace", + // "equipments/poison_dagger", + } + e := NewCard(candidates[rand.Intn(len(candidates))]) tiles := s._map.AvailableTilesFor(e) tile := tiles[rand.Intn(len(tiles))] s.addNewEquipment(e, tile.Position, p) |
