forked from External/mage
Implement new way to generate boosters using box mapping info (WIP) (#7529)
* [THB] added initial common/uncommon collation mechanism * [THB] added rare/mythic and lands to pack generation * fixed some card names * broke out collation into its own separate classes * built collation into ExpansionSet * added note about collation information * [KHM] added collation info * updated collation to use collector number rather than name * added shuffle to set constructor * added some notes on collation methods
This commit is contained in:
parent
10e557b873
commit
8a16eda062
9 changed files with 500 additions and 3 deletions
27
Mage/src/main/java/mage/collation/RarityConfiguration.java
Normal file
27
Mage/src/main/java/mage/collation/RarityConfiguration.java
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package mage.collation;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public class RarityConfiguration extends Rotater<BoosterStructure> {
|
||||
|
||||
public RarityConfiguration(BoosterStructure item) {
|
||||
super(item);
|
||||
}
|
||||
|
||||
public RarityConfiguration(BoosterStructure item1, BoosterStructure item2) {
|
||||
super(item1, item2);
|
||||
}
|
||||
|
||||
public RarityConfiguration(boolean keepOrder, BoosterStructure... items) {
|
||||
super(keepOrder, items);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shuffle() {
|
||||
for (BoosterStructure structure : this.items) {
|
||||
structure.shuffle();
|
||||
}
|
||||
super.shuffle();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue