GUI: fixed card's defense stat drawing in deck editor

This commit is contained in:
Oleg Agafonov 2023-04-14 18:28:25 +04:00
parent 3226b85589
commit bc5c381fef
3 changed files with 26 additions and 10 deletions

View file

@ -1737,6 +1737,17 @@ public final class CardUtil {
}
}
public static int convertLoyaltyOrDefense(String value) {
switch (value) {
case "X":
return -2;
case "":
return -1;
default:
return Integer.parseInt(value);
}
}
public static void checkSetParamForSerializationCompatibility(Set<String> data) {
// HashMap uses inner class for Keys without serialization support,
// so you can't use it for client-server data