mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +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) {
|
public CardEdition getEarliestEditionWithAllCards(CardPool cards) {
|
||||||
Set<String> minEditions = new HashSet<>();
|
Set<String> minEditions = new HashSet<>();
|
||||||
|
|
||||||
CardArtPreference strictness = CardArtPreference.OldPrintNoPromoNoOnline;
|
CardArtPreference strictness = CardArtPreference.OldArtExcludedPromoAndOnlineEditions;
|
||||||
|
|
||||||
for (Entry<PaperCard, Integer> k : cards) {
|
for (Entry<PaperCard, Integer> k : cards) {
|
||||||
PaperCard cp = StaticData.instance().getCommonCards().getCardFromEditions(k.getKey().getName(), strictness);
|
PaperCard cp = StaticData.instance().getCommonCards().getCardFromEditions(k.getKey().getName(), strictness);
|
||||||
if( cp == null && strictness == CardArtPreference.OldPrintNoPromoNoOnline) {
|
if( cp == null && strictness == CardArtPreference.OldArtExcludedPromoAndOnlineEditions) {
|
||||||
strictness = CardArtPreference.OldPrint; // card is not found in core and expansions only (probably something CMD or C13)
|
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);
|
cp = StaticData.instance().getCommonCards().getCardFromEditions(k.getKey().getName(), strictness);
|
||||||
}
|
}
|
||||||
if ( cp == null )
|
if ( cp == null )
|
||||||
|
|||||||
Reference in New Issue
Block a user