forked from External/mage
Planechase is back
This commit is contained in:
parent
e8c972c27f
commit
d71f48c2ce
17 changed files with 342 additions and 20 deletions
|
|
@ -29,6 +29,7 @@
|
|||
package mage.sets;
|
||||
|
||||
import java.util.GregorianCalendar;
|
||||
import mage.Constants.SetType;
|
||||
import mage.cards.ExpansionSet;
|
||||
|
||||
/**
|
||||
|
|
@ -44,8 +45,10 @@ public class AlaraReborn extends ExpansionSet {
|
|||
}
|
||||
|
||||
private AlaraReborn() {
|
||||
super("Alara Reborn", "ARB", "seticon_mtgarb", "mage.sets.alarareborn", new GregorianCalendar(2009, 3, 25).getTime(), false);
|
||||
super("Alara Reborn", "ARB", "seticon_mtgarb", "mage.sets.alarareborn", new GregorianCalendar(2009, 3, 25).getTime(), SetType.EXPANSION);
|
||||
this.blockName = "Shards of Alara";
|
||||
this.parentSet = ShardsOfAlara.getInstance();
|
||||
this.hasBoosters = true;
|
||||
this.numBoosterLands = 1;
|
||||
this.numBoosterCommon = 10;
|
||||
this.numBoosterUncommon = 3;
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
package mage.sets;
|
||||
|
||||
import java.util.GregorianCalendar;
|
||||
import mage.Constants.SetType;
|
||||
import mage.cards.ExpansionSet;
|
||||
|
||||
/**
|
||||
|
|
@ -44,8 +45,10 @@ public class Conflux extends ExpansionSet {
|
|||
}
|
||||
|
||||
private Conflux() {
|
||||
super("Conflux", "CON", "seticon_conflux", "mage.sets.conflux", new GregorianCalendar(2009, 0, 31).getTime(), false);
|
||||
super("Conflux", "CON", "seticon_conflux", "mage.sets.conflux", new GregorianCalendar(2009, 0, 31).getTime(), SetType.EXPANSION);
|
||||
this.blockName = "Shards of Alara";
|
||||
this.parentSet = ShardsOfAlara.getInstance();
|
||||
this.hasBoosters = true;
|
||||
this.numBoosterLands = 1;
|
||||
this.numBoosterCommon = 10;
|
||||
this.numBoosterUncommon = 3;
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
package mage.sets;
|
||||
|
||||
import java.util.GregorianCalendar;
|
||||
import mage.Constants.SetType;
|
||||
import mage.cards.ExpansionSet;
|
||||
|
||||
/**
|
||||
|
|
@ -44,7 +45,8 @@ public class Magic2010 extends ExpansionSet {
|
|||
}
|
||||
|
||||
private Magic2010() {
|
||||
super("Magic 2010", "M10", "seticon_M10", "mage.sets.magic2010", new GregorianCalendar(2009, 6, 17).getTime(), true);
|
||||
super("Magic 2010", "M10", "seticon_M10", "mage.sets.magic2010", new GregorianCalendar(2009, 6, 17).getTime(), SetType.CORE);
|
||||
this.hasBoosters = true;
|
||||
this.numBoosterLands = 1;
|
||||
this.numBoosterCommon = 10;
|
||||
this.numBoosterUncommon = 3;
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
package mage.sets;
|
||||
|
||||
import java.util.GregorianCalendar;
|
||||
import mage.Constants.SetType;
|
||||
import mage.cards.ExpansionSet;
|
||||
|
||||
/**
|
||||
|
|
@ -44,7 +45,8 @@ public class Magic2011 extends ExpansionSet {
|
|||
}
|
||||
|
||||
private Magic2011() {
|
||||
super("Magic 2011", "M11", "seticon_M11", "mage.sets.magic2011", new GregorianCalendar(2010, 6, 16).getTime(), true);
|
||||
super("Magic 2011", "M11", "seticon_M11", "mage.sets.magic2011", new GregorianCalendar(2010, 6, 16).getTime(), SetType.CORE);
|
||||
this.hasBoosters = true;
|
||||
this.numBoosterLands = 1;
|
||||
this.numBoosterCommon = 10;
|
||||
this.numBoosterUncommon = 3;
|
||||
|
|
|
|||
51
Mage.Sets/src/mage/sets/Planechase.java
Normal file
51
Mage.Sets/src/mage/sets/Planechase.java
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
/*
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.sets;
|
||||
|
||||
import java.util.GregorianCalendar;
|
||||
import mage.Constants.SetType;
|
||||
import mage.cards.ExpansionSet;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class Planechase extends ExpansionSet {
|
||||
|
||||
private static final Planechase fINSTANCE = new Planechase();
|
||||
|
||||
public static Planechase getInstance() {
|
||||
return fINSTANCE;
|
||||
}
|
||||
|
||||
private Planechase() {
|
||||
super("Planechase", "HOP", "", "mage.sets.planechase", new GregorianCalendar(2009, 8, 4).getTime(), SetType.REPRINT);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -29,6 +29,7 @@
|
|||
package mage.sets;
|
||||
|
||||
import java.util.GregorianCalendar;
|
||||
import mage.Constants.SetType;
|
||||
import mage.cards.ExpansionSet;
|
||||
|
||||
/**
|
||||
|
|
@ -44,8 +45,10 @@ public class RiseOfTheEldrazi extends ExpansionSet {
|
|||
}
|
||||
|
||||
private RiseOfTheEldrazi() {
|
||||
super("Rise of the Eldrazi", "ROE", "seticon_ROE", "mage.sets.riseoftheeldrazi", new GregorianCalendar(2010, 3, 17).getTime(), false);
|
||||
super("Rise of the Eldrazi", "ROE", "seticon_ROE", "mage.sets.riseoftheeldrazi", new GregorianCalendar(2010, 3, 17).getTime(), SetType.EXPANSION);
|
||||
this.blockName = "Zendikar";
|
||||
this.parentSet = Zendikar.getInstance();
|
||||
this.hasBoosters = true;
|
||||
this.numBoosterLands = 1;
|
||||
this.numBoosterCommon = 10;
|
||||
this.numBoosterUncommon = 3;
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ public class Sets extends HashMap<String, ExpansionSet> {
|
|||
this.addSet(Conflux.getInstance());
|
||||
this.addSet(Magic2010.getInstance());
|
||||
this.addSet(Magic2011.getInstance());
|
||||
this.addSet(Planechase.getInstance());
|
||||
this.addSet(RiseOfTheEldrazi.getInstance());
|
||||
this.addSet(ShardsOfAlara.getInstance());
|
||||
this.addSet(Tenth.getInstance());
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
package mage.sets;
|
||||
|
||||
import java.util.GregorianCalendar;
|
||||
import mage.Constants.SetType;
|
||||
import mage.cards.ExpansionSet;
|
||||
|
||||
/**
|
||||
|
|
@ -44,8 +45,9 @@ public class ShardsOfAlara extends ExpansionSet {
|
|||
}
|
||||
|
||||
private ShardsOfAlara() {
|
||||
super("Shards of Alara", "ALA", "seticon_mtgala", "mage.sets.shardsofalara", new GregorianCalendar(2008, 8, 27).getTime(), false);
|
||||
super("Shards of Alara", "ALA", "seticon_mtgala", "mage.sets.shardsofalara", new GregorianCalendar(2008, 8, 27).getTime(), SetType.EXPANSION);
|
||||
this.blockName = "Shards of Alara";
|
||||
this.hasBoosters = true;
|
||||
this.numBoosterLands = 1;
|
||||
this.numBoosterCommon = 10;
|
||||
this.numBoosterUncommon = 3;
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
package mage.sets;
|
||||
|
||||
import java.util.GregorianCalendar;
|
||||
import mage.Constants.SetType;
|
||||
import mage.cards.ExpansionSet;
|
||||
|
||||
/**
|
||||
|
|
@ -44,7 +45,8 @@ public class Tenth extends ExpansionSet {
|
|||
}
|
||||
|
||||
private Tenth() {
|
||||
super("Tenth Edition", "10E", "exp_symbol_mtg10e", "mage.sets.tenth", new GregorianCalendar(2007, 6, 14).getTime(), true);
|
||||
super("Tenth Edition", "10E", "exp_symbol_mtg10e", "mage.sets.tenth", new GregorianCalendar(2007, 6, 14).getTime(), SetType.CORE);
|
||||
this.hasBoosters = true;
|
||||
this.numBoosterLands = 1;
|
||||
this.numBoosterCommon = 10;
|
||||
this.numBoosterUncommon = 3;
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
package mage.sets;
|
||||
|
||||
import java.util.GregorianCalendar;
|
||||
import mage.Constants.SetType;
|
||||
import mage.cards.ExpansionSet;
|
||||
|
||||
/**
|
||||
|
|
@ -44,8 +45,10 @@ public class Worldwake extends ExpansionSet {
|
|||
}
|
||||
|
||||
private Worldwake() {
|
||||
super("Worldwake", "WWK", "seticon_WWK", "mage.sets.worldwake", new GregorianCalendar(2010, 0, 30).getTime(), false);
|
||||
super("Worldwake", "WWK", "seticon_WWK", "mage.sets.worldwake", new GregorianCalendar(2010, 0, 30).getTime(), SetType.EXPANSION);
|
||||
this.blockName = "Zendikar";
|
||||
this.parentSet = Zendikar.getInstance();
|
||||
this.hasBoosters = true;
|
||||
this.numBoosterLands = 1;
|
||||
this.numBoosterCommon = 10;
|
||||
this.numBoosterUncommon = 3;
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
package mage.sets;
|
||||
|
||||
import java.util.GregorianCalendar;
|
||||
import mage.Constants.SetType;
|
||||
import mage.cards.ExpansionSet;
|
||||
|
||||
/**
|
||||
|
|
@ -44,8 +45,9 @@ public class Zendikar extends ExpansionSet {
|
|||
}
|
||||
|
||||
private Zendikar() {
|
||||
super("Zendikar", "ZEN", "seticon_ZEN", "mage.sets.zendikar", new GregorianCalendar(2009, 8, 26).getTime(), false);
|
||||
super("Zendikar", "ZEN", "seticon_ZEN", "mage.sets.zendikar", new GregorianCalendar(2009, 8, 26).getTime(), SetType.EXPANSION);
|
||||
this.blockName = "Zendikar";
|
||||
this.hasBoosters = true;
|
||||
this.numBoosterLands = 1;
|
||||
this.numBoosterCommon = 10;
|
||||
this.numBoosterUncommon = 3;
|
||||
|
|
|
|||
54
Mage.Sets/src/mage/sets/planechase/Gravedigger.java
Normal file
54
Mage.Sets/src/mage/sets/planechase/Gravedigger.java
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/*
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.sets.planechase;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class Gravedigger extends mage.sets.tenth.Gravedigger {
|
||||
|
||||
public Gravedigger(UUID ownerId) {
|
||||
super(ownerId);
|
||||
this.cardNumber = 29;
|
||||
this.expansionSetCode = "HOP";
|
||||
}
|
||||
|
||||
public Gravedigger(final Gravedigger card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Gravedigger copy() {
|
||||
return new Gravedigger(this);
|
||||
}
|
||||
|
||||
}
|
||||
54
Mage.Sets/src/mage/sets/planechase/OblivionRing.java
Normal file
54
Mage.Sets/src/mage/sets/planechase/OblivionRing.java
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/*
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.sets.planechase;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class OblivionRing extends mage.sets.shardsofalara.OblivionRing {
|
||||
|
||||
public OblivionRing(UUID ownerId) {
|
||||
super(ownerId);
|
||||
this.cardNumber = 4;
|
||||
this.expansionSetCode = "HOP";
|
||||
}
|
||||
|
||||
public OblivionRing(final OblivionRing card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OblivionRing copy() {
|
||||
return new OblivionRing(this);
|
||||
}
|
||||
|
||||
}
|
||||
54
Mage.Sets/src/mage/sets/planechase/SoulWarden.java
Normal file
54
Mage.Sets/src/mage/sets/planechase/SoulWarden.java
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/*
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.sets.planechase;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class SoulWarden extends mage.sets.magic2010.SoulWarden {
|
||||
|
||||
public SoulWarden(UUID ownerId) {
|
||||
super(ownerId);
|
||||
this.cardNumber = 7;
|
||||
this.expansionSetCode = "HOP";
|
||||
}
|
||||
|
||||
public SoulWarden(final SoulWarden card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoulWarden copy() {
|
||||
return new SoulWarden(this);
|
||||
}
|
||||
|
||||
}
|
||||
54
Mage.Sets/src/mage/sets/planechase/TerramorphicExpanse.java
Normal file
54
Mage.Sets/src/mage/sets/planechase/TerramorphicExpanse.java
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/*
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.sets.planechase;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class TerramorphicExpanse extends mage.sets.tenth.TerramorphicExpanse {
|
||||
|
||||
public TerramorphicExpanse(UUID ownerId) {
|
||||
super(ownerId);
|
||||
this.cardNumber = 139;
|
||||
this.expansionSetCode = "HOP";
|
||||
}
|
||||
|
||||
public TerramorphicExpanse(final TerramorphicExpanse card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TerramorphicExpanse copy() {
|
||||
return new TerramorphicExpanse(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -352,6 +352,23 @@ public final class Constants {
|
|||
}
|
||||
}
|
||||
|
||||
public enum SetType {
|
||||
CORE("Core"),
|
||||
EXPANSION("Expansion"),
|
||||
REPRINT("Reprint");
|
||||
|
||||
private String text;
|
||||
|
||||
SetType(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return text;
|
||||
}
|
||||
}
|
||||
|
||||
public static final List<String> PlaneswalkerTypes = new ArrayList<String>()
|
||||
{{add("Ajani"); add("Bolas"); add("Chandra"); add("Elspeth");add("Garruk"); add("Jace"); add("Liliana"); add("Nissa"); add("Sarkhan"); add("Sorin"); add("Tezzeret");}};
|
||||
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ import java.util.jar.JarFile;
|
|||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import mage.Constants.Rarity;
|
||||
import mage.Constants.SetType;
|
||||
import mage.util.Logging;
|
||||
|
||||
/**
|
||||
|
|
@ -66,22 +67,23 @@ public abstract class ExpansionSet implements Serializable {
|
|||
protected Date releaseDate;
|
||||
protected ExpansionSet parentSet;
|
||||
protected List<Class> cards;
|
||||
protected boolean core;
|
||||
protected SetType setType;
|
||||
protected Map<Rarity, List<Class>> rarities;
|
||||
|
||||
protected String blockName;
|
||||
protected boolean hasBoosters = false;
|
||||
protected int numBoosterLands;
|
||||
protected int numBoosterCommon;
|
||||
protected int numBoosterUncommon;
|
||||
protected int numBoosterRare;
|
||||
protected int ratioBoosterMythic;
|
||||
|
||||
public ExpansionSet(String name, String code, String symbolCode, String packageName, Date releaseDate, boolean core) {
|
||||
public ExpansionSet(String name, String code, String symbolCode, String packageName, Date releaseDate, SetType setType) {
|
||||
this.name = name;
|
||||
this.code = code;
|
||||
this.symbolCode = symbolCode;
|
||||
this.releaseDate = releaseDate;
|
||||
this.core = core;
|
||||
this.setType = setType;
|
||||
this.cards = getCardClassesForPackage(packageName);
|
||||
this.rarities = getCardsByRarity();
|
||||
}
|
||||
|
|
@ -106,8 +108,8 @@ public abstract class ExpansionSet implements Serializable {
|
|||
return releaseDate;
|
||||
}
|
||||
|
||||
public boolean isCore() {
|
||||
return core;
|
||||
public SetType getSetType() {
|
||||
return setType;
|
||||
}
|
||||
|
||||
public Card createCard(Class clazz) {
|
||||
|
|
@ -196,30 +198,43 @@ public abstract class ExpansionSet implements Serializable {
|
|||
public List<Card> createBooster() {
|
||||
List<Card> booster = new ArrayList<Card>();
|
||||
|
||||
if (!hasBoosters)
|
||||
return booster;
|
||||
|
||||
if (parentSet != null) {
|
||||
parentSet.getRandom(Rarity.LAND);
|
||||
for (int i = 0; i < numBoosterLands; i++) {
|
||||
addToBooster(booster, parentSet, Rarity.LAND);
|
||||
}
|
||||
}
|
||||
else {
|
||||
booster.add(getRandom(Rarity.LAND));
|
||||
for (int i = 0; i < numBoosterLands; i++) {
|
||||
addToBooster(booster, this, Rarity.LAND);
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < numBoosterCommon; i++) {
|
||||
booster.add(getRandom(Rarity.COMMON));
|
||||
addToBooster(booster, this, Rarity.COMMON);
|
||||
}
|
||||
for (int i = 0; i < numBoosterUncommon; i++) {
|
||||
booster.add(getRandom(Rarity.UNCOMMON));
|
||||
addToBooster(booster, this, Rarity.UNCOMMON);
|
||||
}
|
||||
for (int i = 0; i < numBoosterRare; i++) {
|
||||
if (rnd.nextInt(ratioBoosterMythic) == 1) {
|
||||
booster.add(getRandom(Rarity.MYTHIC));
|
||||
addToBooster(booster, this, Rarity.MYTHIC);
|
||||
}
|
||||
else {
|
||||
booster.add(getRandom(Rarity.RARE));
|
||||
addToBooster(booster, this, Rarity.RARE);
|
||||
}
|
||||
}
|
||||
|
||||
return booster;
|
||||
}
|
||||
|
||||
protected void addToBooster(List<Card> booster, ExpansionSet set, Rarity rarity) {
|
||||
Card card = set.getRandom(rarity);
|
||||
if (card != null)
|
||||
booster.add(card);
|
||||
}
|
||||
|
||||
protected Card getRandom(Rarity rarity) {
|
||||
if (!rarities.containsKey(rarity))
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue