clean up some java warnings in deck generators

This commit is contained in:
slapshot5
2011-11-27 17:57:09 +00:00
parent 3c15fa919b
commit 34e7f10293
3 changed files with 9 additions and 5 deletions

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";