Permalink
Browse files

Show only collectible cards

  • Loading branch information...
Manuel-777 committed Dec 25, 2018
1 parent c424812 commit c5afbc5644e45e17b9eee5ba4f8fc6cc20b08a57
Showing with 6 additions and 3 deletions.
  1. +3 −2 shared/util.js
  2. +3 −1 window_main/collection.js
@@ -500,8 +500,9 @@ function get_collection_stats() {
Object.keys(cardsDb.cards).forEach(function (grpId) {
if (grpId != "ok" && grpId != "abilities" && grpId != "events" && grpId != "sets") {
const card = cardsDb.get(grpId);
var split = card.dfc == "SplitCard" && card.dfcId != 0;
if (card.rarity !== "token" && card.rarity !== "land" && card.set !== "Oath of the Gatewatch" && card.dfc != "DFC_Front" && !split) {
//var split = card.dfc == "SplitCard" && card.dfcId != 0;
//if (card.rarity !== "token" && card.rarity !== "land" && card.set !== "Oath of the Gatewatch" && card.dfc != "DFC_Front" && !split) {
if (card.collectible && card.rarity !== "land") {
// add to totals
stats[card.set][card.rarity].total += 4;
stats.complete[card.rarity].total += 4;
@@ -412,6 +412,7 @@ function printCards() {
let set = card.set;

if (card.images == undefined) continue;
if (!card.collectible) continue;

// Filter name
var arr;
@@ -565,7 +566,7 @@ function printCards() {
}

let dfc = '';

/*
if (card.dfc == 'DFC_Back') dfc = 'a';
if (card.dfc == 'DFC_Front') dfc = 'b';
if (card.dfc == 'SplitHalf') {
@@ -575,6 +576,7 @@ function printCards() {
if (dfc == 'b') {
doDraw = false;
}
*/

if (doDraw) {
var d = $('<div style="width: '+cardSize+'px !important;" class="inventory_card"></div>');

0 comments on commit c5afbc5

Please sign in to comment.