Permalink
Browse files

Added Curse of Naxxramas

  • Loading branch information...
Sembiance committed Jul 22, 2014
1 parent 108a22d commit 6e9a07f7d051ce125b20893f917135117641ba6d
Showing with 24 additions and 7 deletions.
  1. +1 −0 .gitignore
  2. +5 −2 generate.js
  3. +6 −0 util/compareRelease.js
  4. +7 −0 web/changelog.html
  5. +5 −5 web/generate.js
View
@@ -5,3 +5,4 @@ out
disunity
deploy
nginx
+tmp
View
@@ -63,7 +63,7 @@ tiptoe(
},
function processCards(files)
{
- base.info("Processing card XML...");
+ base.info("Processing %d card XML files...", files.length);
C.LANGUAGES.serialForEach(function(language, cb)
{
base.info("Processing language: %s", language);
@@ -146,7 +146,7 @@ function fixCard(language, card)
var USED_TAGS = ["CardID", "CardName", "CardSet", "CardType", "Faction", "Rarity", "Cost", "Atk", "Health", "Durability", "CardTextInHand", "CardTextInPlay", "FlavorText", "ArtistName", "Collectible",
"Elite", "Race", "Class", "HowToGetThisCard", "HowToGetThisGoldCard"];
-var IGNORED_TAGS = ["AttackVisualType", "EnchantmentBirthVisual", "EnchantmentIdleVisual", "TargetingArrowText", "DevState", "TriggerVisual", "Recall"];
+var IGNORED_TAGS = ["AttackVisualType", "EnchantmentBirthVisual", "EnchantmentIdleVisual", "TargetingArrowText", "DevState", "TriggerVisual", "Recall", "AIMustPlay", "InvisibleDeathrattle"];
var MECHANIC_TAGS = ["Windfury", "Combo", "Secret", "Battlecry", "Deathrattle", "Taunt", "Stealth", "Spellpower", "Enrage", "Freeze", "Charge", "Overload", "Divine Shield", "Silence", "Morph", "OneTurnEffect", "Poisonous", "Aura", "AdjacentBuff",
"HealTarget", "GrantCharge", "ImmuneToSpellpower", "AffectedBySpellPower", "Summoned"];
var KNOWN_TAGS = USED_TAGS.concat(IGNORED_TAGS, MECHANIC_TAGS);
@@ -274,6 +274,7 @@ var TAG_VALUE_MAPS =
7 : "System",
8 : "Debug",
11 : "Promotion",
+ 12 : "Curse of Naxxramas",
16 : "Credits"
},
"CardType" :
@@ -293,6 +294,7 @@ var TAG_VALUE_MAPS =
},
"Rarity" :
{
+ 0 : undefined,
1 : "Common",
2 : "Free",
3 : "Rare",
@@ -310,6 +312,7 @@ var TAG_VALUE_MAPS =
},
"Class" :
{
+ 0 : undefined,
2 : "Druid",
3 : "Hunter",
4 : "Mage",
View
@@ -53,6 +53,12 @@ function processFile(fileName, cb)
},
function compare(oldJSONArgs, newJSON)
{
+ if(oldJSONArgs[0].statusCode===404)
+ {
+ base.info("Skipping %s do to being missing on production.", fileName);
+ return this();
+ }
+
var result = compareSets(JSON.parse(oldJSONArgs[1]), JSON.parse(newJSON));
if(result)
console.log(result);
View
@@ -1,3 +1,10 @@
+<tr>
+ <td>2.0.0</td>
+ <td>Jul 22, 2014</td>
+ <td><ul>
+ <li>Added Curse of Naxxramas!</li>
+ </ul></td>
+</tr>
<tr>
<td>1.2.1</td>
<td>May 12, 2014</td>
View
@@ -17,9 +17,9 @@ var dustData =
{
title : "Hearthstone card data in JSON format",
sets : {}, // Later changed to []
- version : "1.2.1",
- patchVersion : "1.0.0.5314",
- lastUpdated : "May 12, 2014",
+ version : "2.0.0",
+ patchVersion : "1.1.0.5997",
+ lastUpdated : "Jul 22, 2014",
allSizeLangs : [],
allSizeZipLangs : [],
changeLog : fs.readFileSync(path.join(__dirname, "changelog.html"), {encoding : "utf8"})
@@ -82,7 +82,7 @@ tiptoe(
var individualHTML = "";
var languages = C.LANGUAGES_FULL.multiSort([function(o) { return o.language; }, function(o) { return o.country; }]);
- var NUM_PER_CELL = 4;
+ var NUM_PER_CELL = 5;
var NUM_COLS = Math.ceil(dustData.sets.length/NUM_PER_CELL);
languages.forEach(function(languageFull, langi)
@@ -106,7 +106,7 @@ tiptoe(
}
}
- for(i=1;i<(dustData.sets.length%NUM_PER_CELL);i++)
+ for(i=1;i<(dustData.sets.length/NUM_PER_CELL);i++)
{
individualHTML += "<td class='setLinkContainer'>&nbsp;</td>";
}

0 comments on commit 6e9a07f

Please sign in to comment.