point Stress click to new macro

This commit is contained in:
Chris Schmalz
2023-09-17 00:42:46 -07:00
parent 97353fe585
commit f68d062cd0
+7 -3
View File
@@ -392,9 +392,13 @@ export class MothershipActorSheet extends ActorSheet {
});
// Rollable Item/Anything with a description that we want to click on.
html.find('.stress-roll').click(ev => {
const attribute = this.actor.system.other.stress;
attribute.label = "Stress";
this.actor.rollStress(attribute);
//roll hotbar macro for stress
//get macro pack
let macrosHotbar = game.packs.get('mosh.macros_hotbar');
//get macro id
let macroID = macrosHotbar.index.find(t => t.name === 'Panic Check')._id;
//execute macro
macrosHotbar.getDocument(macroID).then(m => m.execute());
});
// Drag events for macros.