feat: prefer 'Core' and 'Expansion' sets for prioritization

This commit is contained in:
Cameron McDonald 2024-08-12 13:27:39 -05:00
parent f73196841a
commit f85faf141d

View file

@ -207,9 +207,11 @@ void SetList::guessSortKeys()
QDate date = set->getReleaseDate();
if (date.isNull()) {
set->setSortKey(static_cast<unsigned int>(aHundredYears));
} else {
set->setSortKey(static_cast<unsigned int>(aHundredYears * 2));
} else if (set->getSetType() == "Core" || set->getSetType() == "Expansion") {
set->setSortKey(static_cast<unsigned int>(date.daysTo(distantFuture)));
} else {
set->setSortKey(static_cast<unsigned int>(aHundredYears + date.daysTo(distantFuture)));
}
}
}