Add {P} symbol for Rage Extractor (#10762)

This commit is contained in:
xenohedron 2023-08-05 20:53:52 -04:00 committed by GitHub
parent 127b7be9b0
commit f1757e5628
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View file

@ -79,7 +79,7 @@ public final class ManaSymbols {
"S", "T", "Q",
"U", "UB", "UR", "UP", "2U",
"W", "WB", "WU", "WP", "2W",
"X", "C", "E",
"X", "C", "E", "P",
"BGP", "BRP", "GUP", "GWP", "RGP", "RWP", "UBP", "URP", "WBP", "WUP"};
private static final JLabel labelRender = new JLabel(); // render mana text

View file

@ -34,7 +34,7 @@ public class GathererSymbols implements Iterable<DownloadJob> {
"W/U/P", "U/B/P", "B/R/P", "R/G/P", "G/W/P", "W/B/P", "U/R/P", "B/G/P", "R/W/P", "G/U/P",
"2/W", "2/U", "2/B", "2/R", "2/G",
"WP", "UP", "BP", "RP", "GP",
"X", "S", "T", "Q", "C", "E"};
"X", "S", "T", "Q", "C", "E", "P"};
private static final int minNumeric = 0, maxNumeric = 16;
public GathererSymbols() {
@ -98,6 +98,7 @@ public class GathererSymbols implements Iterable<DownloadJob> {
case "GWP":
case "RGP":
case "RWP":
case "P":
// need replace to medium size
modSizeIndex = 1;
break;
@ -117,6 +118,9 @@ public class GathererSymbols implements Iterable<DownloadJob> {
case "S":
symbol = "snow";
break;
case "P":
symbol = "p";
break;
}
String url = format(urlFmt, sizes[modSizeIndex], symbol);

View file

@ -45,7 +45,7 @@ public class ScryfallSymbolsSource implements Iterable<DownloadJob> {
"W/U/P", "U/B/P", "B/R/P", "R/G/P", "G/W/P", "W/B/P", "U/R/P", "B/G/P", "R/W/P", "G/U/P",
"2/W", "2/U", "2/B", "2/R", "2/G",
"WP", "UP", "BP", "RP", "GP",
"X", "S", "T", "Q", "C", "E"};
"X", "S", "T", "Q", "C", "E", "P"};
@Override
public Iterator<DownloadJob> iterator() {