add resource buttons actions methods

This commit is contained in:
moliloo 2025-09-17 23:51:34 -03:00
parent 1a0c6f46bc
commit 5a874ae268
4 changed files with 79 additions and 13 deletions

View file

@ -1,4 +1,5 @@
import DamageReductionDialog from '../applications/dialogs/damageReductionDialog.mjs';
import Party from '../applications/sheets/actors/party.mjs';
export function handleSocketEvent({ action = null, data = {} } = {}) {
switch (action) {
@ -11,13 +12,17 @@ export function handleSocketEvent({ action = null, data = {} } = {}) {
case socketEvent.Refresh:
Hooks.call(socketEvent.Refresh, data);
break;
case socketEvent.DowntimeTrigger:
Party.downtimeMoveQuery(data);
break;
}
}
export const socketEvent = {
GMUpdate: 'DhGMUpdate',
Refresh: 'DhRefresh',
DhpFearUpdate: 'DhFearUpdate'
DhpFearUpdate: 'DhFearUpdate',
DowntimeTrigger: 'DowntimeTrigger'
};
export const GMUpdateEvent = {