mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
g
This commit is contained in:
parent
506faacd45
commit
9e771059f1
5 changed files with 95 additions and 21 deletions
|
|
@ -74,7 +74,18 @@ export const registerSocketHooks = () => {
|
|||
|
||||
export const registerUserQueries = () => {
|
||||
CONFIG.queries.armorStack = DamageReductionDialog.armorStackQuery;
|
||||
CONFIG.queries.reactionRoll = ReactionRollDialog.reactionRollQuery;
|
||||
// CONFIG.queries.reactionRoll = ReactionRollDialog.reactionRollQuery;
|
||||
CONFIG.queries.reactionRoll = ({ actionId, actorId, event, message }) => {
|
||||
// console.log('reactionRoll')
|
||||
return new Promise(async (resolve, reject) => {
|
||||
// resolve()
|
||||
const actor = await fromUuid(actorId),
|
||||
action = await fromUuid(actionId);
|
||||
if (!actor || !actor?.isOwner) reject();
|
||||
action.rollSave(actor, event, message).then(result => resolve(result));
|
||||
// new ReactionRollDialog(resolve, reject, actor, trait).render({ force: true });
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export const emitAsGM = async (eventName, callback, update, uuid = null) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue