Skip to content

Commit

Permalink
* gen-list-unimplemented-cards-for-set - Some updates to link generat…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
LevelX2 committed Jan 5, 2019
1 parent 0293b91 commit 7848c78
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Utils/gen-list-unimplemented-cards-for-set.pl
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ sub toCamelCase {
# TODO: check for basic lands with ending 1,2,3,4,5 ...
my %cardNames;
my $toPrint = '';
my $setAbbr = $sets{$setName};
foreach my $card (sort cardSort @setCards) {
my $className = toCamelCase(@{$card}[0]);

Expand All @@ -102,7 +103,7 @@ sub toCamelCase {
}
my $cardName = @{$card}[0];
$cardName =~ s/ /+/g;
$toPrint .= "@{$card}[2]|[@{$card}[0]](https://magiccards.info/query?q=!$cardName)";
$toPrint .= "@{$card}[2]|[@{$card}[0]](https://scryfall.com/search?q=!\"$cardName\" e:$setAbbr)";
}
}

Expand All @@ -127,7 +128,7 @@ sub toCamelCase {
}
my $cn2 = $cn;
$cn2 =~ s/ /+/g;
print ISSUE_TRACKER "- $x_or_not [$cn](https://magiccards.info/query?q=!$cn2)\n";
print ISSUE_TRACKER "- $x_or_not [$cn](https://scryfall.com/search?q=!\"$cn2\" e:$setAbbr)\n";
}
close ISSUE_TRACKER;
print ("Tracking Issue text for a new Github issue (similar to https://github.com/magefree/mage/issues/2215): " . lc($sets{$setName}) ."_issue_tracker.txt\n");
print ("Tracking Issue text for a new Github issue (similar to https://github.com/magefree/mage/issues/2215): " . lc($setAbbr) ."_issue_tracker.txt\n");

0 comments on commit 7848c78

Please sign in to comment.