Skip to content

✨ Add support for custom properties (homebrew) #349

Description

@Stackclash

I have a homebrew that has a couple of custom properties for items. I would like to include these in the template.

"itemProperty": [
    {
		"name": "Herb",
		"source": "HHbH",
		"page": 5,
		"abbreviation": "Hrb",
		"template": "{@b Location:} {{item.customProperties.lcn}} {@b Requires Preparation:} {{item.customProperties.prep}}",
		"entries": []
	}
]

Hamund's Herbalism Handbook

Here is an example of an item with these properties:

{
	"name": "Sentry Bush",
	"source": "HHbH",
	"page": 30,
	"type": "Herb",
	"rarity": "common",
	"value": 100,
	"property": [
		"Hrb"
	],
	"entries": [
		{
			"type": "entries",
			"name": "Description:",
			"entries": [
				"A scraggly brush found only on high altitudes, its bitter twigs produce an incredibly potent stimulant that when brewed into a tea, can completely replace one's need to sleep. Due to its inaccessible location, but widely sought-after use, mountain clans are often found carrying them in their caravan to trade to people that need to stay awake for long periods of time."
			]
		},
		{
			"type": "entries",
			"name": "Effect:",
			"entries": [
				"After preparing this herb, you gain all the benefits of 8 hours of sleep (or the equivalent form of dormancy for your race). You still need to rest for at least 8 hours in order to benefit from a long rest."
			]
		}
	],
	"customProperties": {
		"lcn": "Mountain",
		"prep": "Yes"
	},
	"foundryType": "consumable"
}

Hamund's Herbalism Handbook

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions