fixed starting loyalty display in mock card

This commit is contained in:
Evan Kranzler 2022-03-09 20:32:48 -05:00
parent f94c79f6b4
commit 09636d7332
4 changed files with 32 additions and 37 deletions

View file

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