deck: added booster and reprints from Fallout (PIP), disabled booster from Summer Magic (related to #13160)

This commit is contained in:
Oleg Agafonov 2025-01-27 10:45:34 +04:00
parent 6db188ea25
commit c61a206b56
9 changed files with 975 additions and 323 deletions

View file

@ -760,7 +760,7 @@ public abstract class ExpansionSet implements Serializable {
/**
* New default booster configuration (after 2024 - MKM)
*/
public void enablePlayOrArenaBooster(int maxCardNumberInBooster) {
public void enablePlayBooster(int maxCardNumberInBooster) {
// https://mtg.fandom.com/wiki/Play_Booster
this.hasBoosters = true;
this.maxCardNumberInBooster = maxCardNumberInBooster;
@ -789,4 +789,28 @@ public abstract class ExpansionSet implements Serializable {
this.numBoosterUncommon++;
this.numBoosterRare++;
}
public void enableArenaBooster(int maxCardNumberInBooster) {
// same as play booster on 2024
enablePlayBooster(maxCardNumberInBooster);
}
public void enableCollectorBooster(int maxCardNumberInBooster) {
// simplified rarity distribution
enableCollectorBooster(maxCardNumberInBooster, 1, 5, 4, 5);
}
public void enableCollectorBooster(int maxCardNumberInBooster, int land, int common, int uncommon, int rare) {
// https://mtg.fandom.com/wiki/Collector_Booster
this.hasBoosters = true;
this.maxCardNumberInBooster = maxCardNumberInBooster;
this.numBoosterLands = land;
this.hasBasicLands = land > 0;
this.numBoosterCommon = common;
this.numBoosterUncommon = uncommon;
this.numBoosterRare = rare;
this.ratioBoosterMythic = 8; // 12.5% chance of a mythic rare
}
}