Increased basic land count in random commander decks.

Fixed lobby update on variant change
This commit is contained in:
austinio7116
2018-02-21 18:56:22 +00:00
committed by maustin
parent ced56ec4cd
commit cfeb07c65f
2 changed files with 9 additions and 1 deletions

View File

@@ -216,6 +216,8 @@ public class VLobby implements ILobbyView {
fdc.restoreSavedState(); fdc.restoreSavedState();
final FDeckChooser fdcom = getCommanderDeckChooser(iPlayer); final FDeckChooser fdcom = getCommanderDeckChooser(iPlayer);
fdcom.restoreSavedState(); fdcom.restoreSavedState();
final FDeckChooser fdtl = getTinyLeaderDeckChooser(iPlayer);
fdtl.restoreSavedState();
} }
} }

View File

@@ -537,7 +537,13 @@ public class CardThemedCommanderDeckBuilder extends DeckGeneratorBase {
final Iterable<PaperCard> lands = Iterables.filter(aiPlayables, final Iterable<PaperCard> lands = Iterables.filter(aiPlayables,
Predicates.compose(CardRulesPredicates.Presets.IS_NONBASIC_LAND, PaperCard.FN_GET_RULES)); Predicates.compose(CardRulesPredicates.Presets.IS_NONBASIC_LAND, PaperCard.FN_GET_RULES));
List<PaperCard> landsToAdd = new ArrayList<>(); List<PaperCard> landsToAdd = new ArrayList<>();
int minBasics=Math.round(r.nextInt(6)+3)*targetSize/60;//Keep a minimum number of basics to ensure playable decks int minBasics;//Keep a minimum number of basics to ensure playable decks
if(colors.isMonoColor()){
minBasics=Math.round((r.nextInt(15)+6)*targetSize/60);
}else{
minBasics=Math.round((r.nextInt(8)+6)*targetSize/60);
}
for (final PaperCard card : lands) { for (final PaperCard card : lands) {
if (landsNeeded > minBasics) { if (landsNeeded > minBasics) {