clean log socket message
log des messages sockets dans le hook (car plusieurs handlers)
This commit is contained in:
parent
effb50e778
commit
bd7f3a9b3d
@ -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 });
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user