dnd5e
dnd5e copied to clipboard
Add support for enchanting items
Must Haves
- Add a new category to
feature
Items called 'Enchantment'. Alternatively add a newenchantment
Item type. - Enchantments should specify whether they can be bound to a limited number of Items or not and, if so, how many.
- These references to other Items must be UUIDs to allow enchanting other creatures' Items.
- Enchantments should specify whether they can be changed on a short rest, a long rest, or at will.
- Enchantments should specify which type of Item they can apply to:
weapon
,equipment
, etc. - Add a new 'Enchantment' concept to
ActiveEffect5e
.- Implemented via flags until v12 where we switch to
ActiveEffect#system
.
- Implemented via flags until v12 where we switch to
- Enchantment Items should house an Enchantment ActiveEffect as the blueprint for the ActiveEffects that will be bound to enchanted Items.
- Allow for dragging-and-dropping this Enchantment ActiveEffect onto another Item to enchant it.
- The Item sheet for Enchantments should:
- Show which Items the Enchantment is bound to.
- Allow unbinding from those Items.
Ideal
- Other Item sheets should:
- Indicate somewhere if the Item has an Enchantment bound to it.
- Enchantment ActiveEffects should contain a JSON blob that defines a diff that can be applied to the Enchanted Item. The diffs are applied during Item preparation.
- Using the Enchantment Item posts it to the chat where other users can drop their Items onto it to bind their Item to the Enchantment.
Nice to Haves
- When performing a rest, show a dialog allowing the player to change any Enchantments they have bound.
- Provide a user-friendly configuration interface for configuring common Enchantments instead of having to edit JSON.
- Enchantments should have a way to configure additional restrictions such as 'only two-handed weapon', or 'only a ranged weapon'.
If this is a new feature type, this seems like a good way to structure Artificer Infusions.
Example Usage
Weapon +1
Applied to: Any Weapon Changes:
-
name
: append" +1"
-
description
: append<p><em>Whether through demonic blessing, celestial bequeathment, crazed experiment, or skillful craft, this weapon has been enhanced to bring more bloodshed by the bearer.</em></p>\n<p>You have a bonus to attack and damage rolls made with this magic weapon.</p>
-
system.properties
: addmgc
-
system.magicalBonus
: override1
Vicious Weapon
Applied to: Any Weapon Changes:
-
name
: prepend"Vicious"
-
description
: append<p>When you roll a 20 on your attack roll with this magic weapon, your critical hit deals an extra 2d6 damage of the weapon’s type.</p>
-
system.properties
: addmgc
-
system.critical.damage
: override2d6
Helm of Awareness
Applied to: Equipment (helmet) Changes:
-
name
: override"Helm of Awareness"
-
description
: append<p>While wearing this helmet, a creature has advantage on initiative rolls. In addition, the wearer can’t be surprised, provided it isn’t &Reference[incapacitated].</p>
Should also apply a transferred active effect that adds advantage on initiative rolls.
With those examples, it's not entirely clear what this feature is.
Are they enchantments in the sense of temporary buffs, enhancements, whatever you may want to call it, or a utility for easily making, say, a magical variant of weapons and armors, such as a +2 weapon or shield?
Or is this both?
It's a general framework that will hopefully cover several concepts from the game system. So, both, and more, I suppose.
I guess also for something like the Elemental Weapon spell. Add a 1d4 of specific damage to a specific weapon for the spells duration
I know theres an option to append text onto an item through one of the PR's but would it be at all possible to allow the enchanted item's descriptions to have text appended to them as well?
I know theres an option to append text onto an item through one of the PR's but would it be at all possible to allow the enchanted item's descriptions to have text appended to them as well?
That should already be possible.
Since most of this is done I've split the final bullet points off into their own PRs:
- https://github.com/foundryvtt/dnd5e/issues/3589
- https://github.com/foundryvtt/dnd5e/issues/3590