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-17 15:24:25 +0200 |
| commit | f57982de3cbbf1723269bac49ca33076b2bb26cc (patch) | |
| tree | c8dd729cb849a348ab406b3631dc8d1df4976b8e /go/game/challenge.go | |
| parent | e0d61598b51ddeeca228897d91b08498fa4fc7da (diff) | |
| download | muhqs-game-f57982de3cbbf1723269bac49ca33076b2bb26cc.tar.gz muhqs-game-f57982de3cbbf1723269bac49ca33076b2bb26cc.zip | |
allow more equipments in cav archer challenge
Diffstat (limited to 'go/game/challenge.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) |
