Feat: Add ability to ban cards and display it

This commit is contained in:
zuma 2025-04-24 15:55:07 +02:00
parent 899bdd4714
commit 2d1b64fdd3
7 changed files with 42 additions and 25 deletions

View file

@ -31,6 +31,7 @@ type CacheCarteListItem struct {
NumberOfPossibleDecks int
PercentageOfDecks float64
Synergy float64
Banned bool
}
type CacheCarteListItemWithSynergy struct {
@ -307,5 +308,6 @@ func CreateCardData(c Carte, decksByBset map[string][]Deck, numberOfDecksPerColo
NumberOfDecks: numberOfDecksPerCard[c.ID],
NumberOfPossibleDecks: numberOfPossibleDecks,
PercentageOfDecks: percentageOfDecks,
Banned: c.Banned,
}
}