mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Adding braces.
This commit is contained in:
@@ -233,8 +233,9 @@ public class CardFaceSymbols {
|
|||||||
*/
|
*/
|
||||||
public static int getWidth(final CardManaCost manaCost) {
|
public static int getWidth(final CardManaCost manaCost) {
|
||||||
int width = manaCost.getShards().size();
|
int width = manaCost.getShards().size();
|
||||||
if (manaCost.getGenericCost() > 0 || (manaCost.getGenericCost() == 0 && width == 0))
|
if (manaCost.getGenericCost() > 0 || (manaCost.getGenericCost() == 0 && width == 0)) {
|
||||||
width++;
|
width++;
|
||||||
|
}
|
||||||
|
|
||||||
//System.out.println(String.format("%d for %s", width, manaCost.toString()));
|
//System.out.println(String.format("%d for %s", width, manaCost.toString()));
|
||||||
return width * 14;
|
return width * 14;
|
||||||
|
|||||||
Reference in New Issue
Block a user