From a813857d5d67286768b7ea72b07c184c125bc6e5 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sat, 30 Oct 2021 00:40:35 +0200 Subject: [PATCH] Message d'achat par le joueur faisant l'achat --- module/actor.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/module/actor.js b/module/actor.js index c764d574..c8dc3a9f 100644 --- a/module/actor.js +++ b/module/actor.js @@ -3617,10 +3617,7 @@ export class RdDActor extends Actor { return; } if (!Misc.isElectedUser()) { - RdDActor.remoteActorCall({ - actorId: achat.vendeurId ?? achat.acheteurId, - method: 'achatVente', args: [achat] - }); + RdDActor.remoteActorCall({actorId: achat.vendeurId ?? achat.acheteurId, method: 'achatVente', args: [achat]}); return; } @@ -3678,6 +3675,7 @@ export class RdDActor extends Actor { const chatAchatItem = duplicate(vente); chatAchatItem.quantiteTotal = achat.quantiteTotal; ChatMessage.create({ + user: achat.userId, speaker: {alias: (acheteur ?? vendeur).name} , whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name), content: await renderTemplate('systems/foundryvtt-reve-de-dragon/templates/chat-achat-item.html', chatAchatItem)