Ajout/rework

This commit is contained in:
2023-04-28 09:39:18 +02:00
parent ec4223085c
commit b9978545d2
13 changed files with 66 additions and 558 deletions

View File

@ -14,7 +14,7 @@ export class EcrymeHotbar {
if (documentData.type == "Item") {
console.log("Drop done !!!", bar, documentData, slot)
let item = documentData.data
let command = `game.system.Ecryme.EcrymeHotbar.rollMacro("${item.name}", "${item.type}");`
let command = `game.system.ecryme.EcrymeHotbar.rollMacro("${item.name}", "${item.type}");`
let macro = game.macros.contents.find(m => (m.name === item.name) && (m.command === command))
if (!macro) {
macro = await Macro.create({