mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Added new Mythic Edition (MED) set (16 cards, scryfall download)
This commit is contained in:
parent
c29b68f030
commit
00ad61b6bd
4 changed files with 59 additions and 13 deletions
|
|
@ -66,8 +66,9 @@ public enum ScryfallImageSource implements CardImageSource {
|
|||
if (baseUrl == null && card.isCollectorIdWithStr()) {
|
||||
// WARNING, after 2018 it's not compatible and some new sets have GUID files instead card numbers
|
||||
// TODO: replace card number links to API calls (need test with lands, alternative images and double faces), replace not working images by direct links
|
||||
if (card.getCollectorId().startsWith("U")) {
|
||||
// fix for Ultimate Box Topper (PUMA) -- need to use API
|
||||
|
||||
if (card.getCollectorId().startsWith("U") || card.getCollectorIdAsInt() == -1) {
|
||||
// fix for Ultimate Box Topper (PUMA) and Mythic Edition (MED) -- need to use API
|
||||
// ignored and go to API call at the end
|
||||
} else {
|
||||
baseUrl = "https://img.scryfall.com/cards/large/" + localizedCode + "/" + formatSetName(card.getSet(), isToken) + "/"
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ public class ScryfallImageSupportCards {
|
|||
put("EURO", "pelp");
|
||||
put("GPX", "pgpx");
|
||||
put("MED", "me1");
|
||||
put("MEDM", "med");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -236,6 +237,7 @@ public class ScryfallImageSupportCards {
|
|||
add("UMA");
|
||||
add("PUMA");
|
||||
add("RNA");
|
||||
add("MEDM");
|
||||
//
|
||||
add("EURO");
|
||||
add("GPX");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue