clean log socket message

log des messages sockets dans le hook (car plusieurs handlers)
This commit is contained in:
Vincent Vandemeulebrouck 2021-05-27 01:18:21 +02:00
parent effb50e778
commit bd7f3a9b3d
3 changed files with 2 additions and 4 deletions

View File

@ -57,7 +57,6 @@ export class RdDActor extends Actor {
} }
static remoteActorCall(options) { static remoteActorCall(options) {
console.log("remoteActorCall ", options)
options.userId = options.userId ?? Misc.connectedGMOrUser(); options.userId = options.userId ?? Misc.connectedGMOrUser();
game.socket.emit("system.foundryvtt-reve-de-dragon", { msg: "msg_remote_actor_call", data: options }); game.socket.emit("system.foundryvtt-reve-de-dragon", { msg: "msg_remote_actor_call", data: options });
} }

View File

@ -143,6 +143,8 @@ Hooks.once("init", async function () {
/* -------------------------------------------- */ /* -------------------------------------------- */
game.socket.on("system.foundryvtt-reve-de-dragon", sockmsg => { game.socket.on("system.foundryvtt-reve-de-dragon", sockmsg => {
console.log(">>>>> MSG RECV", sockmsg);
RdDUtility.onSocketMesssage(sockmsg); RdDUtility.onSocketMesssage(sockmsg);
RdDCombat.onSocketMessage(sockmsg); RdDCombat.onSocketMessage(sockmsg);
ChatUtility.onSocketMessage(sockmsg); ChatUtility.onSocketMessage(sockmsg);

View File

@ -602,9 +602,6 @@ export class RdDUtility {
let actor = RdDUtility.getSelectedActor("Pour effectuer le paiement:"); let actor = RdDUtility.getSelectedActor("Pour effectuer le paiement:");
if (actor) { if (actor) {
actor.depenserDeniers(sumdenier, objData, quantite, fromActorId); 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); let chatMessageId = RdDUtility.findChatMessageId(event.currentTarget);
if (chatMessageId) { if (chatMessageId) {
ChatUtility.removeChatMessageId(chatMessageId); ChatUtility.removeChatMessageId(chatMessageId);