Renamed SetPolicy for old art no promo

The new name, i.e. OldArtExcludedPromoAndOnlineEditions is more self-explanatory - a bit long though.

Won't exclude that I will come back at namings after having now worked on CardEdition.Type revision
This commit is contained in:
leriomaggio
2021-07-06 08:09:46 +01:00
parent 5bc4122a31
commit 91913879e9

View File

@@ -732,12 +732,12 @@ public final class CardEdition implements Comparable<CardEdition> {
public CardEdition getEarliestEditionWithAllCards(CardPool cards) {
Set<String> minEditions = new HashSet<>();
CardArtPreference strictness = CardArtPreference.OldPrintNoPromoNoOnline;
CardArtPreference strictness = CardArtPreference.OldArtExcludedPromoAndOnlineEditions;
for (Entry<PaperCard, Integer> k : cards) {
PaperCard cp = StaticData.instance().getCommonCards().getCardFromEditions(k.getKey().getName(), strictness);
if( cp == null && strictness == CardArtPreference.OldPrintNoPromoNoOnline) {
strictness = CardArtPreference.OldPrint; // card is not found in core and expansions only (probably something CMD or C13)
if( cp == null && strictness == CardArtPreference.OldArtExcludedPromoAndOnlineEditions) {
strictness = CardArtPreference.OldArtAllEditions; // card is not found in core and expansions only (probably something CMD or C13)
cp = StaticData.instance().getCommonCards().getCardFromEditions(k.getKey().getName(), strictness);
}
if ( cp == null )