mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 17:32:15 -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>
|
||||
{
|
||||
public:
|
||||
enum Priority {
|
||||
enum Priority
|
||||
{
|
||||
PriorityUndefined = 0,
|
||||
PriorityPrimary = 10,
|
||||
PrioritySecondary = 20,
|
||||
|
|
|
|||
|
|
@ -503,9 +503,9 @@ int OracleImporter::startImport()
|
|||
sets.insert(TOKENS_SETNAME, tokenSet);
|
||||
|
||||
for (const SetToDownload &curSetToParse : allSets) {
|
||||
CardSetPtr newSet = CardSet::newInstance(curSetToParse.getShortName(), curSetToParse.getLongName(),
|
||||
curSetToParse.getSetType(), curSetToParse.getReleaseDate(),
|
||||
curSetToParse.getPriority());
|
||||
CardSetPtr newSet =
|
||||
CardSet::newInstance(curSetToParse.getShortName(), curSetToParse.getLongName(), curSetToParse.getSetType(),
|
||||
curSetToParse.getReleaseDate(), curSetToParse.getPriority());
|
||||
if (!sets.contains(newSet->getShortName()))
|
||||
sets.insert(newSet->getShortName(), newSet);
|
||||
|
||||
|
|
|
|||
|
|
@ -9,32 +9,32 @@
|
|||
// many users prefer not to see these sets with non english arts
|
||||
const QStringList nonEnglishSets = {"4BB", "FBB", "PS11", "PSAL", "REN", "RIN"};
|
||||
const QMap<QString, CardSet::Priority> setTypePriorities{
|
||||
{"core", CardSet::PriorityPrimary},
|
||||
{"expansion", CardSet::PriorityPrimary},
|
||||
{"core", CardSet::PriorityPrimary},
|
||||
{"expansion", CardSet::PriorityPrimary},
|
||||
|
||||
{"commander", CardSet::PrioritySecondary},
|
||||
{"starter", CardSet::PrioritySecondary},
|
||||
{"commander", CardSet::PrioritySecondary},
|
||||
{"starter", CardSet::PrioritySecondary},
|
||||
|
||||
{"archenemy", CardSet::PriorityReprint},
|
||||
{"arsenal", CardSet::PriorityReprint},
|
||||
{"box", CardSet::PriorityReprint},
|
||||
{"archenemy", CardSet::PriorityReprint},
|
||||
{"arsenal", CardSet::PriorityReprint},
|
||||
{"box", CardSet::PriorityReprint},
|
||||
{"draft_innovation", CardSet::PriorityReprint},
|
||||
{"duel_deck", CardSet::PriorityReprint},
|
||||
{"from_the_vault", CardSet::PriorityReprint},
|
||||
{"masterpiece", CardSet::PriorityReprint},
|
||||
{"masters", CardSet::PriorityReprint},
|
||||
{"memorabilia", CardSet::PriorityReprint},
|
||||
{"planechase", CardSet::PriorityReprint},
|
||||
{"premium_deck", CardSet::PriorityReprint},
|
||||
{"promo", CardSet::PriorityReprint},
|
||||
{"spellbook", CardSet::PriorityReprint},
|
||||
{"token", CardSet::PriorityReprint},
|
||||
{"treasure_chest", CardSet::PriorityReprint},
|
||||
{"duel_deck", CardSet::PriorityReprint},
|
||||
{"from_the_vault", CardSet::PriorityReprint},
|
||||
{"masterpiece", CardSet::PriorityReprint},
|
||||
{"masters", CardSet::PriorityReprint},
|
||||
{"memorabilia", CardSet::PriorityReprint},
|
||||
{"planechase", CardSet::PriorityReprint},
|
||||
{"premium_deck", CardSet::PriorityReprint},
|
||||
{"promo", CardSet::PriorityReprint},
|
||||
{"spellbook", CardSet::PriorityReprint},
|
||||
{"token", CardSet::PriorityReprint},
|
||||
{"treasure_chest", CardSet::PriorityReprint},
|
||||
|
||||
{"alchemy", CardSet::PriorityOther},
|
||||
{"funny", CardSet::PriorityOther},
|
||||
{"minigame", CardSet::PriorityOther},
|
||||
{"vanguard", CardSet::PriorityOther},
|
||||
{"alchemy", CardSet::PriorityOther},
|
||||
{"funny", CardSet::PriorityOther},
|
||||
{"minigame", CardSet::PriorityOther},
|
||||
{"vanguard", CardSet::PriorityOther},
|
||||
};
|
||||
|
||||
class SetToDownload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue