Commit graph

24 commits

Author SHA1 Message Date
Alex W. Jackson
b2b90c17fd Implement collation for DGM, SOI, EMN and RIX 2021-12-23 23:03:07 -05:00
Alex W. Jackson
6da959ddcd Implement collation for Fate Reforged 2021-10-29 15:46:58 -04:00
Alex W. Jackson
7926193e34
Refactor ExpansionSet and its subclasses (#8382)
* Don't purge cards-by-rarity cache between tournaments

* Move DOM and WAR specific checks out of base ExpansionSet class

* Move Battlebond specific methods out of base ExpansionSet class

* Refactor ExpansionSet and subclasses

* Zendikar boosters also only have full-art basic lands

* Fix Eldritch Moon (#8171)
2021-10-13 11:47:23 -04:00
Mike Simons
8d08f005af Fix various hints and warnings on many set & block classes (via IntelliJ IDEA linting):
- replacing hard coded strings of set codes with reference to 'mage.sets.<set>.getInstance().getCode()' allows for set class names to no longer show as unreferenced & adds for more consistence between other block units
- various protected variables were able to be changed to private to clean up additional warnings
- some JavaDoc comments were generating warnings due to missing documentation
- removed some unused imports and unused variables
- there were multiple conditional logic checks for 'rarity != Rarity.LAND' within an if block where the outer condition was 'if rarity == Rarity.COMMON' rendering the inner condition always true and thus redundant
- a few ExpansionSet.buildDate parameters wer using octal values (eg. '03' instead of '3') which triggered some warnings
- added a booster generation test for WarOfTheSparks to make sure every booster contains a planeswalker
- added a booster generation test for ModernHorizons to make sure every booster contains a snow land
- booster generation test for Battlbond set referenced the Coldsnap set class instead of Battlebond
2019-07-18 23:28:48 -04:00
Oleg Agafonov
434044eb0f * Fixed missing lands from some sets in lands/decks generation; 2018-10-03 00:54:32 +04:00
Quercitron
992470e1ea Fix that MaxCardNumberInBooster filter is applied incorrectly and only part of the commons is used for booster generation in the Core Set 2019, Dragon's Maze and Fate Reforged sets 2018-07-08 17:23:44 +03:00
GrayedFox
3953f3dbdd
remove all MIT copyright notices from files 2018-06-02 17:59:49 +02:00
Evan Kranzler
92a6bd4748 Changed all set classes to final 2018-05-21 11:20:15 -04:00
igoudt
6336f82845 remove redundant cardgraphicinfo instances 2017-08-06 17:23:03 +02:00
LevelX2
cd6c7623ed * Added missing imports, imports reorg. 2017-07-23 16:29:29 +02:00
fireshoes
55b433ae36 [AKH] Added 3/27 spoilers to mtg-cards-data.txt. Implemented several of the new cards. 2017-03-28 22:25:29 -05:00
vraskulin
d93061c0bc Equals should be compared with == but not equals() 2017-03-22 14:50:50 +03:00
ingmargoudt
234cfe9519 rewrote singleton to enum where applicable 2017-03-14 16:32:47 +01:00
fireshoes
89dd981075 Merge 2016-10-17 23:45:47 -05:00
JOAC69
59f88047e4 Modify cards 2016-10-04 20:06:28 -05:00
LevelX2
d03d65190e * Fixed a bug of Fate Reforged booster generation adding wrong rarities. 2016-09-11 10:18:10 +02:00
LevelX2
89bd184407 Changed land slot card generation of Fate Reforged booster (related to #666). 2016-03-09 12:27:40 +01:00
Neil Gentleman
3540eaada4 fix some set boosters
- Masters Edition II & IV don't have basics, they used ME1 lands
   when drafting
 - Fate Reforged does have basics, they just didn't show up in boosters
 - Journey Into Nyx boosters have a basic land slot
 - Unlimited boosters do not
 - Portal Three Kingdoms boosters are only 10 cards
 - Starter 1999 boosters have two basic lands
2015-11-21 18:36:46 -08:00
Simown
84d2353819 Fix for Random booster draft iterates endless while booster generation (#1136) 2015-07-26 12:45:14 +01:00
LevelX2
cd5c4fe7b9 * Fixed bug in FRF booster generation for common cards. 2015-02-12 22:53:42 +01:00
LevelX2
b4636b2ce1 * Rework of booster generation to reduce DB load while starting a tournament. 2015-02-10 00:51:36 +01:00
fireshoes
b65ba5695b Updated FRF to have gainlands and fetchlands in the land slot, added Lightning Shrieker 2015-01-06 00:53:00 -06:00
fireshoes
9ed332a018 Fixed FRF set for including basic lands 2015-01-05 21:38:12 -06:00
fireshoes
4cb0cb13e8 Added Fate Reforged set and Pride of the Clouds card 2014-12-16 15:18:08 -06:00