- Added "send to chat" button on items sheets.

- Minor fixe on editable state.
This commit is contained in:
Vlyan
2021-08-01 16:45:11 +02:00
parent f1af271a3b
commit f3bbcd7499
15 changed files with 87 additions and 22 deletions

View File

@@ -431,11 +431,7 @@ export class HelpersL5r5e {
return;
}
const type = item.type.replace("_", "-"); // ex: item_pattern
const tpl = await renderTemplate(
`${CONFIG.l5r5e.paths.templates}items/${type}/${type}-text.html`,
item
);
const tpl = await item.renderTextTemplate();
if (!tpl) {
return;
}
@@ -460,6 +456,7 @@ export class HelpersL5r5e {
* Get a Item from a Actor Sheet
* @param {Event} event HTML Event
* @param {ActorL5r5e} actor
* @return {ItemL5r5e}
*/
static async getEmbedItemByEvent(event, actor) {
const current = $(event.currentTarget);