Permalink
Browse files

ResourceGenerator: download tokens, ignore CHEAT set

  • Loading branch information...
1 parent a318f9b commit 96b0d4cf171e5ce6db52344e5c9a0d2020c9746e @azeier azeier committed Dec 1, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 ResourceGenerator/Program.cs
@@ -26,6 +26,8 @@ private static void Main(string[] args)
foreach(var card in Cards.All)
{
+ if(card.Value.Set == CardSet.CHEAT)
+ continue;
var key = card.Value.Set + (card.Value.Collectible ? "" : "_NC");
if(!dict.ContainsKey(key))
dict[key] = new List<Card>();
@@ -41,7 +43,7 @@ private static void Main(string[] args)
foreach(var card in dict[set])
{
var img = new FileInfo($"{tilesDir}\\{card.Id}.png");
- if(!img.Exists && card.Collectible && card.Type != CardType.HERO)
+ if(!img.Exists && (card.Collectible || card.Type == CardType.MINION || card.Type == CardType.SPELL || card.Type == CardType.WEAPON))
{
DownloadTile(card, img);
img = new FileInfo($"{tilesDir}\\{card.Id}.png");

0 comments on commit 96b0d4c

Please sign in to comment.