mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Updated API call to CardDB with getArtCount and getMaxArtIndex
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user