-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtables.go
1102 lines (1086 loc) · 44.5 KB
/
tables.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package main
// convert from CK sets to CS
var setMap = map[string]string{
"Unlimited": "Unlimited Edition",
"3rd Edition": "Revised Edition",
"4th Edition": "Fourth Edition",
"5th Edition": "Fifth Edition",
"6th Edition": "Classic Sixth Edition",
"7th Edition": "Seventh Edition",
"8th Edition": "Eighth Edition",
"9th Edition": "Ninth Edition",
"10th Edition": "Tenth Edition",
"2010 Core Set": "Magic 2010",
"2011 Core Set": "Magic 2011",
"2012 Core Set": "Magic 2012",
"2013 Core Set": "Magic 2013",
"2014 Core Set": "Magic 2014 Core Set",
"2015 Core Set": "Magic 2015 Core Set",
"Archenemy - Nicol Bolas": "Archenemy Nicol Bolas",
"Battle Royale": "Battle Royale Box Set",
"Beatdown": "Beatdown Box Set",
"Commander 2013": "Commander 2013 Edition",
"Commander Anthology Vol. II": "Commander Anthology 2018",
"Conspiracy - Take the Crown": "Conspiracy Take the Crown",
"Deckmaster": "Deckmasters",
"Modern Event Deck": "Modern Event Deck 2014",
"Modern Masters 2015": "Modern Masters 2015 Edition",
"Modern Masters 2017": "Modern Masters 2017 Edition",
"Planechase 2012": "Planechase 2012 Edition",
"Portal 3K": "Portal Three Kingdoms",
"Portal II": "Portal Second Age",
"Ravnica": "Ravnica City of Guilds",
"Shadows Over Innistrad": "Shadows over Innistrad",
"Shards of Alara": "Shards Of Alara",
"Timeshifted": "Time Spiral Timeshifted",
}
// CS attaches a different custom tag to the card name
var promoTags = map[string]string{
"All Is Dust": "Grand Prix promo",
"Angel Demon": "Double sided Helvault token",
"Arena": "HarperPrism",
"Azorius Guildmage": "",
"Batterskull": "Grand Prix promo",
"Black Sun's Zenith": "Mirrodin Promo",
"Blood Knight": "Champs 2007",
"Bramblewood Paragon": "Champs 2008",
"Breaking Entering": "Dragon's Maze Promo",
"Budoka Pupil": "Kamigawa promo",
"Call of the Herd": "Grand Prix promo",
"Chief Engineer": "M15 Promo",
"Chrome Mox": "Grand Prix promo",
"Counterspell": "DCI Legend",
"Cryptborn Horror": "Ravnica Promo",
"Dictate of Kruphix": "Nyx game day promo",
"Dictate of the Twin Gods": "Nyx Launch Promo",
"Dimir Guildmage": "Ravnica release promo",
"Diregraf Ghoul": "Innistrad Promo",
"Doran, the Siege Tower": "Champs 2007",
"Dryad Militant": "Ravnica promo",
"Dungrove Elder": "M12 Promo",
"Earwig Squad": "Morningtide Promo",
"Eidolon of Blossoms": "Promo",
"Electrolyze": "Champs 2006",
"Elite Inquisitor": "Innistrad Promo",
"Evil Presents": "",
"Faerie Conclave": "Commander Promo",
"Figure of Destiny": "Eventide Promo",
"Firemane Avenger": "Gatecrash Promo",
"Flamerush Rider": "alt art foil",
"Force of Nature": "Ninth Ed Promo",
"Fruitcake Elemental": "",
"Garruk's Horde": "M12 Promo",
"Ghost-Lit Raider": "Saviors promo",
"Giant Badger": "HarperPrism",
"Gifts Given": "",
"Goblin Diplomats": "M14 Promo",
"Goblin Guide": "Grand Prix promo",
"Groundbreaker": "Champs 2007",
"Gruul Guildmage": "Guildpact release promo",
"Hall of Triumph": "Nyx Game Day Promo",
"Hedge Troll": "Planar Chaos promo",
"Heir of the Wilds": "KoT Promo",
"Hive Stirrings": "M14 Promo",
"Imperious Perfect": "Ext Art",
"Incinerate": "DCI Legend",
"Killing Wave": "Avacyn Promo",
"Kiora's Follower": "Born of the Gods Promo",
"Knight of New Alara": "Alara Promo",
"Latch Seeker": "Avacyn Promo",
"Liliana's Specter": "M11 Promo",
"Lotus Cobra": "Grand Prix promo",
"Ludevic's Test Subject": "Innistrad Promo",
"Maelstrom Pulse": "Grand Prix promo",
"Magmaquake": "M13 Promo",
"Mana Crypt": "HarperPrism",
"Mardu Shadowspear": "Fate Reforged game day",
"Memnite": "Scars Promo",
"Mirran Crusader": "",
"Mitotic Slime": "M11 Promo",
"Mondronen Shaman": "Dark Ascension promo",
"Mutavault": "Champs 2008",
"Mwonvuli Beast Tracker": "M13 Promo",
"Myr Superion": "New Phyrexia Promo",
"Nalathni Dragon": "Duelist",
"Naughty Nice": "",
"Nighthowler": "Theros promo",
"Niv-Mizzet, the Firemind": "Champs 2006",
"Pain Seer": "Born of the Gods Promo",
"Phalanx Leader": "Theros promo",
"Priest of Urabrask": "New Phyrexia Promo",
"Primeval Titan": "Grand Prix promo",
"Pristine Talisman": "New Phyrexia Promo",
"Rakdos Guildmage": "Champs 2006",
"Reclamation Sage": "M15 Promo",
"Restoration Angel": "Avacyn Promo",
"Reya Dawnbringer": "Tenth Ed Promo",
"Robot Chicken": "San Diego PTQ Special Guest Promo",
"Rukh Egg": "Eighth Ed Promo",
"Sandsteppe Mastodon": "Fate Reforged promo",
"Scent of Cinder": "Duelist",
"Season's Beatings": "",
"Serra Avenger": "Champs 2006",
"Sewers of Estark": "HarperPrism",
"Shamanic Revelation": "Fate Reforged promo",
"Shivan Dragon": "Ninth Ed Promo",
"Shriekmaw": "Lorwyn promo",
"Snow Mercy": "",
"Spiritmonger": "Grand Prix promo",
"Sprouting Thrinax": "DCI alt art foil",
"Squelching Leeches": "Nyx game day promo",
"Staff of Nin": "M13 Promo",
"Stocking Tiger": "",
"Storm Entity": "Future Sight Promo",
"Stormblood Berserker": "M12 Promo",
"Strangleroot Geist": "Dark Ascension Promo",
"Sudden Shock": "Time Spiral Promo",
"Supplant Form": "Fate Reforged promo",
"Suture Priest": "New Phyrexia Promo",
"Sylvan Caryatid": "Theros Promo",
"Tempered Steel": "Scars Promo",
"The Destined": "Nyx Launch Party Promo",
"Treasure Mage": "Mirrodin Promo",
"Treetop Village": "Promo",
"Trostani's Summoner": "Dragon's Maze Promo",
"Umezawa's Jitte": "Grand Prix promo",
"Urza's Factory": "Champs 2006",
"Utter End": "KoT Promo",
"Vengevine": "World Cup Promo",
"Vexing Shusher": "Shadowmoor Promo",
"Voidslime": "Champs 2006",
"Windseeker Centaur": "HarperPrism",
"Woolly Thoctar": "DCI alt art foil",
"Yule Ooze": "",
"Zameck Guildmage": "Gatecrash promo",
"Zombie Apocalypse": "Dark Ascension Promo",
}
var prereleaseTags = map[string]string{
"Ancient Hellkite": "M11 Promo",
"Ant Queen": "M10 Promo",
"Ass Whuppin'": "Release promo",
"Brutal Hordechief": "promo foil",
"Colossal Whale": "M14 Promo",
"Deadbridge Goliath": "Ravnica Promo",
"Goblin Rabblemaster": "M15 Promo",
"Icy Blast": "promo",
"In Garruk's Wake": "M15 Promo",
"Indulgent Tormentor": "M15 Promo",
"Joraga Warcaller": "Worldwake Promo",
"Lord of Shatterskull Pass": "Eldrazi Promo",
"Mardu Strike Leader": "stamped foil",
"Mercurial Pretender": "M15 Promo",
"Obelisk of Alara": "Conflux Promo",
"Phyrexian Metamorph": "New Phyrexia Promo",
"Phytotitan": "M15 Promo",
"Resolute Archangel": "M15 Promo",
"Siege Dragon": "M15 Promo",
"Skarrg Goliath": "Gatecrash Promo",
"Thopter Assembly": "Mirrodin Promo",
"Tromokratis": "Born of the Gods Promo",
"Valakut, the Molten Pinnacle": "Zendikar Promo",
}
var gatewayTags = map[string]string{
"Auramancer": "Gateway Promo",
"Bloodcrazed Neonate": "Gateway Promo",
"Boggart Ram-Gang": "Gateway 2008",
"Boneyard Wurm": "Gateway Promo",
"Boomerang": "Gateway 2007",
"Calciderm": "Gateway 2007",
"Cenn's Tactician": "Gateway 2008",
"Circle of Flame": "Gateway Promo",
"Curse of the Bloody Tome": "Gateway Promo",
"Curse of Thirst": "Gateway Promo",
"Curse of Wizardry": "Gateway special",
"Dauntless Dourbark": "Gateway special",
"Deathless Angel": "Gateway special",
"Duergar Hedge-Mage": "Gateway 2008",
"Emeria Angel": "Gateway special",
"Fiery Temper": "Gateway 2006",
"Fling": "Gateway special",
"Gather the Townsfolk": "Gateway Promo",
"Golem's Heart": "Gateway special",
"Gravedigger": "Gateway 2008",
"Hada Freeblade": "Gateway special",
"Hellspark Elemental": "Gateway 2008",
"Icatian Javelineers": "Gateway 2006",
"Kalastria Highborn": "Gateway special",
"Kor Duelist": "Gateway special",
"Kor Firewalker": "Gateway special",
"Lava Axe": "Gateway 2008",
"Leatherback Baloth": "Gateway special",
"Llanowar Elves": "Gateway 2007",
"Marisi's Twinclaws": "Gateway 2008",
"Master's Call": "Gateway special",
"Maul Splicer": "Gateway special",
"Mind Control": "Gateway 2009",
"Mind Stone": "Gateway 2007",
"Mogg Fanatic": "Gateway 2007",
"Mycoid Shepherd": "Gateway 2009",
"Naya Sojourners": "2010 Game Day",
"Nearheath Stalker": "Gateway Promo",
"Nissa's Chosen": "Gateway special",
"Oona's Blackguard": "Gateway 2008",
"Path to Exile": "Gateway 2008",
"Pathrazer of Ulamog": "Gateway special",
"Plague Myr": "Gateway special",
"Plague Stinger": "Gateway special",
"Reckless Wurm": "Gateway 2008",
"Rise from the Grave": "Gateway 2009",
"Selkie Hedge Mage": "Gateway 2008",
"Shrine of Burning Rage": "Gateway promo",
"Signal Pest": "Gateway special",
"Skinrender": "Gateway special",
"Slave of Bolas": "Gateway 2009",
"Sprouting Thrinax": "Gateway 2008",
"Staggershock": "Gateway special",
"Sylvan Ranger": "Gateway special",
"Syphon Mind": "Gateway WPN Promo",
"Tormented Soul": "Gateway Promo",
"Vampire Nighthawk": "Gateway special",
"Vault Skirge": "Gateway special",
"Wilt-Leaf Cavalier": "Gateway 2008",
"Wood Elves": "Gateway 2006",
"Woolly Thoctar": "Gateway 2008",
"Yixlid Jailer": "Gateway 2007",
"Zoetic Cavern": "Gateway 2007",
}
var arenaYears = map[string]int{
"Arc Lightning": 2002,
"Ashnod's Coupon": 2004,
"Bonesplitter": 2003,
"Booster Tutor": 2004,
"Castigate": 2006,
"Chill": 2000,
"Circle of Protection Art": 2004,
"Coiling Oracle": 2006,
"Creeping Mold": 2001,
"Darksteel Ingot": 2004,
"Dauthi Slayer": 2002,
"Diabolic Edict": 2001,
"Disenchant": 1996,
"Dismiss": 2001,
"Duress": 2000,
"Elvish Aberration": 2003,
"Empyrial Armor": 2001,
"Enlightened Tutor": 2000,
"Fireball": 1996,
"Fling": 2001,
"Gaea's Blessing": 2001,
"Genju of the Spires": 2005,
"Glacial Ray": 2004,
"Goblin Mime": 2004,
"Granny's Payback": 2004,
"Karn, Silver Golem": 1999,
"Man-o'-War": 2002,
"Mana Leak": 2002,
"Mise": 2004,
"Okina Nightwatch": 2005,
"Pillage": 2000,
"Pouncing Jaguar": 1999,
"Rewind": 1999,
"Serum Visions": 2004,
"Skirk Marauder": 2003,
"Skittering Skirge": 1999,
"Skyknight Legionnaire": 2005,
"Stupor": 2000,
"Surging Flame": 2006,
"Uktabi Orangutan": 2000,
"Wee Dragonauts": 2006,
}
var fnmYears = map[string]string{
"Accumulated Knowledge": "(FNM 2004)",
"Acidic Slime": "(FNM 2012)",
"Albino Troll": "(FNM 2002)",
"Anathemancer": "(FNM 2010)",
"Ancient Grudge": "(FNM 2012)",
"Ancient Ziggurat": "(FNM 2010)",
"Armadillo Cloak": "(FNM 2006)",
"Arrogant Wurm": "(FNM 2006)",
"Artisan of Kozilek": "(FNM 2011)",
"Astral Slide": "(FNM 2006)",
"Aura of Silence": "(FNM 2002)",
"Avacyn's Pilgrim": "(FNM 2012)",
"Avalanche Riders": "(FNM 2004)",
"Banisher Priest": "(FNM 2014)",
"Basking Rootwalla": "(FNM 2007)",
"Beast of Burden": "", // I hate you
"Black Knight": "(FNM 2002)",
"Blastoderm": "(FNM 2005)",
"Bloodbraid Elf": "(FNM 2010)",
"Bottle Gnomes": "(FNM 2003)",
"Brain Maggot": "(promo)",
"Brainstorm": "(FNM 2004)",
"Browbeat": "(FNM 2009)",
"Cabal Coffers": "(FNM 2007)",
"Cabal Therapy": "(FNM 2005)",
"Call of the Conclave": "(FNM 2013)",
"Capsize": "(FNM 2003)",
"Carnophage": "(FNM 2001)",
"Carrion Feeder": "(FNM 2004)",
"Chainer's Edict": "(FNM 2006)",
"Circle of Protection Red": "(FNM 2005)",
"Circular Logic": "(FNM 2006)",
"Cloudpost": "(FNM 2010)",
"Contagion Clasp": "(FNM 2011)",
"Counterspell": "(FNM 2005)",
"Cultivate": "(FNM 2011)",
"Deep Analysis": "(FNM 2007)",
"Desert": "(FNM 2008)",
"Despise": "(FNM 2012)",
"Dimir Charm": "(FNM 2013)",
"Disenchant": "(FNM 2003)",
"Dismember": "(FNM 2012)",
"Dissipate": "(FNM 2002)",
"Dissolve": "(FNM 2014)",
"Drain Life": "(FNM 2002)",
"Duress": "(FNM 2005)",
"Elves of Deep Shadow": "(FNM 2006)",
"Elvish Mystic": "(FNM 2014)",
"Elvish Visionary": "(FNM 2010)",
"Encroaching Wastes": "(FNM 2014)",
"Engineered Plague": "(FNM 2007)",
"Eternal Witness": "(FNM 2008)",
"Everflowing Chalice": "(FNM 2011)",
"Evolving Wilds": "(FNM 2012)",
"Experiment One": "(FNM 2013)",
"Fact or Fiction": "(FNM 2005)",
"Farseek": "(FNM 2013)",
"Fire Ice": "(FNM 2006)",
"Fireblast": "(FNM 2001)",
"Firebolt": "(FNM 2007)",
"Fireslinger": "(FNM 2002)",
"Flametongue Kavu": "(FNM 2005)",
"Forbid": "(FNM 2002)",
"Forbidden Alchemy": "(FNM 2012)",
"Force Spike": "(FNM 2007)",
"Frenzied Goblin": "(promo)",
"Gatekeeper of Malakir": "(FNM 2010)",
"Gerrard's Verdict": "(FNM 2007)",
"Ghor-Clan Rampager": "(FNM 2013)",
"Ghostly Prison": "(FNM 2010)",
"Giant Growth": "(FNM 2000)",
"Gitaxian Probe": "(FNM 2012)",
"Glistener Elf": "(FNM 2012)",
"Go for the Throat": "(FNM 2011)",
"Goblin Bombardment": "(FNM 2003)",
"Goblin Legionnaire": "(FNM 2007)",
"Goblin Ringleader": "(FNM 2007)",
"Goblin Warchief": "(FNM 2006)",
"Grisly Salvage": "(FNM 2013)",
"Icy Manipulator": "(FNM 2005)",
"Impulse": "(FNM 2001)",
"Isochron Scepter": "(FNM 2008)",
"Izzet Charm": "(FNM 2013)",
"Jace's Ingenuity": "(FNM 201", // I hate you more
"Jackal Pup": "(FNM 2001)",
"Judge's Familiar": "(FNM 2013)",
"Juggernaut": "(FNM 2005)",
"Kird Ape": "(FNM 2005)",
"Kitchen Finks": "(FNM 2009)",
"Krosan Grip": "(FNM 2010)",
"Krosan Tusker": "(FNM 2003)",
"Krosan Warchief": "(FNM 2004)",
"Life Death": "(FNM 2006)",
"Lightning Greaves": "(FNM 2009)",
"Lightning Rift": "(FNM 2004)",
"Lingering Souls": "(FNM 2012)",
"Llanowar Elves": "(FNM 2000)",
"Lobotomy": "(FNM 2006)",
"Longbow Archer": "(FNM 2000)",
"Magma Jet": "(FNM 2009)",
"Merrow Reejerey": "(FNM 2009)",
"Mind Warp": "(FNM 2000)",
"Mogg Fanatic": "(FNM 2002)",
"Mother of Runes": "(FNM 2004)",
"Mulldrifter": "(FNM 2009)",
"Murderous Redcap": "(FNM 2009)",
"Muscle Sliver": "(FNM 2003)",
"Myr Enforcer": "(FNM 2009)",
"Oblivion Ring": "(FNM 2009)",
"Ophidian": "(FNM 2001)",
"Pendelhaven": "(FNM 2008)",
"Pillar of Flame": "(FNM 2012)",
"Priest of Titania": "(FNM 2003)",
"Prodigal Sorcerer": "(FNM 2000)",
"Qasali Pridemage": "(FNM 2010)",
"Quirion Ranger": "(FNM 2001)",
"Rakdos Cackler": "(FNM 2013)",
"Rancor": "(FNM 2005)",
"Reanimate": "(FNM 2004)",
"Reliquary Tower": "(FNM 2013)",
"Remand": "(FNM 2008)",
"Resurrection": "(FNM 2008)",
"Rhox War Monk": "(FNM 2011)",
"Rift Bolt": "(FNM 2010)",
"River Boa": "(FNM 2000)",
"Roar of the Wurm": "(FNM 2007)",
"Sakura-Tribe Elder": "(FNM 2009)",
"Savage Lands": "(FNM 2011)",
"Scragnoth": "(FNM 2003)",
"Seal of Cleansing": "(FNM 2005)",
"Searing Spear": "(FNM 2013)",
"Serrated Arrows": "(FNM 2008)",
"Shock": "(FNM 2000)",
"Shrapnel Blast": "(FNM 2008)",
"Silver Knight": "(FNM 2004)",
"Sin Collector": "(FNM 2013)",
"Slice and Dice": "(FNM 2004)",
"Smother": "(FNM 2003)",
"Soltari Priest": "(FNM 2002)",
"Sparksmith": "(FNM 2003)",
"Spellstutter Sprite": "(FNM 2011)",
"Spike Feeder": "(FNM 2002)",
"Squadron Hawk": "(FNM 2011)",
"Staunch Defenders": "(FNM 2000)",
"Stoke the Flames": "(FNM 2014)",
"Stone Rain": "(FNM 2000)",
"Swords to Plowshares": "(FNM 2001)",
"Tectonic Edge": "(FNM 2012)",
"Teetering Peaks": "(FNM 2011)",
"Tendrils of Agony": "(FNM 2008)",
"Terminate": "(FNM 2006)",
"Terror": "(FNM 2000)",
"Thirst for Knowledge": "(FNM 2008)",
"Tidehollow Sculler": "(FNM 2010)",
"Tormented Hero": "(FNM 2014)",
"Tormod's Crypt": "(FNM 2008)",
"Treetop Village": "(FNM 2004)",
"Volcanic Geyser": "(FNM 2000)",
"Wall of Blossoms": "(FNM 2002)",
"Wall of Omens": "(FNM 2011)",
"Wall of Roots": "(FNM 2008)",
"Warleader's Helix": "(FNM 2013)",
"Watchwolf": "(FNM 2009)",
"Whipcorder": "(FNM 2003)",
"White Knight": "(FNM 2002)",
"Wild Mongrel": "(FNM 2006)",
"Wild Nacatl": "(FNM 2010)",
"Willbender": "(FNM 2004)",
"Wing Shards": "(FNM 2007)",
"Withered Wretch": "(FNM 2003)",
"Wonder": "(FNM 2007)",
"Wren's Run Vanquisher": "(FNM 2009)",
}
var aetherMess = map[string]string{
"Aether Adept": "Æther Adept",
"Aether Barrier": "Æther Barrier",
"Aether Burst": "Æther Burst",
"Aether Charge": "Æther Charge",
"Aether Figment": "Æther Figment",
"Aether Flash": "Æther Flash",
"Aether Gale": "Æther Gale",
"Aether Membrane": "Æther Membrane",
"Aether Mutation": "Æther Mutation",
"Aether Rift": "Æther Rift",
"Aether Searcher": "Æther Searcher",
"Aether Snap": "Æther Snap",
"Aether Spellbomb": "Æther Spellbomb",
"Aether Sting": "Æther Sting",
"Aether Storm": "Æther Storm",
"Aether Tide": "Æther Tide",
"Aether Tradewinds": "Æther Tradewinds",
"Aether Vial": "Æther Vial",
"Aether Web": "Æther Web",
"Aetherflame Wall": "Ætherflame Wall",
"Aetherize": "Ætherize",
"Aetherling": "Ætherling",
"Aethermage's Touch": "Æthermage's Touch",
"Aetherplasm": "Ætherplasm",
"Aethersnatch": "Æthersnatch",
"Aethersnipe": "Æthersnipe",
"Aetherspouts": "Ætherspouts",
"Aethertow": "Æthertow",
"Anchor to the Aether": "Anchor to the Æther",
"Arm with Aether": "Arm with Æther",
"Azorius Aethermage": "Azorius Æthermage",
"Chaotic Aether": "Chaotic Æther",
"Fold into Aether": "Fold into Æther",
"Frozen Aether": "Frozen Æther",
"Gate to the Aether": "Gate to the Æther",
"Ghirapur Aether Grid": "Ghirapur Æther Grid",
"Obscuring Aether": "Obscuring Æther",
"Scornful Aether Lich": "Scornful Æther Lich",
"Surging Aether": "Surging Æther",
"Tainted AEther": "Tainted Æther",
"The Aether Flues": "The Æther Flues",
"Unravel the Aether": "Unravel the Æther",
"Vedalken Aethermage": "Vedalken Æthermage",
"Vedalken AEthermage": "Vedalken Æthermage",
"Yet Another Aether Vortex": "Yet Another Æther Vortex",
}
var urzaLands = map[string]map[string]string{
"Urza's Power Plant (Bug)": map[string]string{
"Antiquities": "Urza's Power Plant (bug)",
"Chronicles": "Urza's Power Plant (Version 1)",
},
"Urza's Power Plant (Columns)": map[string]string{
"Antiquities": "Urza's Power Plant (columns)",
"Chronicles": "Urza's Power Plant (Version 2)",
},
"Urza's Power Plant (Sphere)": map[string]string{
"Antiquities": "Urza's Power Plant (sphere)",
"Chronicles": "Urza's Power Plant (Version 3)",
},
"Urza's Power Plant (Pot)": map[string]string{
"Antiquities": "Urza's Power Plant (rock in pot)",
"Chronicles": "Urza's Power Plant (Version 4)",
},
"Urza's Tower (Forest)": map[string]string{
"Antiquities": "Urza's Tower (forest)",
"Chronicles": "Urza's Tower (Version 1)",
},
"Urza's Tower (Mountains)": map[string]string{
"Antiquities": "Urza's Tower (mountain)",
"Chronicles": "Urza's Tower (Version 2)",
},
"Urza's Tower (Plains)": map[string]string{
"Antiquities": "Urza's Tower (plains)",
"Chronicles": "Urza's Tower (Version 3)",
},
"Urza's Tower (Shore)": map[string]string{
"Antiquities": "Urza's Tower (shore)",
"Chronicles": "Urza's Tower (Version 4)",
},
"Urza's Mine (Sphere)": map[string]string{
"Antiquities": "Urza's Mine (claw sphere)",
"Chronicles": "Urza's Mine (Version 1)",
},
"Urza's Mine (Mouth)": map[string]string{
"Antiquities": "Urza's Mine (mouth)",
"Chronicles": "Urza's Mine (Version 2)",
},
"Urza's Mine (Pulley)": map[string]string{
"Antiquities": "Urza's Mine (pulley)",
"Chronicles": "Urza's Mine (Version 3)",
},
"Urza's Mine (Tower)": map[string]string{
"Antiquities": "Urza's Mine (tower)",
"Chronicles": "Urza's Mine (Version 4)",
},
}
var anyVariant = map[string]string{
// accents
"Dandan": "Dandân",
"Ghazban Ogre": "Ghazbán Ogre",
"Ghazban Ogress": "Ghazbán Ogress",
"Ifh-Biff Efreet": "Ifh Bíff Efreet",
"Junun Efreet": "Junún Efreet",
"Juzam Djinn": "Juzám Djinn",
"Khabal Ghoul": "Khabál Ghoul",
"Ring of Ma'ruf": "Ring of MaRuf",
"Seance": "Séance",
// split cards
"Discovery": "Discovery Dispersal",
"Flower": "Flower Flourish",
// capitals (and dashes)
"Aerathi Berserker": "Ærathi Berserker",
"Blind with Anger": "Blind With Anger",
"Boggart Ram-Gang (Gateway 2008)": "Boggart Ram- Gang (Gateway 2008)",
"Honor-Worn Shaku": "Honor worn Shaku",
"Man-o'-War (Arena 2002)": "Man O' War (Arena 2002)",
"Nezumi Bone-Reader": "Nezumi Bone reader",
"Soratami Mirror-Guard": "Soratami Mirror guard",
"Soratami Mirror-Mage": "Soratami Mirror mage",
// keep as is
"Boggart Ram-Gang": "",
"Elspeth, Knight-Errant": "",
"Ink-Eyes, Servant of Oni": "",
"Kiki-Jiki, Mirror Breaker": "",
"Siege-Gang Commander": "",
// variants
"Arcane Denial (Axe)": "Arcane Denial (Version 2)",
"Arcane Denial (Sword)": "Arcane Denial",
"Brothers Yamazaki (160 A)": "", //skip
"Brothers Yamazaki (160 B)": "Brothers Yamazaki",
"Elvish Ranger (Facing Left)": "Elvish Ranger",
"Elvish Ranger (Facing Right)": "Elvish Ranger (Version 2)",
"Feast or Famine (Falling)": "Feast or Famine (Version 2)",
"Feast or Famine (Knife)": "Feast or Famine",
"Gorilla Shaman (Facing Left)": "Gorilla Shaman",
"Gorilla Shaman (Facing Right)": "Gorilla Shaman (Version 2)",
"High Tide (Maddocks)": "High Tide (Version 2)",
"High Tide (Tucker)": "High Tide",
"High Tide (Weber)": "High Tide (Version 3)",
"Hymn to Tourach (Danforth)": "Hymn to Tourach (Version 2)",
"Hymn to Tourach (Hoover)": "Hymn to Tourach (Version 3)",
"Hymn to Tourach (Kirschner)": "Hymn to Tourach (Version 4)",
"Hymn to Tourach (Van Camp)": "Hymn to Tourach",
"Mishra's Factory (Autumn)": "Mishra's Factory (fall)",
"Mishra's Factory (Spring)": "Mishra's Factory (spring)",
"Mishra's Factory (Summer)": "Mishra's Factory (summer)",
"Mishra's Factory (Winter)": "Mishra's Factory (winter)",
"Simic Signet (215 A)": "Simic Signet",
"Simic Signet (216 B)": "Simic Signet",
"Soldevi Adnate (One Eye)": "Soldevi Adnate",
"Soldevi Adnate (Two Eyes)": "Soldevi Adnate (Version 2)",
"Solemn Simulacrum (218 A)": "Solemn Simulacrum",
"Solemn Simulacrum (219 B)": "Solemn Simulacrum",
"Strip Mine (A)": "Strip Mine (Version 3)",
"Strip Mine (B)": "Strip Mine (Version 1)",
"Strip Mine (C)": "Strip Mine (Version 4)",
"Strip Mine (D)": "Strip Mine (Version 2)",
"Temple of the False God (271 A)": "Temple of the False God",
"Temple of the False God (272 B)": "Temple of the False God",
}
var guildKitCards = map[string]string{
"Isperia, Supreme Judge": "Azorius",
"Pride of the Clouds": "Azorius",
"Lavinia of the Tenth": "Azorius",
"Windreaver": "Azorius",
"Isperia the Inscrutable": "Azorius",
"Archon of the Triumvirate": "Azorius",
"Judge's Familiar": "Azorius",
"Azorius Guildmage": "Azorius",
"Azorius Herald": "Azorius",
"Stoic Ephemera": "Azorius",
"Court Hussar": "Azorius",
"Hover Barrier": "Azorius",
"Lyev Skyknight": "Azorius",
"Azorius Justiciar": "Azorius",
"Skymark Roc": "Azorius",
"Sky Hussar": "Azorius",
"Sphinx of Foresight": "Azorius",
"Spirit of the Spires": "Azorius",
"Sphinx of New Prahv": "Azorius",
"Windstorm Drake": "Azorius",
"Detention Sphere": "Azorius",
"Dovescape": "Azorius",
"Sky Tether": "Azorius",
"Render Silent": "Azorius",
"Sphinx's Revelation": "Azorius",
"Azorius Charm": "Azorius",
"Dramatic Rescue": "Azorius",
"Unbreakable Formation": "Azorius",
"Summary Judgment": "Azorius",
"Sphinx's Insight": "Azorius",
"Warrant Warden": "Azorius",
"Depose Deploy": "Azorius",
"Azorius Signet": "Azorius",
"Azorius Keyrune": "Azorius",
"Azorius Chancery": "Azorius",
"Azorius Guildgate": "Azorius",
"Rakdos, Lord of Riots": "Rakdos",
"Lyzolda, the Blood Witch": "Rakdos",
"Avatar of Discord": "Rakdos",
"Rakdos Pit Dragon": "Rakdos",
"Master of Cruelties": "Rakdos",
"Carnival Hellsteed": "Rakdos",
"Rakdos the Defiler": "Rakdos",
"Utvara Hellkite": "Rakdos",
"Rakdos Cackler": "Rakdos",
"Thrill-Kill Assassin": "Rakdos",
"Rakdos Guildmage": "Rakdos",
"Rakdos Shred-Freak": "Rakdos",
"Splatter Thug": "Rakdos",
"Jagged Poppet": "Rakdos",
"Crypt Champion": "Rakdos",
"Rix Maadi Reveler": "Rakdos",
"Spawn of Mayhem": "Rakdos",
"Rakdos Firewheeler": "Rakdos",
"Blade Juggler ": "Rakdos",
"Dreadbore": "Rakdos",
"Demonfire": "Rakdos",
"Rakdos's Return": "Rakdos",
"Skewer the Critics": "Rakdos",
"Dead Revels": "Rakdos",
"Rakdos Charm": "Rakdos",
"Auger Spree": "Rakdos",
"Cackling Flames": "Rakdos",
"Wrecking Ball": "Rakdos",
"Carnival Carnage": "Rakdos",
"Rakdos Signet": "Rakdos",
"Rakdos Keyrune": "Rakdos",
"Riot Spikes": "Rakdos",
"Theater of Horrors": "Rakdos",
"Rakdos Carnarium": "Rakdos",
"Rakdos Guildgate": "Rakdos",
"Ruric Thar, the Unbowed": "Gruul",
"Birds of Paradise": "Gruul",
"Burning-Tree Shaman": "Gruul",
"Ulasht, the Hate Seed": "Gruul",
"Rumbling Slum": "Gruul",
"Giant Solifuge": "Gruul",
"Rubblebelt Raiders": "Gruul",
"Skarrgan Firebird": "Gruul",
"Rubblehulk": "Gruul",
"Protean Hulk": "Gruul",
"Borborygmos": "Gruul",
"Savageborn Hydra": "Gruul",
"Skarrgan Pit-Skulk": "Gruul",
"Wasteland Viper": "Gruul",
"Scab-Clan Mauler": "Gruul",
"Zhur-Taa Druid": "Gruul",
"Burning-Tree Emissary": "Gruul",
"Ghor-Clan Rampager": "Gruul",
"Zhur-Taa Swine": "Gruul",
"Immolation Shaman": "Gruul",
"Ravager Wurm": "Gruul",
"Clan Guildmage": "Gruul",
"Zhur-Taa Goblin": "Gruul",
"Sunder Shaman": "Gruul",
"Savage Twister": "Gruul",
"Gruul Charm": "Gruul",
"Pit Fight": "Gruul",
"Flames of the Raze-Boar": "Gruul",
"Collision Colossus": "Gruul",
"Gruul Signet": "Gruul",
"Wurmweaver Coil": "Gruul",
"Cindervines": "Gruul",
"Rhythm of the Wild": "Gruul",
"Gruul Guildgate": "Gruul",
"Gruul Turf": "Gruul",
"Vorel of the Hull Clade": "Simic",
"Gyre Sage": "Simic",
"Vinelasher Kudzu": "Simic",
"Cytoplast Root-Kin": "Simic",
"Fathom Mage": "Simic",
"Omnibian": "Simic",
"Momir Vig, Simic Visionary": "Simic",
"Progenitor Mimic": "Simic",
"Experiment Kraj": "Simic",
"Simic Sky Swallower": "Simic",
"Experiment One": "Simic",
"Cloudfin Raptor": "Simic",
"Coiling Oracle": "Simic",
"Zameck Guildmage": "Simic",
"Elusive Krasis": "Simic",
"Plaxcaster Frogling": "Simic",
"Trygon Predator": "Simic",
"Nimbus Swimmer": "Simic",
"Zegana, Utopian Speaker": "Simic",
"Skitter Eel": "Simic",
"Frilled Mystic": "Simic",
"Trollbred Guardian": "Simic",
"Galloping Lizrog": "Simic",
"Miming Slime": "Simic",
"Urban Evolution": "Simic",
"Voidslime": "Simic",
"Rapid Hybridization": "Simic",
"Applied Biomancy": "Simic",
"Simic Signet": "Simic",
"Simic Ascendancy": "Simic",
"Guardian Project": "Simic",
"Simic Guildgate": "Simic",
"Simic Growth Chamber": "Simic",
"Teysa, Orzhov Scion": "Orzhov",
"Orzhov Pontiff": "Orzhov",
"Ghost Council of Orzhova": "Orzhov",
"Pontiff of Blight": "Orzhov",
"Skeletal Vampire": "Orzhov",
"Treasury Thrull": "Orzhov",
"Deathpact Angel": "Orzhov",
"Angel of Despair": "Orzhov",
"Martyred Rusalka": "Orzhov",
"Plagued Rusalka": "Orzhov",
"Vizkopa Guildmage": "Orzhov",
"Sin Collector": "Orzhov",
"Keening Banshee": "Orzhov",
"Belfry Spirit": "Orzhov",
"Teysa Karlov": "Orzhov",
"Orzhov Enforcer": "Orzhov",
"Imperious Oligarch": "Orzhov",
"Pitiless Pontiff": "Orzhov",
"Ministrant of Obligation": "Orzhov",
"Vindictive Vampire": "Orzhov",
"Basilica Bell-Haunt": "Orzhov",
"Ultimate Price": "Orzhov",
"Orzhov Charm": "Orzhov",
"Mortify": "Orzhov",
"Final Payment": "Orzhov",
"Consecrate Consume": "Orzhov",
"Orzhov Signet": "Orzhov",
"Debtors' Knell": "Orzhov",
"Stab Wound": "Orzhov",
"Pillory of the Sleepless": "Orzhov",
"One Thousand Lashes": "Orzhov",
"Smothering Tithe": "Orzhov",
"Ethereal Absolution": "Orzhov",
"Orzhov Basilica": "Orzhov",
"Orzhov Guildgate": "Orzhov",
"Etrata, the Silencer": "Dimir",
"Lazav, Dimir Mastermind": "Dimir",
"Dimir Doppelganger": "Dimir",
"Nightveil Specter": "Dimir",
"Circu, Dimir Lobotomist": "Dimir",
"Consuming Aberration": "Dimir",
"Mirko Vosk, Mind Drinker": "Dimir",
"Szadek, Lord of Secrets": "Dimir",
"Wall of Mist": "Dimir",
"Dimir Guildmage": "Dimir",
"Moroii": "Dimir",
"Netherborn Phalanx": "Dimir",
"Dinrova Horror": "Dimir",
"Blood Operative": "Dimir",
"Barrier of Bones": "Dimir",
"Nightveil Predator": "Dimir",
"Glimpse the Unthinkable": "Dimir",
"Stolen Identity": "Dimir",
"Call of the Nightwing": "Dimir",
"Ribbons of Night": "Dimir",
"Mephitic Vapors": "Dimir",
"Notion Rain": "Dimir",
"Disdainful Stroke": "Dimir",
"Telling Time": "Dimir",
"Last Gasp": "Dimir",
"Dimir Charm": "Dimir",
"Warped Physique": "Dimir",
"Syncopate": "Dimir",
"Mission Briefing": "Dimir",
"Unexplained Disappearance": "Dimir",
"Price of Fame": "Dimir",
"Discovery Dispersal": "Dimir",
"Dimir Signet": "Dimir",
"Dimir Aqueduct": "Dimir",
"Dimir Guildgate": "Dimir",
"Trostani, Selesnya's Voice": "Selesnya",
"Loxodon Hierarch": "Selesnya",
"Armada Wurm": "Selesnya",
"Tolsimir Wolfblood": "Selesnya",
"Dryad Militant": "Selesnya",
"Selesnya Evangel": "Selesnya",
"Watchwolf": "Selesnya",
"Selesnya Guildmage": "Selesnya",
"Centaur Healer": "Selesnya",
"Siege Wurm": "Selesnya",
"Venerated Loxodon": "Selesnya",
"Vernadi Shieldmate": "Selesnya",
"Conclave Cavalier": "Selesnya",
"Hour of Reckoning": "Selesnya",
"Call of the Conclave": "Selesnya",
"Camaraderie": "Selesnya",
"Advent of the Wurm": "Selesnya",
"Gather Courage": "Selesnya",
"Selesnya Charm": "Selesnya",
"Sundering Growth": "Selesnya",
"Devouring Light": "Selesnya",
"Scatter the Seeds": "Selesnya",
"Bounty of Might": "Selesnya",
"Selesnya Signet": "Selesnya",
"Glare of Subdual": "Selesnya",
"Growing Ranks": "Selesnya",
"Privileged Position": "Selesnya",
"Pollenbright Wings": "Selesnya",
"Conclave Tribunal": "Selesnya",
"Grove of the Guardian": "Selesnya",
"Selesnya Guildgate": "Selesnya",
"Selesnya Sanctuary": "Selesnya",
"Niv-Mizzet, the Firemind": "Izzet",
"Tibor and Lumia": "Izzet",
"Hypersonic Dragon": "Izzet",
"Djinn Illuminatus": "Izzet",
"Goblin Electromancer": "Izzet",
"Nivix Guildmage": "Izzet",
"Guttersnipe": "Izzet",
"Gelectrode": "Izzet",
"Wee Dragonauts": "Izzet",
"Erratic Cyclops": "Izzet",
"Electrostatic Field": "Izzet",
"Crackling Drake": "Izzet",
"Mizzium Mortars": "Izzet",
"Stitch in Time": "Izzet",
"Invoke the Firemind": "Izzet",
"Shattering Spree": "Izzet",
"Goblin Rally": "Izzet",
"Quasiduplicate": "Izzet",
"Direct Current": "Izzet",
"Beacon Bolt": "Izzet",
"Char": "Izzet",
"Cerebral Vortex": "Izzet",
"Electrickery": "Izzet",
"Pyromatics": "Izzet",
"Izzet Charm": "Izzet",
"Thunderheads": "Izzet",
"Electrolyze": "Izzet",
"Radical Idea": "Izzet",
"Chemister's Insight": "Izzet",
"Turn Burn": "Izzet",
"Izzet Signet": "Izzet",
"Firemind's Research": "Izzet",
"Izzet Boilerworks": "Izzet",
"Izzet Guildgate": "Izzet",
"Aurelia, the Warleader": "Boros",
"Boros Reckoner": "Boros",
"Legion Loyalist": "Boros",
"Firemane Avenger": "Boros",
"Spark Trooper": "Boros",
"Agrus Kos, Wojek Veteran": "Boros",
"Firemane Angel": "Boros",
"Razia, Boros Archangel": "Boros",
"Frenzied Goblin": "Boros",
"Boros Elite": "Boros",
"Bomber Corps": "Boros",
"Daring Skyjek": "Boros",
"Boros Swiftblade": "Boros",
"Sunhome Guildmage": "Boros",
"Skyknight Legionnaire": "Boros",
"Swiftblade Vindicator": "Boros",
"Legion Warboss": "Boros",
"Light of the Legion": "Boros",
"Sunhome Stalwart": "Boros",
"Wojek Bodyguard": "Boros",
"Blade Instructor": "Boros",
"Hammer Dropper": "Boros",
"Brightflame": "Boros",
"Gird for Battle": "Boros",
"Sworn Companions": "Boros",
"Master Warcraft": "Boros",
"Boros Charm": "Boros",
"Lightning Helix": "Boros",
"Martial Glory": "Boros",
"Boros Signet": "Boros",
"Boros Keyrune": "Boros",
"Boros Garrison": "Boros",
"Boros Guildgate": "Boros",
"Sunhome, Fortress of the Legion": "Boros",
"Izoni, Thousand-Eyed": "Golgari",
"Jarad, Golgari Lich Lord": "Golgari",
"Deathrite Shaman": "Golgari",
"Lotleth Troll": "Golgari",
"Deadbridge Goliath": "Golgari",
"Savra, Queen of the Golgari": "Golgari",
"Grave-Shell Scarab": "Golgari",
"Sisters of Stone Death": "Golgari",
"Elves of Deep Shadow": "Golgari",
"Korozda Guildmage": "Golgari",
"Stinkweed Imp": "Golgari",
"Shambling Shell": "Golgari",
"Slum Reaper": "Golgari",
"Charnel Troll": "Golgari",
"Hatchery Spider": "Golgari",
"Glowspore Shaman": "Golgari",
"Plaguecrafter": "Golgari",
"Rhizome Lurcher": "Golgari",
"Golgari Findbroker": "Golgari",
"Gaze of Granite": "Golgari",
"Drown in Filth": "Golgari",
"Treasured Find": "Golgari",
"Vigor Mortis": "Golgari",
"Abrupt Decay": "Golgari",
"Darkblast": "Golgari",
"Golgari Charm": "Golgari",
"Grisly Salvage": "Golgari",
"Putrefy": "Golgari",
"Necrotic Wound": "Golgari",
"Status Statue": "Golgari",
"Golgari Signet": "Golgari",
"Deadbridge Chant": "Golgari",
"Golgari Guildgate": "Golgari",
"Golgari Rot Farm": "Golgari",
}
var dashingSets = []string{
"Alliances",
"Anthologies",
"Antiquities",
"Arabian Nights",
"Archenemy",
"Battle Royale Box Set",
"Betrayers of Kamigawa",
"Champions of Kamigawa",
"Chronicles",
"Classic Sixth Edition",
"Coldsnap",
"Conflux",
"Darksteel",
"Dissension",
"Duel Decks Garruk vs. Liliana",