Add promo as set
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Hamcha 2019-08-26 16:00:59 +02:00
parent 0e2c613375
commit 69f54c08cc
2 changed files with 3 additions and 1 deletions

View file

@ -58,7 +58,7 @@ func LoadCardList(list []string, fetch bool) (out []Card, err error) {
for _, promoid := range promoIDs { for _, promoid := range promoIDs {
if strings.ToLower(card) == promoid { if strings.ToLower(card) == promoid {
card = strings.ToLower(card) card = strings.ToLower(card)
setid = "promo" setid = SetPromo
break break
} }
} }

View file

@ -30,6 +30,7 @@ const (
SetDefendersOfEquestria SetID = "DE" SetDefendersOfEquestria SetID = "DE"
SetSeaquestriaBeyond SetID = "SB" SetSeaquestriaBeyond SetID = "SB"
SetFriendsForever SetID = "FF" SetFriendsForever SetID = "FF"
SetPromo SetID = "Promo"
) )
// BlockID denotes a certain block // BlockID denotes a certain block
@ -55,4 +56,5 @@ var allSets = []SetID{
SetDefendersOfEquestria, SetDefendersOfEquestria,
SetSeaquestriaBeyond, SetSeaquestriaBeyond,
SetFriendsForever, SetFriendsForever,
SetPromo,
} }