mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-22 02:12:14 -07:00
formatting
This commit is contained in:
parent
24fddc233e
commit
bd29ea4215
3 changed files with 27 additions and 26 deletions
|
|
@ -30,7 +30,8 @@ Q_DECLARE_METATYPE(CardInfoPtr)
|
||||||
class CardSet : public QList<CardInfoPtr>
|
class CardSet : public QList<CardInfoPtr>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum Priority {
|
enum Priority
|
||||||
|
{
|
||||||
PriorityUndefined = 0,
|
PriorityUndefined = 0,
|
||||||
PriorityPrimary = 10,
|
PriorityPrimary = 10,
|
||||||
PrioritySecondary = 20,
|
PrioritySecondary = 20,
|
||||||
|
|
|
||||||
|
|
@ -503,9 +503,9 @@ int OracleImporter::startImport()
|
||||||
sets.insert(TOKENS_SETNAME, tokenSet);
|
sets.insert(TOKENS_SETNAME, tokenSet);
|
||||||
|
|
||||||
for (const SetToDownload &curSetToParse : allSets) {
|
for (const SetToDownload &curSetToParse : allSets) {
|
||||||
CardSetPtr newSet = CardSet::newInstance(curSetToParse.getShortName(), curSetToParse.getLongName(),
|
CardSetPtr newSet =
|
||||||
curSetToParse.getSetType(), curSetToParse.getReleaseDate(),
|
CardSet::newInstance(curSetToParse.getShortName(), curSetToParse.getLongName(), curSetToParse.getSetType(),
|
||||||
curSetToParse.getPriority());
|
curSetToParse.getReleaseDate(), curSetToParse.getPriority());
|
||||||
if (!sets.contains(newSet->getShortName()))
|
if (!sets.contains(newSet->getShortName()))
|
||||||
sets.insert(newSet->getShortName(), newSet);
|
sets.insert(newSet->getShortName(), newSet);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,32 +9,32 @@
|
||||||
// many users prefer not to see these sets with non english arts
|
// many users prefer not to see these sets with non english arts
|
||||||
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},
|
||||||
{"expansion", CardSet::PriorityPrimary},
|
{"expansion", CardSet::PriorityPrimary},
|
||||||
|
|
||||||
{"commander", CardSet::PrioritySecondary},
|
{"commander", CardSet::PrioritySecondary},
|
||||||
{"starter", CardSet::PrioritySecondary},
|
{"starter", CardSet::PrioritySecondary},
|
||||||
|
|
||||||
{"archenemy", CardSet::PriorityReprint},
|
{"archenemy", CardSet::PriorityReprint},
|
||||||
{"arsenal", CardSet::PriorityReprint},
|
{"arsenal", CardSet::PriorityReprint},
|
||||||
{"box", CardSet::PriorityReprint},
|
{"box", CardSet::PriorityReprint},
|
||||||
{"draft_innovation", CardSet::PriorityReprint},
|
{"draft_innovation", CardSet::PriorityReprint},
|
||||||
{"duel_deck", CardSet::PriorityReprint},
|
{"duel_deck", CardSet::PriorityReprint},
|
||||||
{"from_the_vault", CardSet::PriorityReprint},
|
{"from_the_vault", CardSet::PriorityReprint},
|
||||||
{"masterpiece", CardSet::PriorityReprint},
|
{"masterpiece", CardSet::PriorityReprint},
|
||||||
{"masters", CardSet::PriorityReprint},
|
{"masters", CardSet::PriorityReprint},
|
||||||
{"memorabilia", CardSet::PriorityReprint},
|
{"memorabilia", CardSet::PriorityReprint},
|
||||||
{"planechase", CardSet::PriorityReprint},
|
{"planechase", CardSet::PriorityReprint},
|
||||||
{"premium_deck", CardSet::PriorityReprint},
|
{"premium_deck", CardSet::PriorityReprint},
|
||||||
{"promo", CardSet::PriorityReprint},
|
{"promo", CardSet::PriorityReprint},
|
||||||
{"spellbook", CardSet::PriorityReprint},
|
{"spellbook", CardSet::PriorityReprint},
|
||||||
{"token", CardSet::PriorityReprint},
|
{"token", CardSet::PriorityReprint},
|
||||||
{"treasure_chest", CardSet::PriorityReprint},
|
{"treasure_chest", CardSet::PriorityReprint},
|
||||||
|
|
||||||
{"alchemy", CardSet::PriorityOther},
|
{"alchemy", CardSet::PriorityOther},
|
||||||
{"funny", CardSet::PriorityOther},
|
{"funny", CardSet::PriorityOther},
|
||||||
{"minigame", CardSet::PriorityOther},
|
{"minigame", CardSet::PriorityOther},
|
||||||
{"vanguard", CardSet::PriorityOther},
|
{"vanguard", CardSet::PriorityOther},
|
||||||
};
|
};
|
||||||
|
|
||||||
class SetToDownload
|
class SetToDownload
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue