Cockatrice/oracle/src
J. Cameron McDonald b9ed9a6c0b
feat: set prioritization by set type (#5097)
* feat: prefer 'Core' and 'Expansion' sets for prioritization

* rework set prioritization

* clean up priority enum

* formatting

* revert changes to CockatriceXml3Parser

* re-add missing null check

* remove priority fallback ternary from CardSet model

* make defaultSort logic easier to follow

* revert changes to v3 card database xsd

* remove unused invisible priority col from sets dialog

* move draft innovation and duel deck sets to secondary prio

* minor fixes

* change PriorityFallback to 1

* make priority optional in xml

* remove PriorityUndefined and set PriorityFallback to 0

* 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

* simplify sort function

---------

Co-authored-by: tooomm <tooomm@users.noreply.github.com>
Co-authored-by: ebbit1q <ebbit1q@gmail.com>
2024-12-01 19:59:00 -05:00
..
lzma [WIP] Basic mtgjsonv4 support (#3458) 2018-12-20 18:05:03 -05:00
qt-json save downloaded xmls (#4736) 2023-04-01 22:19:57 -04:00
zip make package on macos 13 (#4961) 2023-12-15 21:15:57 -05:00
main.cpp Major Directory Refactoring (#5118) 2024-10-20 10:11:35 -04:00
main.h workaround for foreign card arts getting priority by default (#3652) 2019-03-12 10:12:31 +01:00
oracleimporter.cpp feat: set prioritization by set type (#5097) 2024-12-01 19:59:00 -05:00
oracleimporter.h feat: set prioritization by set type (#5097) 2024-12-01 19:59:00 -05:00
oraclewizard.cpp Major Directory Refactoring (#5118) 2024-10-20 10:11:35 -04:00
oraclewizard.h Address /W4 compiler warnings for Windows (#4910) 2023-10-15 20:31:13 -04:00
pagetemplates.cpp Support MTGJSONv5 format in Oracle downloader (#4162) 2020-11-23 16:12:41 -05:00
pagetemplates.h Misc startup improvement (#3740) 2019-06-02 21:47:37 -04:00