diff --git a/src/module/ds4.ts b/src/module/ds4.ts index ca0eef0..8927be2 100644 --- a/src/module/ds4.ts +++ b/src/module/ds4.ts @@ -65,6 +65,7 @@ async function registerHandlebarsPartials() { "systems/ds4/templates/actor/partials/creature-inventory.hbs", "systems/ds4/templates/actor/partials/talent-rank-equation.hbs", "systems/ds4/templates/actor/partials/item-list-header.hbs", + "systems/ds4/templates/actor/partials/item-list-entry.hbs", ]; return loadTemplates(templatePaths); } diff --git a/src/templates/actor/partials/item-list-entry.hbs b/src/templates/actor/partials/item-list-entry.hbs new file mode 100644 index 0000000..afa82e3 --- /dev/null +++ b/src/templates/actor/partials/item-list-entry.hbs @@ -0,0 +1,46 @@ +{{!-- +!-- Render an item list entry row. +!-- If the partial is called with a partial block, the partial block +!-- content is inserted before the description. + +!-- @param itemData: The data of the item. +!-- @param isEquipable: A flag to enable the equipped column. +!-- @param hasQuantity: A flag to enable the quantity column. +!-- @param hideDescription: A flag to disable the description column. +!-- @param @partial-block: Custom column headers can be passed using the partial block. +--}} +