Magic Plugin: Conspiracy Booster Generation Fix

Started by vacantVisionary, August 04, 2014, 11:43:21 PM

Previous topic - Next topic

vacantVisionary

As it stands, the MTG plugin's conspiracy packs do not function as intended. They correctly set aside a single slot for a "draft matters" card, but they do not prevent draft matters cards from being generated in other slots, and also do not correctly account for rarity within that draft matters slot - you're just as likely to get a Lore Seeker in that slot as a Cogwork Librarian.
A quick google search suggested that the Conspiracy draft matters sheet was probably 60 cards - one of every rare, two of every uncommon, and four of every common - which seemed reasonable, so I edited the pack definition to properly represent rarity and ensure that one, and only one, draft matters card would appear per pack.
Here's what the pack definition should look like:
<pack>
<packtitle>Conspiracy Booster</packtitle>
<packimage>conspiracybooster</packimage>
<packformat>Draft</packformat>
<packkind>Booster</packkind>
<packcommoncrit><field>Set</field><eval>IS</eval><data>conspiracy</data></packcommoncrit>
<chance>
<prob>12</prob>
<kind><qty>1</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>R</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
   </kind>
<kind><qty>3</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>U</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>10</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>C</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>1</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>R</data></crit>
     <crit><field>Text</field><eval>CONTAINS</eval><data>(Draft)</data></crit>
</kind>
</chance>
<chance>
<prob>2</prob>
<kind><qty>1</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>M</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>3</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>U</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>10</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>C</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>1</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>R</data></crit>
     <crit><field>Text</field><eval>CONTAINS</eval><data>(Draft)</data></crit>
</kind>
</chance>
<chance>
<prob>23</prob>
<kind><qty>1</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>R</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>3</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>U</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>10</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>C</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>1</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>U</data></crit>
     <crit><field>Text</field><eval>CONTAINS</eval><data>(Draft)</data></crit>
</kind>
</chance>
<chance>
<prob>3</prob>
<kind><qty>1</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>M</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>3</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>U</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>10</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>C</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>1</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>U</data></crit>
     <crit><field>Text</field><eval>CONTAINS</eval><data>(Draft)</data></crit>
</kind>
</chance>
<chance>
<prob>52</prob>
<kind><qty>1</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>R</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>3</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>U</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>10</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>C</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>1</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>C</data></crit>
     <crit><field>Text</field><eval>CONTAINS</eval><data>(Draft)</data></crit>
</kind>
</chance>
<chance>
<prob>8</prob>
<kind><qty>1</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>M</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>3</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>U</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>10</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>C</data></crit>
     <crit><field>Text</field><eval>DOESNTCONTAIN</eval><data>(Draft)</data></crit>
</kind>
<kind><qty>1</qty>
     <crit><field>Rarity</field><eval>IS</eval><data>C</data></crit>
     <crit><field>Text</field><eval>CONTAINS</eval><data>(Draft)</data></crit>
</kind>
</chance>
</pack>