updated item macro creation to be more helpful

This commit is contained in:
TheLastScrub
2021-06-12 17:53:50 -07:00
parent e5231c9dc2
commit 4703df4996
+4 -1
View File
@@ -234,7 +234,10 @@ async function createDeltaGreenMacro(data, slot) {
const item = data.data;
// Create the macro command
const command = `game.deltagreen.rollItemMacro("${item.name}");`;
let command = '// Uncomment line below to also roll skill check if desired.'
command += '\n' + `//game.deltagreen.rollItemSkillCheckMacro("${item.name}");`;
command += '\n' + `game.deltagreen.rollItemMacro("${item.name}");`;
let macro = game.macros.entities.find(m => (m.name === item.name) && (m.command === command));
if (!macro) {
macro = await Macro.create({