mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
if chains changed to switches
This commit is contained in:
@@ -38,20 +38,24 @@ public class MagicColor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String toShortString(byte color) {
|
public static String toShortString(byte color) {
|
||||||
if ( color == GREEN ) return "G";
|
switch(color){
|
||||||
if ( color == RED ) return "R";
|
case GREEN: return "G";
|
||||||
if ( color == BLUE ) return "U";
|
case RED: return "R";
|
||||||
if ( color == BLACK ) return "B";
|
case BLUE: return "U";
|
||||||
if ( color == WHITE ) return "W";
|
case BLACK: return "B";
|
||||||
return "1";
|
case WHITE: return "W";
|
||||||
|
default: return "1";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String toLongString(byte color) {
|
public static String toLongString(byte color) {
|
||||||
if ( color == GREEN ) return Constant.Color.GREEN ;
|
switch(color){
|
||||||
if ( color == RED ) return Constant.Color.RED;
|
case GREEN: return Constant.Color.GREEN ;
|
||||||
if ( color == BLUE ) return Constant.Color.BLUE;
|
case RED: return Constant.Color.RED;
|
||||||
if ( color == BLACK ) return Constant.Color.BLACK;
|
case BLUE: return Constant.Color.BLUE;
|
||||||
if ( color == WHITE ) return Constant.Color.WHITE;
|
case BLACK: return Constant.Color.BLACK;
|
||||||
return Constant.Color.COLORLESS;
|
case WHITE: return Constant.Color.WHITE;
|
||||||
|
default: return Constant.Color.COLORLESS;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user