deck: fixed outdated names for some old sets (part 2)

This commit is contained in:
Oleg Agafonov 2025-01-25 09:58:32 +04:00
parent 166ecb98d0
commit 7d5b117263
18 changed files with 668 additions and 667 deletions

View file

@ -543,7 +543,7 @@ public class ScryfallImageSupportCards {
add("WOT"); // Wilds of Eldraine: Enchanting Tales
add("WOC"); // Wilds of Eldraine Commander
add("LCI"); // The Lost Caverns of Ixalan
add("LCC"); // The Lost Caverns of Ixalan Commander
add("LCC"); // The The Lost Caverns of Ixalan Commander
add("REX"); // Jurassic World Collection
add("SPG"); // Special Guests
add("RVR"); // Ravnica Remastered

View file

@ -16,7 +16,7 @@ public final class DuelDecksAnthologyDivineVsDemonic extends ExpansionSet {
}
private DuelDecksAnthologyDivineVsDemonic() {
super("Duel Decks: Anthology, Divine vs. Demonic", "DVD", ExpansionSet.buildDate(2014, 12, 5), SetType.SUPPLEMENTAL);
super("Duel Decks Anthology: Divine vs. Demonic", "DVD", ExpansionSet.buildDate(2014, 12, 5), SetType.SUPPLEMENTAL);
this.blockName = "Duel Decks: Anthology";
this.hasBasicLands = true;

View file

@ -16,7 +16,7 @@ public final class DuelDecksAnthologyElvesVsGoblins extends ExpansionSet {
}
private DuelDecksAnthologyElvesVsGoblins() {
super("Duel Decks: Anthology, Elves vs. Goblins", "EVG", ExpansionSet.buildDate(2014, 12, 5),
super("Duel Decks Anthology: Elves vs. Goblins", "EVG", ExpansionSet.buildDate(2014, 12, 5),
SetType.SUPPLEMENTAL);
this.blockName = "Duel Decks: Anthology";
this.hasBasicLands = true;

View file

@ -17,7 +17,7 @@ public final class DuelDecksAnthologyGarrukVsLiliana extends ExpansionSet {
}
private DuelDecksAnthologyGarrukVsLiliana() {
super("Duel Decks: Anthology, Garruk vs. Liliana", "GVL", ExpansionSet.buildDate(2014, 12, 5),
super("Duel Decks Anthology: Garruk vs. Liliana", "GVL", ExpansionSet.buildDate(2014, 12, 5),
SetType.SUPPLEMENTAL);
this.blockName = "Duel Decks: Anthology";
this.hasBasicLands = true;

View file

@ -17,7 +17,7 @@ public final class DuelDecksAnthologyJaceVsChandra extends ExpansionSet {
}
private DuelDecksAnthologyJaceVsChandra() {
super("Duel Decks: Anthology, Jace vs. Chandra", "JVC", ExpansionSet.buildDate(2014, 12, 5),
super("Duel Decks Anthology: Jace vs. Chandra", "JVC", ExpansionSet.buildDate(2014, 12, 5),
SetType.SUPPLEMENTAL);
this.blockName = "Duel Decks: Anthology";
this.hasBasicLands = true;

View file

@ -8,16 +8,16 @@ import mage.constants.SetType;
/**
* @author TheElk801
*/
public final class GuildsOfRavnicaGuildKits extends ExpansionSet {
public final class GRNGuildKit extends ExpansionSet {
private static final GuildsOfRavnicaGuildKits instance = new GuildsOfRavnicaGuildKits();
private static final GRNGuildKit instance = new GRNGuildKit();
public static GuildsOfRavnicaGuildKits getInstance() {
public static GRNGuildKit getInstance() {
return instance;
}
private GuildsOfRavnicaGuildKits() {
super("Guilds of Ravnica Guild Kits", "GK1", ExpansionSet.buildDate(2018, 11, 2), SetType.SUPPLEMENTAL);
private GRNGuildKit() {
super("GRN Guild Kit", "GK1", ExpansionSet.buildDate(2018, 11, 2), SetType.SUPPLEMENTAL);
this.blockName = "Guild Kits";
this.hasBasicLands = true;

View file

@ -16,7 +16,7 @@ public final class GlobalSeriesJiangYangguAndMuYanling extends ExpansionSet {
}
private GlobalSeriesJiangYangguAndMuYanling() {
super("Global Series: Jiang Yanggu & Mu Yanling", "GS1", ExpansionSet.buildDate(2018, 6, 22), SetType.SUPPLEMENTAL);
super("Global Series Jiang Yanggu & Mu Yanling", "GS1", ExpansionSet.buildDate(2018, 6, 22), SetType.SUPPLEMENTAL);
this.blockName = "Global Series";
this.hasBasicLands = true;

View file

@ -8,16 +8,16 @@ import mage.constants.SetType;
/**
* @author Saga
*/
public final class HASCONPromo2017 extends ExpansionSet {
public final class HasCon2017 extends ExpansionSet {
private static final HASCONPromo2017 instance = new HASCONPromo2017();
private static final HasCon2017 instance = new HasCon2017();
public static HASCONPromo2017 getInstance() {
public static HasCon2017 getInstance() {
return instance;
}
private HASCONPromo2017() {
super("HASCON Promo 2017", "H17", ExpansionSet.buildDate(2017, 9, 8), SetType.JOKE_SET);
private HasCon2017() {
super("HasCon 2017", "H17", ExpansionSet.buildDate(2017, 9, 8), SetType.JOKE_SET);
this.hasBasicLands = false;
cards.add(new ExpansionSet.SetCardInfo("Grimlock, Dinobot Leader", 1, Rarity.MYTHIC, mage.cards.g.GrimlockDinobotLeader.class));

View file

@ -10,16 +10,16 @@ import mage.constants.SetType;
* https://scryfall.com/sets/cmb1
*
*/
public class MysteryBoosterPlaytest extends ExpansionSet {
public class MysteryBoosterPlaytestCards2019 extends ExpansionSet {
private static final MysteryBoosterPlaytest instance = new MysteryBoosterPlaytest();
private static final MysteryBoosterPlaytestCards2019 instance = new MysteryBoosterPlaytestCards2019();
public static MysteryBoosterPlaytest getInstance() {
public static MysteryBoosterPlaytestCards2019 getInstance() {
return instance;
}
private MysteryBoosterPlaytest() {
super("Mystery Booster Playtest", "CMB1", ExpansionSet.buildDate(2019, 11, 7), SetType.JOKE_SET);
private MysteryBoosterPlaytestCards2019() {
super("Mystery Booster Playtest Cards 2019", "CMB1", ExpansionSet.buildDate(2019, 11, 7), SetType.JOKE_SET);
this.hasBoosters = false;
this.hasBasicLands = false;

View file

@ -7,16 +7,16 @@ import mage.constants.SetType;
/**
* @author JayDi85
*/
public final class RavnicaAllegianceGuildKits extends ExpansionSet {
public final class RNAGuildKit extends ExpansionSet {
private static final RavnicaAllegianceGuildKits instance = new RavnicaAllegianceGuildKits();
private static final RNAGuildKit instance = new RNAGuildKit();
public static RavnicaAllegianceGuildKits getInstance() {
public static RNAGuildKit getInstance() {
return instance;
}
private RavnicaAllegianceGuildKits() {
super("Ravnica Allegiance Guild Kits", "GK2", ExpansionSet.buildDate(2019, 2, 15), SetType.SUPPLEMENTAL);
private RNAGuildKit() {
super("RNA Guild Kit", "GK2", ExpansionSet.buildDate(2019, 2, 15), SetType.SUPPLEMENTAL);
this.blockName = "Guild Kits";
this.hasBasicLands = true;

View file

@ -7,15 +7,15 @@ import mage.constants.SetType;
/**
* https://scryfall.com/sets/slc
*/
public class SecretLairThirtiethAnniversaryCountdownKit extends ExpansionSet {
public class SecretLair30thAnniversaryCountdownKit extends ExpansionSet {
private static final SecretLairThirtiethAnniversaryCountdownKit instance = new SecretLairThirtiethAnniversaryCountdownKit();
private static final SecretLair30thAnniversaryCountdownKit instance = new SecretLair30thAnniversaryCountdownKit();
public static SecretLairThirtiethAnniversaryCountdownKit getInstance() {
public static SecretLair30thAnniversaryCountdownKit getInstance() {
return instance;
}
private SecretLairThirtiethAnniversaryCountdownKit() {
private SecretLair30thAnniversaryCountdownKit() {
super("Secret Lair 30th Anniversary Countdown Kit", "SLC", ExpansionSet.buildDate(2022, 11, 1), SetType.PROMOTIONAL);
this.hasBasicLands = false;

View file

@ -7,16 +7,16 @@ import mage.constants.SetType;
/**
* https://scryfall.com/sets/g17
*/
public class GiftPack2017 extends ExpansionSet {
public class The2017GiftPack extends ExpansionSet {
private static final GiftPack2017 instance = new GiftPack2017();
private static final The2017GiftPack instance = new The2017GiftPack();
public static GiftPack2017 getInstance() {
public static The2017GiftPack getInstance() {
return instance;
}
private GiftPack2017() {
super("Gift Pack 2017", "G17", ExpansionSet.buildDate(2017, 10, 20), SetType.PROMOTIONAL);
private The2017GiftPack() {
super("2017 Gift Pack", "G17", ExpansionSet.buildDate(2017, 10, 20), SetType.PROMOTIONAL);
this.hasBoosters = false;
this.hasBasicLands = true;

View file

@ -9,15 +9,15 @@ import mage.constants.SetType;
*
* @author JayDi85
*/
public class ThirtiethAnniversaryEdition extends ExpansionSet {
public class The30thAnniversaryEdition extends ExpansionSet {
private static final ThirtiethAnniversaryEdition instance = new ThirtiethAnniversaryEdition();
private static final The30thAnniversaryEdition instance = new The30thAnniversaryEdition();
public static ThirtiethAnniversaryEdition getInstance() {
public static The30thAnniversaryEdition getInstance() {
return instance;
}
private ThirtiethAnniversaryEdition() {
private The30thAnniversaryEdition() {
super("30th Anniversary Edition", "30A", ExpansionSet.buildDate(2022, 11, 28), SetType.PROMOTIONAL);
this.hasBasicLands = true;
this.numBoosterLands = 3;

View file

@ -8,16 +8,16 @@ import mage.constants.SetType;
/**
* @author Susucr
*/
public final class LostCavernsOfIxalanCommander extends ExpansionSet {
public final class TheLostCavernsOfIxalanCommander extends ExpansionSet {
private static final LostCavernsOfIxalanCommander instance = new LostCavernsOfIxalanCommander();
private static final TheLostCavernsOfIxalanCommander instance = new TheLostCavernsOfIxalanCommander();
public static LostCavernsOfIxalanCommander getInstance() {
public static TheLostCavernsOfIxalanCommander getInstance() {
return instance;
}
private LostCavernsOfIxalanCommander() {
super("Lost Caverns of Ixalan Commander", "LCC", ExpansionSet.buildDate(2023, 11, 17), SetType.SUPPLEMENTAL);
private TheLostCavernsOfIxalanCommander() {
super("The Lost Caverns of Ixalan Commander", "LCC", ExpansionSet.buildDate(2023, 11, 17), SetType.SUPPLEMENTAL);
this.hasBoosters = false;
this.hasBasicLands = false;

View file

@ -904,13 +904,14 @@ public class VerifyCardDataTest {
String needClassName = Arrays.stream(
set.getName()
.replaceAll("&", "And")
.replaceAll("30th", "Thirtieth")
.replaceAll("^(\\d+)", "The$1") // replace starting "2007 xxx" by "The2007"
.replace("-", " ")
.replaceAll("[.+-/:\"']", "")
.split(" ")
).map(CardUtil::getTextWithFirstCharUpperCase).reduce("", String::concat);
if (!className.equals(needClassName)) {
// if set name start with a numbers then add "The" at the start
errorsList.add("Error: set's class name must be equal to set name: "
+ className + " from " + set.getClass().getName() + ", caption: " + set.getName() + ", need name: " + needClassName);
}

View file

@ -60,10 +60,10 @@ Dominaria United Commander|DominariaUnitedCommander|
Dragon's Maze|DragonsMaze|
Dragons of Tarkir|DragonsOfTarkir|
Duel Decks: Ajani vs. Nicol Bolas|DuelDecksAjaniVsNicolBolas|
Duel Decks: Anthology, Divine vs. Demonic|DuelDecksAnthologyDivineVsDemonic|
Duel Decks: Anthology, Elves vs. Goblins|DuelDecksAnthologyElvesVsGoblins|
Duel Decks: Anthology, Garruk vs. Liliana|DuelDecksAnthologyGarrukVsLiliana|
Duel Decks: Anthology, Jace vs. Chandra|DuelDecksAnthologyJaceVsChandra|
Duel Decks Anthology: Divine vs. Demonic|DuelDecksAnthologyDivineVsDemonic|
Duel Decks Anthology: Elves vs. Goblins|DuelDecksAnthologyElvesVsGoblins|
Duel Decks Anthology: Garruk vs. Liliana|DuelDecksAnthologyGarrukVsLiliana|
Duel Decks Anthology: Jace vs. Chandra|DuelDecksAnthologyJaceVsChandra|
Duel Decks: Blessed vs. Cursed|DuelDecksBlessedVsCursed|
Duel Decks: Divine vs. Demonic|DuelDecksDivineVsDemonic|
Duel Decks: Elspeth vs. Kiora|DuelDecksElspethVsKiora|
@ -118,13 +118,13 @@ Game Night|GameNight|
Game Night 2019|GameNight2019|
Game Night: Free-for-All|GameNightFreeforAll|
Gatecrash|Gatecrash|
Global Series: Jiang Yanggu & Mu Yanling|GlobalSeriesJiangYangguAndMuYanling|
Global Series Jiang Yanggu & Mu Yanling|GlobalSeriesJiangYangguAndMuYanling|
Grand Prix|GrandPrixPromos|
Guildpact|Guildpact|
Guilds of Ravnica|GuildsOfRavnica|
Guru|Guru|
Happy Holidays|HappyHolidays|
HASCON Promo 2017|HASCONPromo2017|
HasCon 2017|HASCONPromo2017|
Heroes of the Realm|HeroesOfTheRealm|
Homelands|Homelands|
Hour of Devastation|HourOfDevastation|
@ -160,7 +160,7 @@ The Lord of the Rings: Tales of Middle-earth|TheLordOfTheRingsTalesOfMiddleEarth
Tales of Middle-earth Commander|TalesOfMiddleEarthCommander|
Lorwyn|Lorwyn|
The Lost Caverns of Ixalan|TheLostCavernsOfIxalan|
Lost Caverns of Ixalan Commander|LostCavernsOfIxalanCommander|
The Lost Caverns of Ixalan Commander|LostCavernsOfIxalanCommander|
Magic 2010|Magic2010|
Magic 2011|Magic2011|
Magic 2012|Magic2012|

File diff suppressed because it is too large Load diff

View file

@ -62,10 +62,10 @@ Conflux|CON|
Coldsnap|CSP|
Doctor Who|WHO|
Duel Decks: Jace vs. Chandra|DD2|
Duel Decks: Anthology, Divine vs. Demonic|DVD|
Duel Decks: Anthology, Elves vs. Goblins|EVG|
Duel Decks: Anthology, Garruk vs. Liliana|GVL|
Duel Decks: Anthology, Jace vs. Chandra|JVC|
Duel Decks Anthology: Divine vs. Demonic|DVD|
Duel Decks Anthology: Elves vs. Goblins|EVG|
Duel Decks Anthology: Garruk vs. Liliana|GVL|
Duel Decks Anthology: Jace vs. Chandra|JVC|
Duel Decks: Divine vs. Demonic|DDC|
Duel Decks: Garruk vs. Liliana|DDD|
Duel Decks: Phyrexia vs. the Coalition|DDE|
@ -116,7 +116,7 @@ Fate Reforged|FRF|
Foundations|FDN|
Foundations Jumpstar|J25|
Future Sight|FUT|
Global Series: Jiang Yanggu & Mu Yanling|GS1|
Global Series Jiang Yanggu & Mu Yanling|GS1|
Guildpact|GPT|
Guilds of Ravnica|GRN|
Grand Prix|PGPX|
@ -134,7 +134,7 @@ Ikoria: Lair of Behemoths|IKO|
Invasion|INV|
Innistrad|ISD|
The Lost Caverns of Ixalan|LCI|
Lost Caverns of Ixalan Commander|LCC|
The Lost Caverns of Ixalan Commander|LCC|
Innistrad: Midnight Hunt|MID|
Midnight Hunt Commander|MIC|
Innistrad: Crimson Vow|VOW|
@ -265,7 +265,7 @@ Unhinged|UNH|
Unfinity|UNF|
Urza's Saga|USG|
Unstable|UST|
HASCON Promo 2017|H17|
HasCon 2017|H17|
From the Vault: Exiled|V09|
From the Vault: Relics|V10|
From the Vault: Legends|V11|