cheats: improved card commands to support names like ED-E, Lonesome Eyebot (related to #12238)

This commit is contained in:
Oleg Agafonov 2024-05-09 11:43:37 +04:00
parent 551d5d8633
commit 36d54bc7a9
4 changed files with 42 additions and 25 deletions

View file

@ -78,7 +78,9 @@ public final class CardUtil {
"put", "return", "exile", "discard", "sacrifice", "remove", "tap", "reveal", "pay", "collect"
);
public static final int TESTS_SET_CODE_LOOKUP_LENGTH = 6; // search set code in commands like "set_code-card_name"
// search set code in commands like "set_code-card_name"
public static final int TESTS_SET_CODE_MIN_LOOKUP_LENGTH = 3;
public static final int TESTS_SET_CODE_MAX_LOOKUP_LENGTH = 6;
public static final String TESTS_SET_CODE_DELIMETER = "-"; // delimeter for cheats and tests command "set_code-card_name"
/**