mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
clean up some java warnings in deck generators
This commit is contained in:
@@ -263,10 +263,12 @@ public class Generate2ColorDeck {
|
||||
if (landsPercentage > 0) {
|
||||
p = (float) (landsPercentage * .01);
|
||||
numLands = (int) (p * size);
|
||||
} else { // otherwise, just fill in the rest of the deck with basic
|
||||
}
|
||||
/*else { // otherwise, just fill in the rest of the deck with basic
|
||||
// lands
|
||||
numLands = size - tDeck.size();
|
||||
}
|
||||
*/
|
||||
|
||||
tmpDeck += "numLands:" + numLands + "\n";
|
||||
|
||||
|
||||
@@ -289,10 +289,11 @@ public class Generate3ColorDeck {
|
||||
if (landsPercentage > 0) {
|
||||
p = (float) (landsPercentage * .01);
|
||||
numLands = (int) (p * size);
|
||||
} else {
|
||||
}
|
||||
/*else {
|
||||
// otherwise, just fill in the rest of the deck with basic lands
|
||||
numLands = size - tDeck.size();
|
||||
}
|
||||
}*/
|
||||
|
||||
tmpDeck += "numLands:" + numLands + "\n";
|
||||
|
||||
|
||||
@@ -315,10 +315,11 @@ public class Generate5ColorDeck {
|
||||
if (landsPercentage > 0) {
|
||||
p = (float) (landsPercentage * .01);
|
||||
numLands = (int) (p * size);
|
||||
} else { // otherwise, just fill in the rest of the deck with basic
|
||||
}
|
||||
/*else { // otherwise, just fill in the rest of the deck with basic
|
||||
// lands
|
||||
numLands = size - tDeck.size();
|
||||
}
|
||||
}*/
|
||||
|
||||
tmpDeck += "numLands:" + numLands + "\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user