@@ -26,7 +26,7 @@ function toPack(code) {
26
26
if ( mythic && ! _ . rand ( 8 ) )
27
27
rare = mythic
28
28
//make small sets draftable.
29
- if ( size < 9 && code != 'SOI' )
29
+ if ( size < 9 && code != 'SOI' && code != 'EMN' )
30
30
size = 10
31
31
var pack = [ ] . concat (
32
32
_ . choose ( size , common ) ,
@@ -43,62 +43,78 @@ function toPack(code) {
43
43
pack . push ( _ . choose ( 1 , special . rare ) )
44
44
else
45
45
pack . push ( _ . choose ( 1 , common ) )
46
+ if ( code == 'EMN' )
47
+ if ( _ . rand ( 8 ) == 0 )
48
+ if ( _ . rand ( 5 ) < 1 )
49
+ pack . push ( _ . choose ( 1 , special . mythic ) )
50
+ else
51
+ pack . push ( _ . choose ( 1 , special . rare ) )
52
+ else
53
+ pack . push ( _ . choose ( 1 , common ) )
54
+
46
55
47
56
let specialrnd
48
57
switch ( code ) {
49
- case 'SOI' :
50
- if ( _ . rand ( 106 ) < 38 )
51
- special = special . uncommon
52
- else
53
- special = special . common
54
- break
55
- case 'DGM' :
56
- special = _ . rand ( 20 )
57
- ? special . gate
58
- : special . shock
59
- break
60
- case 'MMA' :
61
- special = selectRarity ( set )
62
- break
63
- case 'MM2' :
64
- special = selectRarity ( set )
65
- break
66
- case 'VMA' :
67
- //http://www.wizards.com/magic/magazine/article.aspx?x=mtg/daily/arcana/1491
68
- if ( _ . rand ( 53 ) )
58
+ case 'EMN' :
59
+ if ( _ . rand ( 2 ) < 1 )
60
+ special = special . uncommon
61
+ else
62
+ special = special . common
63
+ break
64
+
65
+ case 'SOI' :
66
+ if ( _ . rand ( 106 ) < 38 )
67
+ special = special . uncommon
68
+ else
69
+ special = special . common
70
+ break
71
+ case 'DGM' :
72
+ special = _ . rand ( 20 )
73
+ ? special . gate
74
+ : special . shock
75
+ break
76
+ case 'MMA' :
69
77
special = selectRarity ( set )
70
- break
71
- case 'FRF' :
72
- special = _ . rand ( 20 )
73
- ? special . common
74
- : special . fetch
75
- break
76
- case 'ISD' :
77
- //http://www.mtgsalvation.com/forums/magic-fundamentals/magic-general/327956-innistrad-block-transforming-card-pack-odds?comment=4
78
- //121 card sheet, 1 mythic, 12 rare (13), 42 uncommon (55), 66 common
79
- specialrnd = _ . rand ( 121 )
80
- if ( specialrnd == 0 )
81
- special = special . mythic
82
- else if ( specialrnd < 13 )
83
- special = special . rare
84
- else if ( specialrnd < 55 )
85
- special = special . uncommon
86
- else
87
- special = special . common
88
- break
89
- case 'DKA' :
90
- //http://www.mtgsalvation.com/forums/magic-fundamentals/magic-general/327956-innistrad-block-transforming-card-pack-odds?comment=4
91
- //80 card sheet, 2 mythic, 6 rare (8), 24 uncommon (32), 48 common
92
- specialrnd = _ . rand ( 80 )
93
- if ( specialrnd <= 1 )
94
- special = special . mythic
95
- else if ( specialrnd < 8 )
96
- special = special . rare
97
- else if ( specialrnd < 32 )
98
- special = special . uncommon
99
- else
100
- special = special . common
101
- break
78
+ break
79
+ case 'MM2' :
80
+ special = selectRarity ( set )
81
+ break
82
+ case 'VMA' :
83
+ //http://www.wizards.com/magic/magazine/article.aspx?x=mtg/daily/arcana/1491
84
+ if ( _ . rand ( 53 ) )
85
+ special = selectRarity ( set )
86
+ break
87
+ case 'FRF' :
88
+ special = _ . rand ( 20 )
89
+ ? special . common
90
+ : special . fetch
91
+ break
92
+ case 'ISD' :
93
+ //http://www.mtgsalvation.com/forums/magic-fundamentals/magic-general/327956-innistrad-block-transforming-card-pack-odds?comment=4
94
+ //121 card sheet, 1 mythic, 12 rare (13), 42 uncommon (55), 66 common
95
+ specialrnd = _ . rand ( 121 )
96
+ if ( specialrnd == 0 )
97
+ special = special . mythic
98
+ else if ( specialrnd < 13 )
99
+ special = special . rare
100
+ else if ( specialrnd < 55 )
101
+ special = special . uncommon
102
+ else
103
+ special = special . common
104
+ break
105
+ case 'DKA' :
106
+ //http://www.mtgsalvation.com/forums/magic-fundamentals/magic-general/327956-innistrad-block-transforming-card-pack-odds?comment=4
107
+ //80 card sheet, 2 mythic, 6 rare (8), 24 uncommon (32), 48 common
108
+ specialrnd = _ . rand ( 80 )
109
+ if ( specialrnd <= 1 )
110
+ special = special . mythic
111
+ else if ( specialrnd < 8 )
112
+ special = special . rare
113
+ else if ( specialrnd < 32 )
114
+ special = special . uncommon
115
+ else
116
+ special = special . common
117
+ break
102
118
}
103
119
104
120
if ( special )
0 commit comments