mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28: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 boolean hasManyPictures;
|
||||||
final CardDb db = !card.isVariant() ? StaticData.instance().getCommonCards() : StaticData.instance().getVariantCards();
|
final CardDb db = !card.isVariant() ? StaticData.instance().getCommonCards() : StaticData.instance().getVariantCards();
|
||||||
if (includeSet) {
|
if (includeSet) {
|
||||||
cntPictures = db.getPrintCount(card.getName(), edition);
|
cntPictures = db.getArtCount(card.getName(), edition);
|
||||||
hasManyPictures = cntPictures > 1;
|
hasManyPictures = cntPictures > 1;
|
||||||
} else {
|
} else {
|
||||||
cntPictures = 1;
|
cntPictures = 1;
|
||||||
|
|
||||||
// raise the art index limit to the maximum of the sets this card was printed in
|
// 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;
|
hasManyPictures = maxCntPictures > 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user