diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-08-15 23:57:07 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:39 +0200 |
| commit | 5f97fb7a1606908e99be97d67e5871d55067dac7 (patch) | |
| tree | 66909b50251157b944b67752018e7284a037c704 | |
| parent | a82e95a886c857f1e44c225f936a71739e733427 (diff) | |
| download | muhqs-game-5f97fb7a1606908e99be97d67e5871d55067dac7.tar.gz muhqs-game-5f97fb7a1606908e99be97d67e5871d55067dac7.zip | |
allow more equipments in cav archer challenge
| -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) |
