include a list of priorities for maincardtypes in oracle (#3663)

fix #3662
This commit is contained in:
ebbit1q 2019-03-16 20:00:34 +01:00 committed by Zach H
parent 6d27631764
commit eb4914d36f
2 changed files with 16 additions and 12 deletions

View file

@ -89,10 +89,13 @@ class OracleImporter : public CardDatabase
{
Q_OBJECT
private:
const QStringList mainCardTypes = {"Planeswalker", "Creature", "Land", "Sorcery",
"Instant", "Artifact", "Enchantment"};
QList<SetToDownload> allSets;
QVariantMap setsMap;
QString dataDir;
QString getMainCardType(const QStringList &typeList);
CardInfoPtr addCard(QString name,
QString text,
bool isToken,