Skip to content

Commit b32eaa2

Browse files
feat: add trialCount to collection
1 parent 33e646c commit b32eaa2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Hearthstone Deck Tracker/Hearthstone/Collection.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ public Collection(ulong accountHi, ulong accountLo, BattleTag battleTag, HearthM
3939
x.FirstOrDefault(c => c.Card.PremiumType == 1)?.Card.Count ?? 0,
4040
x.FirstOrDefault(c => c.Card.PremiumType == 2)?.Card.Count ?? 0,
4141
x.FirstOrDefault(c => c.Card.PremiumType == 3)?.Card.Count ?? 0,
42+
43+
x.FirstOrDefault(c => c.Card.PremiumType == 0)?.Card.TrialCount ?? 0,
44+
x.FirstOrDefault(c => c.Card.PremiumType == 1)?.Card.TrialCount ?? 0,
45+
x.FirstOrDefault(c => c.Card.PremiumType == 2)?.Card.TrialCount ?? 0,
46+
x.FirstOrDefault(c => c.Card.PremiumType == 3)?.Card.TrialCount ?? 0,
4247
}));
4348
FavoriteHeroes = new SortedDictionary<int, int>(collection.FavoriteHeroes.ToDictionary(x => x.Key, x => GetDbfId(x.Value.Id)));
4449
CardBacks = collection.CardBacks.OrderBy(x => x).ToList();

0 commit comments

Comments
 (0)