- Send unsupported card names to the console so that the user is aware of which cards failed to load when the decks were parsed.

This commit is contained in:
Agetian
2014-02-02 09:22:49 +00:00
parent 7e6928d700
commit 7e22527164

View File

@@ -77,8 +77,10 @@ public class CardPool extends ItemPool<PaperCard> {
cardName = cp.getName();
artCount = isCommonCard ? StaticData.instance().getCommonCards().getArtCount(cardName, setCode) : 1;
}
else
else {
System.err.println(String.format("An unsupported card was found when loading Forge decks: %s", cardName));
cp = PaperCard.createUnsuportedCard(cardName);
}
if (artIndexExplicitlySet || artCount <= 1) {
// either a specific art index is specified, or there is only one art, so just add the card