mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
less spam more brains
This commit is contained in:
@@ -27,7 +27,7 @@ final class CardFace implements ICardCharacteristics {
|
|||||||
private ManaCost manaCost = ManaCost.NO_COST;
|
private ManaCost manaCost = ManaCost.NO_COST;
|
||||||
private ColorSet color = null;
|
private ColorSet color = null;
|
||||||
|
|
||||||
private String oracleText = "";
|
private String oracleText = null;
|
||||||
private int iPower = -1;
|
private int iPower = -1;
|
||||||
private int iToughness = -1;
|
private int iToughness = -1;
|
||||||
private String power = null;
|
private String power = null;
|
||||||
@@ -76,7 +76,7 @@ final class CardFace implements ICardCharacteristics {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void calculateColor() { // Most scripts do not specify color explicitly
|
public void calculateColor() { // Most scripts do not specify color explicitly
|
||||||
if ( StringUtils.isBlank( oracleText ) ) System.err.println(name + " has no Oracle text");
|
if ( null == oracleText ) { System.err.println(name + " has no Oracle text"); oracleText = ""; }
|
||||||
if ( manaCost == null && color == null ) System.err.println(name + " has neither ManaCost nor Color");
|
if ( manaCost == null && color == null ) System.err.println(name + " has neither ManaCost nor Color");
|
||||||
if ( color == null ) color = ColorSet.fromManaCost(manaCost);
|
if ( color == null ) color = ColorSet.fromManaCost(manaCost);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user