Refactoring of card-based deck generation to share the same generation code so that the Modern/Standard deck generation gets the benefit of improvements made in the Commander deck generation code - also fixed a few bugs with land counts, generic mana cards with a colour identity. Reduced the minimum number of connections in the matrix required to include cards in the card-based deckgen list to get more cards included in the model.

This commit is contained in:
austinio7116
2018-02-28 12:10:53 +00:00
committed by maustin
parent 25ab2ca2dc
commit d4b09f39ad

View File

@@ -663,9 +663,9 @@ public class CardThemedDeckBuilder extends DeckGeneratorBase {
List<PaperCard> landsToAdd = new ArrayList<>(); List<PaperCard> landsToAdd = new ArrayList<>();
int minBasics;//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()){ if(colors.isMonoColor()){
minBasics=Math.round((r.nextInt(15)+9)*new Float(targetSize)/new Float(60)); minBasics=Math.round((r.nextInt(15)+9)*((float) targetSize) / 60);
}else{ }else{
minBasics=Math.round((r.nextInt(8)+6)*new Float(targetSize)/new Float(60)); minBasics=Math.round((r.nextInt(8)+6)*((float) targetSize) / 60);
} }