From eca3c09a91b743f6982b0045be3b0e7a47aa7ef4 Mon Sep 17 00:00:00 2001 From: xenohedron Date: Thu, 1 Jun 2023 14:31:25 +0300 Subject: [PATCH] Enable booster generation for DMR (#10365) * Simple booster generation for Dominaria Remastered * Add max card num in booster to 2XM --- Mage.Sets/src/mage/sets/DominariaRemastered.java | 7 ++++++- Mage.Sets/src/mage/sets/DoubleMasters.java | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/DominariaRemastered.java b/Mage.Sets/src/mage/sets/DominariaRemastered.java index 053db2485d..cf6c84c2f6 100644 --- a/Mage.Sets/src/mage/sets/DominariaRemastered.java +++ b/Mage.Sets/src/mage/sets/DominariaRemastered.java @@ -17,8 +17,13 @@ public class DominariaRemastered extends ExpansionSet { private DominariaRemastered() { super("Dominaria Remastered", "DMR", ExpansionSet.buildDate(2023, 1, 13), SetType.SUPPLEMENTAL); - this.hasBoosters = false; // needs to be configured + this.hasBoosters = true; this.hasBasicLands = true; + this.maxCardNumberInBooster = 261; + this.numBoosterCommon = 10; // Frame/art variants not yet implemented for booster generation + this.numBoosterUncommon = 3; + this.numBoosterRare = 1; + this.ratioBoosterMythic = 7; // 60 rare, 20 mythic cards.add(new SetCardInfo("Absorb", 186, Rarity.RARE, mage.cards.a.Absorb.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Absorb", 354, Rarity.RARE, mage.cards.a.Absorb.class, NON_FULL_USE_VARIOUS)); diff --git a/Mage.Sets/src/mage/sets/DoubleMasters.java b/Mage.Sets/src/mage/sets/DoubleMasters.java index a5d19747f8..a181726b90 100644 --- a/Mage.Sets/src/mage/sets/DoubleMasters.java +++ b/Mage.Sets/src/mage/sets/DoubleMasters.java @@ -32,6 +32,7 @@ public final class DoubleMasters extends ExpansionSet { this.numBoosterUncommon = 3; this.numBoosterRare = 2; this.ratioBoosterMythic = 8; + this.maxCardNumberInBooster = 332; cards.add(new SetCardInfo("Abrade", 114, Rarity.COMMON, mage.cards.a.Abrade.class)); cards.add(new SetCardInfo("Academy Ruins", 309, Rarity.RARE, mage.cards.a.AcademyRuins.class, NON_FULL_USE_VARIOUS));