mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
Added Portal and Portal Second Age set
This commit is contained in:
parent
90f4c2ea05
commit
9d8d1409b2
6 changed files with 747 additions and 613 deletions
|
|
@ -48,7 +48,7 @@ public class ConstructedFormats {
|
|||
"* Ice Age Block", "Coldsnap", "Alliances", "Ice Age", "Fourth Edition",
|
||||
"Homelands", "Fallen Empires", "The Dark", "Legends", "Antiquities", "Arabian Nights",
|
||||
"Revised Edition", "Unlimited Edition", "Limited Edition Beta", "Limited Edition Alpha",
|
||||
"Portal Three Kingdoms",
|
||||
"Portal", "Portal Second Age", "Portal Three Kingdoms",
|
||||
"Guru",
|
||||
"Unhinged",
|
||||
"Duel Decks: Elves vs. Goblins",
|
||||
|
|
@ -399,6 +399,12 @@ public class ConstructedFormats {
|
|||
if (format.equals("Unhinged")) {
|
||||
return Arrays.asList("UNH");
|
||||
}
|
||||
if (format.equals("Portal")) {
|
||||
return Arrays.asList("POR");
|
||||
}
|
||||
if (format.equals("Portal Second Age")) {
|
||||
return Arrays.asList("PO2");
|
||||
}
|
||||
if (format.equals("Portal Three Kingdoms")) {
|
||||
return Arrays.asList("PTK");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public class GathererSets implements Iterable<DownloadJob> {
|
|||
"TSP", "TSB", "PLC", "FUT",
|
||||
"LRW", "MOR",
|
||||
"SHM", "EVE",
|
||||
"PTK"};
|
||||
"POR", "PO2", "PTK"};
|
||||
|
||||
private static final String[] withMythics = {"M10", "M11", "M12", "M13", "M14",
|
||||
"DDF", "DDL",
|
||||
|
|
|
|||
|
|
@ -46,6 +46,8 @@ public class MagicCardsImageSource implements CardImageSource {
|
|||
put("10E", "tenth-edition");
|
||||
put("CSP", "coldsnap");
|
||||
put("CHK", "player-rewards-2004");
|
||||
put("POR", "portal");
|
||||
put("PO2", "portal-second-age");
|
||||
put("PTK", "portal-three-kingdoms");
|
||||
put("M14", "magic-2014");
|
||||
put("M13", "magic-2013");
|
||||
|
|
|
|||
62
Mage.Sets/src/mage/sets/Portal.java
Normal file
62
Mage.Sets/src/mage/sets/Portal.java
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
/*
|
||||
* 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.cards.ExpansionSet;
|
||||
import mage.constants.SetType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Plopman
|
||||
*/
|
||||
|
||||
public class Portal extends ExpansionSet {
|
||||
|
||||
private static final Portal fINSTANCE = new Portal();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static Portal getInstance() {
|
||||
return fINSTANCE;
|
||||
}
|
||||
|
||||
private Portal() {
|
||||
super("Portal", "POR", "mage.sets.portal", new GregorianCalendar(1997, 5, 1).getTime(), SetType.REPRINT);
|
||||
this.hasBasicLands = true;
|
||||
this.hasBoosters = true;
|
||||
this.numBoosterLands = 0;
|
||||
this.numBoosterCommon = 11;
|
||||
this.numBoosterUncommon = 3;
|
||||
this.numBoosterRare = 1;
|
||||
this.ratioBoosterMythic = 0;
|
||||
}
|
||||
}
|
||||
62
Mage.Sets/src/mage/sets/PortalSecondAge.java
Normal file
62
Mage.Sets/src/mage/sets/PortalSecondAge.java
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
/*
|
||||
* 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.cards.ExpansionSet;
|
||||
import mage.constants.SetType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Plopman
|
||||
*/
|
||||
|
||||
public class PortalSecondAge extends ExpansionSet {
|
||||
|
||||
private static final PortalSecondAge fINSTANCE = new PortalSecondAge();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public static PortalSecondAge getInstance() {
|
||||
return fINSTANCE;
|
||||
}
|
||||
|
||||
private PortalSecondAge() {
|
||||
super("Portal Second Age", "PO2", "mage.sets.portalsecondage", new GregorianCalendar(1998, 6, 24).getTime(), SetType.REPRINT);
|
||||
this.hasBasicLands = true;
|
||||
this.hasBoosters = true;
|
||||
this.numBoosterLands = 0;
|
||||
this.numBoosterCommon = 11;
|
||||
this.numBoosterUncommon = 3;
|
||||
this.numBoosterRare = 1;
|
||||
this.ratioBoosterMythic = 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -94,4 +94,6 @@ Modern Masters|modernmasters|
|
|||
Theros|theros|
|
||||
Born of the Gods|bornofthegods|
|
||||
Journey into Nyx|journeyintonyx|
|
||||
Portal|portal|
|
||||
Portal Second Age|portalsecondage|
|
||||
Portal Three Kingdoms|portalthreekingdoms
|
||||
Loading…
Add table
Add a link
Reference in a new issue