dnd5e icon indicating copy to clipboard operation
dnd5e copied to clipboard

[#3590] Add additional enchantment restrictions

Open arbron opened this issue 8 months ago • 0 comments

Adds an enchantment restriction based on item category that takes multiple options, allowing for restricting to categories such as "Simple Melee" weapons or "Heavy Armor". The category lists per-type are fetched from the data model using a new itemCategories static getter to make it easy for module-provided types to provide their own category lists.

Also adds a restriction based on item properties. Currently the restriction requires just one of the provided properties to be considered valid, but it might also make sense to require all of them or provide a toggle between those two modes.

Adds a new hook to the canEnchant method so modules can provide their own enchantment restrictions.

Closes #3590

arbron avatar Jun 04 '24 23:06 arbron