Updated API call to CardDB with getArtCount and getMaxArtIndex

This commit is contained in:
leriomaggio
2021-06-09 17:35:18 +01:00
parent 58cfbf4c0d
commit 5ad05f94ad

View File

@@ -44,13 +44,13 @@ public class ImageUtil {
final boolean hasManyPictures;
final CardDb db = !card.isVariant() ? StaticData.instance().getCommonCards() : StaticData.instance().getVariantCards();
if (includeSet) {
cntPictures = db.getPrintCount(card.getName(), edition);
cntPictures = db.getArtCount(card.getName(), edition);
hasManyPictures = cntPictures > 1;
} else {
cntPictures = 1;
// raise the art index limit to the maximum of the sets this card was printed in
int maxCntPictures = db.getMaxPrintCount(card.getName());
int maxCntPictures = db.getMaxArtIndex(card.getName());
hasManyPictures = maxCntPictures > 1;
}