Apply PR feedback
This commit is contained in:
parent
4eecd15acf
commit
e18b01e425
2 changed files with 1 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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`));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue