mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
spjspj - Add in a new way to allow just the Face Art for cards into the viewer.
This commit is contained in:
parent
b2e4c2cc9d
commit
92e77f79b6
1 changed files with 24 additions and 6 deletions
|
@ -85,7 +85,7 @@ $fix_set_codes {"WL"} = "WTH";
|
||||||
|
|
||||||
|
|
||||||
#$vals = `find /I "<" *lient*`;
|
#$vals = `find /I "<" *lient*`;
|
||||||
$vals = `findstr /I "CARDNAME_STRING DIGITALOBJECT ARTID CLONE" *lient* | find /I /V "_DO.xml"`;
|
$vals = `findstr /I "CARDNAME_STRING DIGITALOBJECT ARTID CLONE FRAMESTYLE " *lient* | find /I /V "_DO.xml"`;
|
||||||
|
|
||||||
my $current_artid = "";
|
my $current_artid = "";
|
||||||
my $current_clone_id = "";
|
my $current_clone_id = "";
|
||||||
|
@ -164,7 +164,7 @@ $fix_set_codes {"WL"} = "WTH";
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run it again..
|
# Run it again..
|
||||||
$vals = `findstr /I "CARDNAME_STRING DIGITALOBJECT ARTID CLONE" *lient* | find /I /V "_DO.xml"`;
|
$vals = `findstr /I "CARDNAME_STRING DIGITALOBJECT ARTID CLONE FRAMESTYLE" *lient* | find /I /V "_DO.xml"`;
|
||||||
|
|
||||||
$current_set = "";
|
$current_set = "";
|
||||||
$num_set = 1;
|
$num_set = 1;
|
||||||
|
@ -174,6 +174,15 @@ $fix_set_codes {"WL"} = "WTH";
|
||||||
$current_line = "";
|
$current_line = "";
|
||||||
$current_name = "";
|
$current_name = "";
|
||||||
my %seen_artids;
|
my %seen_artids;
|
||||||
|
my $current_framestyle = "";
|
||||||
|
|
||||||
|
my %framestyles;
|
||||||
|
$framestyles {1} = "001";
|
||||||
|
$framestyles {3} = "010";
|
||||||
|
$framestyles {31} = "010";
|
||||||
|
$framestyles {11} = "010";
|
||||||
|
$framestyles {14} = "010";
|
||||||
|
$framestyles {15} = "010";
|
||||||
|
|
||||||
while ($vals =~ s/^(.*)\n//im)
|
while ($vals =~ s/^(.*)\n//im)
|
||||||
{
|
{
|
||||||
|
@ -206,6 +215,11 @@ $fix_set_codes {"WL"} = "WTH";
|
||||||
$current_line .= ";Clone=($clone_id)";
|
$current_line .= ";Clone=($clone_id)";
|
||||||
$current_clone_id = $clone_id;
|
$current_clone_id = $clone_id;
|
||||||
}
|
}
|
||||||
|
if ($line =~ m/FRAMESTYLE value='([^']+)'/)
|
||||||
|
{
|
||||||
|
$current_framestyle = "$1";
|
||||||
|
$current_framestyle = $framestyles {$current_framestyle};
|
||||||
|
}
|
||||||
|
|
||||||
if ($line =~ m/<\/DigitalObject/)
|
if ($line =~ m/<\/DigitalObject/)
|
||||||
{
|
{
|
||||||
|
@ -230,21 +244,25 @@ $fix_set_codes {"WL"} = "WTH";
|
||||||
if (!defined ($seen_artids {$current_artid}))
|
if (!defined ($seen_artids {$current_artid}))
|
||||||
{
|
{
|
||||||
$seen_artids {$current_artid} = "$current_set\\$current_name.jpg";
|
$seen_artids {$current_artid} = "$current_set\\$current_name.jpg";
|
||||||
|
if ($current_artid < 10)
|
||||||
|
{
|
||||||
|
print (" echo \"1\" | cut.pl stdin \"http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/0000$current_artid" . "_typ_reg_sty_$current_framestyle.jpg\" \"$current_set\\$current_name.jpg\" wget_image\n");
|
||||||
|
}
|
||||||
if ($current_artid < 100)
|
if ($current_artid < 100)
|
||||||
{
|
{
|
||||||
print (" echo \"1\" | cut.pl stdin \"http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/000$current_artid" . "_typ_reg_sty_001.jpg\" \"$current_set\\$current_name.jpg\" wget_image\n");
|
print (" echo \"1\" | cut.pl stdin \"http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/000$current_artid" . "_typ_reg_sty_$current_framestyle.jpg\" \"$current_set\\$current_name.jpg\" wget_image\n");
|
||||||
}
|
}
|
||||||
elsif ($current_artid < 1000)
|
elsif ($current_artid < 1000)
|
||||||
{
|
{
|
||||||
print (" echo \"1\" | cut.pl stdin \"http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/00$current_artid" . "_typ_reg_sty_001.jpg\" \"$current_set\\$current_name.jpg\" wget_image\n");
|
print (" echo \"1\" | cut.pl stdin \"http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/00$current_artid" . "_typ_reg_sty_$current_framestyle.jpg\" \"$current_set\\$current_name.jpg\" wget_image\n");
|
||||||
}
|
}
|
||||||
elsif ($current_artid < 10000)
|
elsif ($current_artid < 10000)
|
||||||
{
|
{
|
||||||
print (" echo \"1\" | cut.pl stdin \"http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/0$current_artid" . "_typ_reg_sty_010.jpg\" \"$current_set\\$current_name.jpg\" wget_image\n");
|
print (" echo \"1\" | cut.pl stdin \"http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/0$current_artid" . "_typ_reg_sty_$current_framestyle.jpg\" \"$current_set\\$current_name.jpg\" wget_image\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print (" echo \"1\" | cut.pl stdin \"http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/$current_artid" . "_typ_reg_sty_010.jpg\" \"$current_set\\$current_name.jpg\" wget_image\n");
|
print (" echo \"1\" | cut.pl stdin \"http://mtgoclientdepot.onlinegaming.wizards.com/Graphics/Cards/Pics/$current_artid" . "_typ_reg_sty_$current_framestyle.jpg\" \"$current_set\\$current_name.jpg\" wget_image\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue