mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
updated WAR details
This commit is contained in:
parent
47cd85b436
commit
54a1010c36
2 changed files with 6 additions and 2 deletions
|
@ -15,12 +15,12 @@ public final class WarOfTheSpark extends ExpansionSet {
|
||||||
private WarOfTheSpark() {
|
private WarOfTheSpark() {
|
||||||
super("War of the Spark", "WAR", ExpansionSet.buildDate(2019, 5, 3), SetType.EXPANSION);
|
super("War of the Spark", "WAR", ExpansionSet.buildDate(2019, 5, 3), SetType.EXPANSION);
|
||||||
this.blockName = "Guilds of Ravnica";
|
this.blockName = "Guilds of Ravnica";
|
||||||
this.numBoosterSpecial = 1;
|
this.numBoosterLands = 1;
|
||||||
this.numBoosterLands = 0;
|
|
||||||
this.numBoosterCommon = 10;
|
this.numBoosterCommon = 10;
|
||||||
this.numBoosterUncommon = 3;
|
this.numBoosterUncommon = 3;
|
||||||
this.numBoosterRare = 1;
|
this.numBoosterRare = 1;
|
||||||
this.ratioBoosterMythic = 8;
|
this.ratioBoosterMythic = 8;
|
||||||
|
this.needsPlaneswalker = true;
|
||||||
this.maxCardNumberInBooster = 264;
|
this.maxCardNumberInBooster = 264;
|
||||||
|
|
||||||
cards.add(new SetCardInfo("Ajani's Pridemate", 4, Rarity.UNCOMMON, mage.cards.a.AjanisPridemate.class));
|
cards.add(new SetCardInfo("Ajani's Pridemate", 4, Rarity.UNCOMMON, mage.cards.a.AjanisPridemate.class));
|
||||||
|
|
|
@ -106,6 +106,7 @@ public abstract class ExpansionSet implements Serializable {
|
||||||
protected boolean hasPartnerMechanic = false;
|
protected boolean hasPartnerMechanic = false;
|
||||||
|
|
||||||
protected boolean needsLegendCreature = false;
|
protected boolean needsLegendCreature = false;
|
||||||
|
protected boolean needsPlaneswalker = false;
|
||||||
protected boolean validateBoosterColors = true;
|
protected boolean validateBoosterColors = true;
|
||||||
protected double rejectMissingColorProbability = 0.8;
|
protected double rejectMissingColorProbability = 0.8;
|
||||||
protected double rejectSameColorUncommonsProbability = 0.8;
|
protected double rejectSameColorUncommonsProbability = 0.8;
|
||||||
|
@ -256,6 +257,9 @@ public abstract class ExpansionSet implements Serializable {
|
||||||
if (needsLegendCreature) {
|
if (needsLegendCreature) {
|
||||||
return booster.stream().anyMatch(card -> card.isLegendary() && card.isCreature());
|
return booster.stream().anyMatch(card -> card.isLegendary() && card.isCreature());
|
||||||
}
|
}
|
||||||
|
if (needsPlaneswalker) {
|
||||||
|
return booster.stream().anyMatch(card -> card.isPlaneswalker());
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: add partner check
|
// TODO: add partner check
|
||||||
// TODO: add booster size check?
|
// TODO: add booster size check?
|
||||||
|
|
Loading…
Reference in a new issue