forked from External/mage
Fix various hints and warnings on many set & block classes (via IntelliJ IDEA linting):
- replacing hard coded strings of set codes with reference to 'mage.sets.<set>.getInstance().getCode()' allows for set class names to no longer show as unreferenced & adds for more consistence between other block units - various protected variables were able to be changed to private to clean up additional warnings - some JavaDoc comments were generating warnings due to missing documentation - removed some unused imports and unused variables - there were multiple conditional logic checks for 'rarity != Rarity.LAND' within an if block where the outer condition was 'if rarity == Rarity.COMMON' rendering the inner condition always true and thus redundant - a few ExpansionSet.buildDate parameters wer using octal values (eg. '03' instead of '3') which triggered some warnings - added a booster generation test for WarOfTheSparks to make sure every booster contains a planeswalker - added a booster generation test for ModernHorizons to make sure every booster contains a snow land - booster generation test for Battlbond set referenced the Coldsnap set class instead of Battlebond
This commit is contained in:
parent
bbd1390397
commit
8d08f005af
37 changed files with 94 additions and 95 deletions
|
|
@ -22,7 +22,6 @@ public final class CoreSet2020 extends ExpansionSet {
|
|||
return instance;
|
||||
}
|
||||
|
||||
private final List<CardInfo> savedSpecialCommon = new ArrayList<>();
|
||||
private final List<CardInfo> savedSpecialLand = new ArrayList<>();
|
||||
|
||||
private CoreSet2020() {
|
||||
|
|
@ -106,7 +105,7 @@ public final class CoreSet2020 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Chandra, Novice Pyromancer", 128, Rarity.UNCOMMON, mage.cards.c.ChandraNovicePyromancer.class));
|
||||
cards.add(new SetCardInfo("Cloudkin Seer", 54, Rarity.COMMON, mage.cards.c.CloudkinSeer.class));
|
||||
cards.add(new SetCardInfo("Colossus Hammer", 223, Rarity.UNCOMMON, mage.cards.c.ColossusHammer.class));
|
||||
cards.add(new SetCardInfo("Concordia Pegasus", 304, Rarity.UNCOMMON, mage.cards.c.ConcordiaPegasus.class));
|
||||
cards.add(new SetCardInfo("Concordia Pegasus", 304, Rarity.COMMON, mage.cards.c.ConcordiaPegasus.class));
|
||||
cards.add(new SetCardInfo("Convolute", 55, Rarity.COMMON, mage.cards.c.Convolute.class));
|
||||
cards.add(new SetCardInfo("Coral Merfolk", 315, Rarity.COMMON, mage.cards.c.CoralMerfolk.class));
|
||||
cards.add(new SetCardInfo("Corpse Knight", 206, Rarity.UNCOMMON, mage.cards.c.CorpseKnight.class));
|
||||
|
|
@ -399,7 +398,7 @@ public final class CoreSet2020 extends ExpansionSet {
|
|||
criteria.setCodes(this.code).notTypes(CardType.LAND);
|
||||
savedCardsInfos = CardRepository.instance.findCards(criteria);
|
||||
if (maxCardNumberInBooster != Integer.MAX_VALUE) {
|
||||
savedCardsInfos.removeIf(next -> next.getCardNumberAsInt() > maxCardNumberInBooster && rarity != Rarity.LAND);
|
||||
savedCardsInfos.removeIf(next -> next.getCardNumberAsInt() > maxCardNumberInBooster);
|
||||
}
|
||||
savedCards.put(rarity, savedCardsInfos);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue