Apply PR feedback

This commit is contained in:
Eldritch-Oliver 2025-10-08 17:53:36 -06:00
parent 4eecd15acf
commit e18b01e425
2 changed files with 1 additions and 8 deletions

View file

@ -40,7 +40,6 @@ export class DelveDiceHUD extends HandlebarsApplicationMixin(ApplicationV2) {
actions: { actions: {
tourDelta: this.#tourDelta, tourDelta: this.#tourDelta,
setFate: this.#setFate, setFate: this.#setFate,
hasteRoll: this.#hasteRoll,
}, },
}; };
@ -217,12 +216,6 @@ export class DelveDiceHUD extends HandlebarsApplicationMixin(ApplicationV2) {
this._difficulty = value; this._difficulty = value;
game.settings.set(`ripcrypt`, `dc`, 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 // #endregion
// #region Public API // #region Public API

View file

@ -9,7 +9,7 @@ const events = {
export function registerSockets() { export function registerSockets() {
Logger.info(`Setting up socket listener`); 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 ?? {}; const { event, payload } = data ?? {};
if (event == null || payload === undefined) { if (event == null || payload === undefined) {
ui.notifications.error(localizer(`RipCrypt.notifs.error.invalid-socket`)); ui.notifications.error(localizer(`RipCrypt.notifs.error.invalid-socket`));