Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 2.76 KB

File metadata and controls

43 lines (27 loc) · 2.76 KB

Drop Effects on Items

Foundry Core Compatible Version Latest Release Download Count Forge Installs Foundry Hub Endorsements Foundry Hub Comments

ko-fi patreon

Deprecation Warning

This module's functionality was integrated directly into the dnd5e core system codebase with version 2.1.x: Pull Request #1766. This module has been marked as incompatible with the dnd5e system starting in 2.1.x.


This module allows active effects to be dragged and dropped to and from Item Sheets.

With it enabled, creating duplicate effects between different items (e.g. "Poisoned" for various weapons or spells which inflict that condition) is as simple as dragging and dropping from one to the next.

It also allows the application of item effects onto actors from the item sheet directly.

drag-drop-item-sheet-effects.mp4

Compatibility

Tested with dnd5e, might work on other systems as well though.

Super Charged by:

Technical Details

The module uses the renderItemSheet hook to bind a DragDrop instance with callbacks that expect/conform to the data model used by ActorSheet's ActiveEffect drag and drop handlers (ActorSheet._onDropActiveEffect). This consists roughly of a dataTransfer object that looks like this:

{
  type: "ActiveEffect",
  data: activeEffectDocumentData
}