MCPcopy Create free account
hub / github.com/Card-Forge/forge / formatValidDesc

Method formatValidDesc

forge-core/src/main/java/forge/util/Lang.java:232–241  ·  view source on GitHub ↗
(String valid)

Source from the content-addressed store, hash-verified

230 }
231
232 public String formatValidDesc(String valid) {
233 List<String> commonStuff = List.of(
234 //list of common one word non-core type ValidTgts that should be lowercase in the target prompt
235 "Player", "Opponent", "Card", "Spell", "Permanent"
236 );
237 if (commonStuff.contains(valid) || CardType.isACardType(valid)) {
238 valid = valid.toLowerCase();
239 }
240 return valid;
241 }
242}

Callers 2

buildValidDescMethod · 0.95
parseMethod · 0.80

Calls 3

isACardTypeMethod · 0.95
ofMethod · 0.80
containsMethod · 0.65

Tested by

no test coverage detected