diff --git a/module/Apps/DelveDiceHUD.mjs b/module/Apps/DelveDiceHUD.mjs index 2bf4b32..6dd69fe 100644 --- a/module/Apps/DelveDiceHUD.mjs +++ b/module/Apps/DelveDiceHUD.mjs @@ -40,7 +40,6 @@ export class DelveDiceHUD extends HandlebarsApplicationMixin(ApplicationV2) { actions: { tourDelta: this.#tourDelta, setFate: this.#setFate, - hasteRoll: this.#hasteRoll, }, }; @@ -217,12 +216,6 @@ export class DelveDiceHUD extends HandlebarsApplicationMixin(ApplicationV2) { this._difficulty = value; game.settings.set(`ripcrypt`, `dc`, value); }; - - /** @this {DelveDiceHUD} */ - static async #hasteRoll() { - // TODO: if not GM, send socket request to GM - await this.rollForHaste(); - }; // #endregion // #region Public API diff --git a/module/sockets/_index.mjs b/module/sockets/_index.mjs index d0b632d..e866530 100644 --- a/module/sockets/_index.mjs +++ b/module/sockets/_index.mjs @@ -9,7 +9,7 @@ const events = { export function registerSockets() { Logger.info(`Setting up socket listener`); - game.socket.on(`system.${game.system.id}`, (data, userID) => { + game.socket.on(`system.ripcrypt`, (data, userID) => { const { event, payload } = data ?? {}; if (event == null || payload === undefined) { ui.notifications.error(localizer(`RipCrypt.notifs.error.invalid-socket`));