mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-22 10:22:15 -07:00
feat: prefer 'Core' and 'Expansion' sets for prioritization
This commit is contained in:
parent
f73196841a
commit
f85faf141d
1 changed files with 4 additions and 2 deletions
|
|
@ -207,9 +207,11 @@ void SetList::guessSortKeys()
|
||||||
|
|
||||||
QDate date = set->getReleaseDate();
|
QDate date = set->getReleaseDate();
|
||||||
if (date.isNull()) {
|
if (date.isNull()) {
|
||||||
set->setSortKey(static_cast<unsigned int>(aHundredYears));
|
set->setSortKey(static_cast<unsigned int>(aHundredYears * 2));
|
||||||
} else {
|
} else if (set->getSetType() == "Core" || set->getSetType() == "Expansion") {
|
||||||
set->setSortKey(static_cast<unsigned int>(date.daysTo(distantFuture)));
|
set->setSortKey(static_cast<unsigned int>(date.daysTo(distantFuture)));
|
||||||
|
} else {
|
||||||
|
set->setSortKey(static_cast<unsigned int>(aHundredYears + date.daysTo(distantFuture)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue