mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Fix for github tracking issue for new cards in sets
This commit is contained in:
parent
2c08545c88
commit
2d1c01fd84
1 changed files with 6 additions and 4 deletions
|
@ -177,6 +177,8 @@ foreach $name_collectorid (sort @setCards)
|
||||||
my $className = toCamelCase($cardName);
|
my $className = toCamelCase($cardName);
|
||||||
my $setId = lc($cardName);
|
my $setId = lc($cardName);
|
||||||
$setId =~ s/^(.).*/$1/;
|
$setId =~ s/^(.).*/$1/;
|
||||||
|
my $googleSetName = $setName;
|
||||||
|
$googleSetName =~ s/ /+/img;
|
||||||
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;
|
my $plus_cardName = $cardName;
|
||||||
|
@ -188,18 +190,18 @@ foreach $name_collectorid (sort @setCards)
|
||||||
# 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;
|
$githubTask {"- [ ] Implemented but have to add to set -- [$cardName](https://www.google.com.au/search?q=$plus_cardName+$googleSetName+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;
|
$githubTask {"- [ ] Not done -- [$cardName](https://www.google.com.au/search?q=$plus_cardName+$googleSetName+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;
|
$githubTask {"- [x] Done -- [$cardName](https://www.google.com.au/search?q=$plus_cardName+$googleSetName+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;
|
$githubTask {"- [ ] Not Done -- [$cardName](https://www.google.com.au/search?q=$plus_cardName+$googleSetName+mtg&source=lnms&tbm=isch)\n"} = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue