Module desc

Module desc 

Source
Expand description

Validator for triggered description blocks that compose a description from multiple localization keys.

Such desc blocks are accepted in many places in the game script.

The main entry point is validate_desc.

Functionsยง

validate_desc
Validate a complex description, which may be a simple localization key or a block containing items like triggered_desc or first_valid.
validate_desc_map
Like validate_desc, but allows the caller to decide what to do with the strings found in the description. This is useful for example for description blocks that resolve an icon name rather than a description.
validate_desc_map_block ๐Ÿ”’
Internal function to recurse over the complex description block logic.