Skip to content

Commit 667f276

Browse files
authored
Account for Basics when inserting foils
According to [this article](http://www.mtgsalvation.com/forums/magic-fundamentals/magic-general/768235-what-are-current-pack-odds-including-foils) foil basics occur at a rate of approx 2/15. We'll discard those 2/15 and end up with 1/6.92 or approx 1/7 odds of getting a foil other than a basic land. Closes arxanas#8
1 parent 71e656f commit 667f276

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/pool.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ function toPack(code) {
163163
}
164164
}
165165
}
166-
if (_.rand(6) < 1 && !(foilCard) && !(masterpiece)) {
166+
if (_.rand(7) < 1 && !(foilCard) && !(masterpiece)) {
167+
// http://www.mtgsalvation.com/forums/magic-fundamentals/magic-general/768235-what-are-current-pack-odds-including-foils
167168
size = size - 1
168169
foilCard = _.choose(1, pickFoil(set))
169170
pack.push(foilCard[0])

0 commit comments

Comments
 (0)