Property:DEF string

From Yugipedia
Jump to: navigation, search

This text property lists the DEF for a Monster Card. It allows values according to the ATKDEF pattern.

Unlike Property:DEF, this property can store non-numeric values like ? and X000.

Since this is not a numeric property, values are ordered alphabetically (as opposed to naturally) when sorted, e.g. 25, 220, 300, 1000, 3000 would be sorted as 1000, 220, 25, 300, 3000. Hidden zeros can be added at the beginning of values to overcome this. e.g. The previous example would be 00000025, 00000220, 00000300, 00001000, 00003000.

{
    "type": "PROPERTY_CONSTRAINT_SCHEMA",
    "constraints": {
        "type_constraint": "_txt",
        "allowed_pattern": {
            "ATKDEF": "^(\d+|\?(\?\?\??)?|X000|∞)$"
        }
    }
}