mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Generate 10 lands per art in sealed deck and booster draft modes if there is more than one art available (to avoid spamming the sideboarding window with many hundreds of basic lands) or just generate 30 basic lands of each type if there is only one art for the basic land in set (should still be reasonably enough for any sane limited play).
This commit is contained in:
@@ -155,12 +155,12 @@ public class CEditorDraftingProcess extends ACEditorBase<PaperCard, DeckGroup> {
|
|||||||
|
|
||||||
final String landSet = IBoosterDraft.LAND_SET_CODE[0].getCode();
|
final String landSet = IBoosterDraft.LAND_SET_CODE[0].getCode();
|
||||||
|
|
||||||
final int landsCount = 50;
|
final int landsCount = 10;
|
||||||
for(String landName : MagicColor.Constant.BASIC_LANDS) {
|
for(String landName : MagicColor.Constant.BASIC_LANDS) {
|
||||||
final int numArt = Singletons.getMagicDb().getCommonCards().getArtCount(landName, landSet);
|
final int numArt = Singletons.getMagicDb().getCommonCards().getArtCount(landName, landSet);
|
||||||
|
|
||||||
for (int i = 0; i < numArt; i++) {
|
for (int i = 0; i < numArt; i++) {
|
||||||
deck.get(DeckSection.Sideboard).add(landName, landSet, i, landsCount);
|
deck.get(DeckSection.Sideboard).add(landName, landSet, i, numArt > 1 ? landsCount : 30);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -171,12 +171,12 @@ public enum CSubmenuSealed implements ICDoc {
|
|||||||
final Deck deck = new Deck(sDeckName);
|
final Deck deck = new Deck(sDeckName);
|
||||||
deck.getOrCreate(DeckSection.Sideboard).addAll(humanPool);
|
deck.getOrCreate(DeckSection.Sideboard).addAll(humanPool);
|
||||||
|
|
||||||
final int landsCount = 50;
|
final int landsCount = 10;
|
||||||
for (final String element : MagicColor.Constant.BASIC_LANDS) {
|
for (final String element : MagicColor.Constant.BASIC_LANDS) {
|
||||||
final int numArt = Singletons.getMagicDb().getCommonCards().getArtCount(element, sd.getLandSetCode());
|
final int numArt = Singletons.getMagicDb().getCommonCards().getArtCount(element, sd.getLandSetCode());
|
||||||
|
|
||||||
for (int i = 0; i < numArt; i++) {
|
for (int i = 0; i < numArt; i++) {
|
||||||
deck.get(DeckSection.Sideboard).add(element, sd.getLandSetCode(), i, landsCount);
|
deck.get(DeckSection.Sideboard).add(element, sd.getLandSetCode(), i, numArt > 1 ? landsCount : 30);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user