forked from External/mage
GUI: fixed card's defense stat drawing in deck editor
This commit is contained in:
parent
3226b85589
commit
bc5c381fef
3 changed files with 26 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue