mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Merge pull request #2524 from spjspj/master
spjspj - More changes to gen-existing-cards-by-set
This commit is contained in:
commit
41c900cfbb
2 changed files with 13 additions and 0 deletions
|
@ -70,6 +70,7 @@ public class Commander2016 extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Blind Obedience", 59, Rarity.RARE, mage.cards.b.BlindObedience.class));
|
cards.add(new SetCardInfo("Blind Obedience", 59, Rarity.RARE, mage.cards.b.BlindObedience.class));
|
||||||
cards.add(new SetCardInfo("Blood Tyrant", 183, Rarity.RARE, mage.cards.b.BloodTyrant.class));
|
cards.add(new SetCardInfo("Blood Tyrant", 183, Rarity.RARE, mage.cards.b.BloodTyrant.class));
|
||||||
cards.add(new SetCardInfo("Bloodbraid Elf", 184, Rarity.UNCOMMON, mage.cards.b.BloodbraidElf.class));
|
cards.add(new SetCardInfo("Bloodbraid Elf", 184, Rarity.UNCOMMON, mage.cards.b.BloodbraidElf.class));
|
||||||
|
cards.add(new SetCardInfo("Boompile", 52, Rarity.RARE, mage.cards.b.Boompile.class));
|
||||||
cards.add(new SetCardInfo("Boros Charm", 185, Rarity.UNCOMMON, mage.cards.b.BorosCharm.class));
|
cards.add(new SetCardInfo("Boros Charm", 185, Rarity.UNCOMMON, mage.cards.b.BorosCharm.class));
|
||||||
cards.add(new SetCardInfo("Brave the Sands", 60, Rarity.UNCOMMON, mage.cards.b.BraveTheSands.class));
|
cards.add(new SetCardInfo("Brave the Sands", 60, Rarity.UNCOMMON, mage.cards.b.BraveTheSands.class));
|
||||||
cards.add(new SetCardInfo("Breath of Fury", 121, Rarity.RARE, mage.cards.b.BreathOfFury.class));
|
cards.add(new SetCardInfo("Breath of Fury", 121, Rarity.RARE, mage.cards.b.BreathOfFury.class));
|
||||||
|
|
|
@ -125,6 +125,9 @@ my %implemented;
|
||||||
my %implementedButNotInSetYet;
|
my %implementedButNotInSetYet;
|
||||||
my %unimplemented;
|
my %unimplemented;
|
||||||
|
|
||||||
|
|
||||||
|
my %githubTask;
|
||||||
|
|
||||||
foreach $name_collectorid (sort @setCards)
|
foreach $name_collectorid (sort @setCards)
|
||||||
{
|
{
|
||||||
my $cardName;
|
my $cardName;
|
||||||
|
@ -160,18 +163,25 @@ foreach $name_collectorid (sort @setCards)
|
||||||
$setId =~ s/^(.).*/$1/;
|
$setId =~ s/^(.).*/$1/;
|
||||||
my $fn = "..\\Mage.Sets\\src\\mage\\cards\\$setId\\$className.java";
|
my $fn = "..\\Mage.Sets\\src\\mage\\cards\\$setId\\$className.java";
|
||||||
my $str = " cards.add(new SetCardInfo(\"$cardName\", $cardNr, Rarity." . getRarity ($cards{$cardName}{$setName}[3], $cardName) . ", mage.cards.$setId.$className.class));\n";
|
my $str = " cards.add(new SetCardInfo(\"$cardName\", $cardNr, Rarity." . getRarity ($cards{$cardName}{$setName}[3], $cardName) . ", mage.cards.$setId.$className.class));\n";
|
||||||
|
my $plus_cardName = $cardName;
|
||||||
|
$plus_cardName =~ s/ /+/img;
|
||||||
|
|
||||||
if (!exists ($alreadyIn{$cardNr})) {
|
if (!exists ($alreadyIn{$cardNr})) {
|
||||||
# Go Looking for the existing implementation..
|
# Go Looking for the existing implementation..
|
||||||
if (-e $fn) {
|
if (-e $fn) {
|
||||||
$implementedButNotInSetYet {$str} = 1;
|
$implementedButNotInSetYet {$str} = 1;
|
||||||
|
$githubTask {"- [ ] Implemented but have to add to set -- [$cardName](https://www.google.com.au/search?q=$plus_cardName+$setName+mtg&source=lnms&tbm=isch)\n"} = 1;
|
||||||
} else {
|
} else {
|
||||||
$unimplemented {"$str"} = 1;
|
$unimplemented {"$str"} = 1;
|
||||||
|
$githubTask {"- [ ] Not done -- [$cardName](https://www.google.com.au/search?q=$plus_cardName+$setName+mtg&source=lnms&tbm=isch)\n"} = 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (-e $fn) {
|
if (-e $fn) {
|
||||||
$implemented {$str} = 1;
|
$implemented {$str} = 1;
|
||||||
|
$githubTask {"- [x] Done -- [$cardName](https://www.google.com.au/search?q=$plus_cardName+$setName+mtg&source=lnms&tbm=isch)\n"} = 1;
|
||||||
} else {
|
} else {
|
||||||
$unimplemented {$str} = 1;
|
$unimplemented {$str} = 1;
|
||||||
|
$githubTask {"- [ ] Not Done -- [$cardName](https://www.google.com.au/search?q=$plus_cardName+$setName+mtg&source=lnms&tbm=isch)\n"} = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -184,4 +194,6 @@ print "\n\n\nImplemented but-not-yet-added-to-set cards:\n";
|
||||||
print (join ("", sort keys (%implementedButNotInSetYet)));
|
print (join ("", sort keys (%implementedButNotInSetYet)));
|
||||||
print "\n\n\nUnimplemented cards:\n";
|
print "\n\n\nUnimplemented cards:\n";
|
||||||
print (join ("", sort keys (%unimplemented)));
|
print (join ("", sort keys (%unimplemented)));
|
||||||
|
print "\n\n\nGithub Task:\n";
|
||||||
|
print (join ("", sort keys (%githubTask)));
|
||||||
print ("\nData from reading: ../../mage/Mage.Sets/src/mage/sets/$knownSets{$setName}.java\n");
|
print ("\nData from reading: ../../mage/Mage.Sets/src/mage/sets/$knownSets{$setName}.java\n");
|
||||||
|
|
Loading…
Reference in a new issue