mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user