mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
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:
@@ -663,9 +663,9 @@ public class CardThemedDeckBuilder extends DeckGeneratorBase {
|
||||
List<PaperCard> landsToAdd = new ArrayList<>();
|
||||
int minBasics;//Keep a minimum number of basics to ensure playable decks
|
||||
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{
|
||||
minBasics=Math.round((r.nextInt(8)+6)*new Float(targetSize)/new Float(60));
|
||||
minBasics=Math.round((r.nextInt(8)+6)*((float) targetSize) / 60);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user