From 934efd24bda861bb28e35c79a78ca5e076036c4d Mon Sep 17 00:00:00 2001 From: evilchili Date: Sun, 31 Dec 2023 13:05:37 -0800 Subject: [PATCH] updating readme.md --- dnd_item/sources/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dnd_item/sources/README.md b/dnd_item/sources/README.md index ba34c56..2107ee4 100644 --- a/dnd_item/sources/README.md +++ b/dnd_item/sources/README.md @@ -191,6 +191,16 @@ Here, the `elemental damage` member overrides the base `damage_type` property wi Overrides are processed before other template substitutions, ensuring that overrides are honored everywhere, so if another property on an item with the `elemental damage` property makes a reference to the base `{damage_type}` value, it will resolve to `{enchantment.damage_type}`. +### Comma-Separated Values + +When templates are processed, references to members defined as comma-separated lists are converted to lists, and a random value is selected from it. For example, the nouns on the fire enchantment are: + +```yaml + - 'flames, fire' +``` + +The template string `{enchantment.nouns}` could resolve to either "flames" or "fire". + ### Reserved Keywords The following keywords are reserved: