isStats

fun isStats(string: String): Boolean

Tests a given string whether it is a valid representation of Stats, close to what toString would produce.

  • Values must carry a sign - "1 Gold" tests false, "+1 Gold" is OK.

  • Separator is ", " - comma space - the space is not optional.

  • Stat names must be untranslated and match case.

  • Order is not important.

See also

Sources

jvm source
Link copied to clipboard