forked from External/mage
fixed starting loyalty display in mock card
This commit is contained in:
parent
f94c79f6b4
commit
09636d7332
4 changed files with 32 additions and 37 deletions
|
|
@ -1587,4 +1587,15 @@ public final class CardUtil {
|
|||
public static <T> int setOrIncrementValue(T u, Integer i) {
|
||||
return i == null ? 1 : Integer.sum(i, 1);
|
||||
}
|
||||
|
||||
public static String convertStartingLoyalty(int startingLoyalty) {
|
||||
switch (startingLoyalty) {
|
||||
case -2:
|
||||
return "X";
|
||||
case -1:
|
||||
return "";
|
||||
default:
|
||||
return "" + startingLoyalty;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue