From bd7f3a9b3ded2146aa1ac7c95c14ab4cafd01eb5 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Thu, 27 May 2021 01:18:21 +0200 Subject: [PATCH] clean log socket message log des messages sockets dans le hook (car plusieurs handlers) --- module/actor.js | 1 - module/rdd-main.js | 2 ++ module/rdd-utility.js | 3 --- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/module/actor.js b/module/actor.js index 1cdbd3d7..be01a33a 100644 --- a/module/actor.js +++ b/module/actor.js @@ -57,7 +57,6 @@ export class RdDActor extends Actor { } static remoteActorCall(options) { - console.log("remoteActorCall ", options) options.userId = options.userId ?? Misc.connectedGMOrUser(); game.socket.emit("system.foundryvtt-reve-de-dragon", { msg: "msg_remote_actor_call", data: options }); } diff --git a/module/rdd-main.js b/module/rdd-main.js index d96303cc..c8e2ed2d 100644 --- a/module/rdd-main.js +++ b/module/rdd-main.js @@ -143,6 +143,8 @@ Hooks.once("init", async function () { /* -------------------------------------------- */ game.socket.on("system.foundryvtt-reve-de-dragon", sockmsg => { + console.log(">>>>> MSG RECV", sockmsg); + RdDUtility.onSocketMesssage(sockmsg); RdDCombat.onSocketMessage(sockmsg); ChatUtility.onSocketMessage(sockmsg); diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 460642e3..d981ecb9 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -602,9 +602,6 @@ export class RdDUtility { let actor = RdDUtility.getSelectedActor("Pour effectuer le paiement:"); if (actor) { actor.depenserDeniers(sumdenier, objData, quantite, fromActorId); - // TODO: diminuer la quantité ou supprimer le message - // message: => document.querySelector("#chat-log > li:nth-child(61) > div > div > span > a") - // => ../../../..[@data-message-id] let chatMessageId = RdDUtility.findChatMessageId(event.currentTarget); if (chatMessageId) { ChatUtility.removeChatMessageId(chatMessageId);