Foil rarity fix (partial)

I succeeded in improving the distribution of various rarity foils in packs.
What this patch does :
-Implement individual chances for rarities instead of each rarity being equal
-Rare has 1/6 chance, Uncommon 2/6, Common 3/6. Rare can also be Mythic if available in the slot - chance is same as the nonfoil. Common can be a Basic Land at a 1/11 chance if there is such a slot in the pack.
-Supports packs with normal and "replace in common slot"
foils.
-Supports Timeshifted Time Spiral slots (untested so far, can't guarantee it works)
What it does not do :
-No support for sets with nonstandard slot names such as "Common!dsp" or "Basic Land xyz", whatever those are. I have long since stopped playing before these sets were released so I have no idea what they are for. These sets will fail to generate foils.
-I have no idea how it reacts to "foil sheets". I left code regarding that untouched so it should be unchanged, whether that means it stays buggy or was never buggy in the first place, idk. Again, these are sets I know nothing about.
-Multiple foils per pack is not implemented. In old type packs, you could have one foil of each rarity in the same pack as far as I remember - but it was very rare to find such a pack (like one in 3 full boxes). Unless I remember wrong.
-Ratios are not official. I couldn't find official information so I had to rely on my own experiences and whatever rumors I found.
-Each pack has the same 21.43% chance of a foil (1 in 70 cards), and I left that unchanged. This is an official number, but in reality, it only applied to some packs. Older packs had 1:100, and newer packs had 1:58 AFAIK. These details are ignored.
- Haven't looked at tournament packs yet - this is (I think) for boosters only.
...and with this, I can FINALLY start playing again... and hope no bugs surface from all these patches.
What this patch does :
-Implement individual chances for rarities instead of each rarity being equal
-Rare has 1/6 chance, Uncommon 2/6, Common 3/6. Rare can also be Mythic if available in the slot - chance is same as the nonfoil. Common can be a Basic Land at a 1/11 chance if there is such a slot in the pack.
-Supports packs with normal and "replace in common slot"
foils.
-Supports Timeshifted Time Spiral slots (untested so far, can't guarantee it works)
What it does not do :
-No support for sets with nonstandard slot names such as "Common!dsp" or "Basic Land xyz", whatever those are. I have long since stopped playing before these sets were released so I have no idea what they are for. These sets will fail to generate foils.
-I have no idea how it reacts to "foil sheets". I left code regarding that untouched so it should be unchanged, whether that means it stays buggy or was never buggy in the first place, idk. Again, these are sets I know nothing about.
-Multiple foils per pack is not implemented. In old type packs, you could have one foil of each rarity in the same pack as far as I remember - but it was very rare to find such a pack (like one in 3 full boxes). Unless I remember wrong.
-Ratios are not official. I couldn't find official information so I had to rely on my own experiences and whatever rumors I found.
-Each pack has the same 21.43% chance of a foil (1 in 70 cards), and I left that unchanged. This is an official number, but in reality, it only applied to some packs. Older packs had 1:100, and newer packs had 1:58 AFAIK. These details are ignored.
- Haven't looked at tournament packs yet - this is (I think) for boosters only.
...and with this, I can FINALLY start playing again... and hope no bugs surface from all these patches.