foundryvtt-shadowdark
foundryvtt-shadowdark copied to clipboard
Add damage / healing options to spells
With the new changes to rolls in v4.0.0, it's now easy to get more specific about healing vs damage from rolls.
- Add text
fields to spells for <spell>.damageand<spell>.healingto the spell item - method
shadowdark.dice.rollFromConfigto use new fields to populateobject as config.damageorconfig.healingon the mainobject, setting type = "damage or healing" - for context menus / button,
<chatmessage>.getRoll("damage") or <chatmessage>.getRoll("healing")now returns attached damage or healing roll, which can be used to apply results to a selected token.