mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-23 19:02:19 -07:00
set priority when not found to PriorityOther
in case a new set type is added it's unlikey we want it sorted first, it'll probably be a new product so it's probably best to sort it with the funny things
This commit is contained in:
parent
dc61357a31
commit
2ba41e126c
2 changed files with 2 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ CardSet::Priority OracleImporter::getSetPriority(QString &setType, QString &shor
|
||||||
if (!setTypePriorities.contains(setType.toLower())) {
|
if (!setTypePriorities.contains(setType.toLower())) {
|
||||||
qDebug() << "warning: Set type" << setType << "unrecognized for prioritization";
|
qDebug() << "warning: Set type" << setType << "unrecognized for prioritization";
|
||||||
}
|
}
|
||||||
CardSet::Priority priority = setTypePriorities.value(setType.toLower(), CardSet::PriorityFallback);
|
CardSet::Priority priority = setTypePriorities.value(setType.toLower(), CardSet::PriorityOther);
|
||||||
if (nonEnglishSets.contains(shortName)) {
|
if (nonEnglishSets.contains(shortName)) {
|
||||||
priority = CardSet::PriorityLowest;
|
priority = CardSet::PriorityLowest;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
// many users prefer not to see these sets with non english arts
|
// many users prefer not to see these sets with non english arts
|
||||||
|
// they will given priority PriorityLowest
|
||||||
const QStringList nonEnglishSets = {"4BB", "FBB", "PS11", "PSAL", "REN", "RIN"};
|
const QStringList nonEnglishSets = {"4BB", "FBB", "PS11", "PSAL", "REN", "RIN"};
|
||||||
const QMap<QString, CardSet::Priority> setTypePriorities{
|
const QMap<QString, CardSet::Priority> setTypePriorities{
|
||||||
{"core", CardSet::PriorityPrimary},
|
{"core", CardSet::PriorityPrimary},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue