Gestions des tentatives #510

Merged
vincent.vandeme merged 8 commits from v1.5-tentatives into v1.5 2021-10-30 09:46:54 +02:00
Showing only changes of commit a813857d5d - Show all commits

View File

@ -3617,10 +3617,7 @@ export class RdDActor extends Actor {
return; return;
} }
if (!Misc.isElectedUser()) { if (!Misc.isElectedUser()) {
RdDActor.remoteActorCall({ RdDActor.remoteActorCall({actorId: achat.vendeurId ?? achat.acheteurId, method: 'achatVente', args: [achat]});
actorId: achat.vendeurId ?? achat.acheteurId,
method: 'achatVente', args: [achat]
});
return; return;
} }
@ -3678,6 +3675,7 @@ export class RdDActor extends Actor {
const chatAchatItem = duplicate(vente); const chatAchatItem = duplicate(vente);
chatAchatItem.quantiteTotal = achat.quantiteTotal; chatAchatItem.quantiteTotal = achat.quantiteTotal;
ChatMessage.create({ ChatMessage.create({
user: achat.userId,
speaker: {alias: (acheteur ?? vendeur).name} , speaker: {alias: (acheteur ?? vendeur).name} ,
whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name), whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name),
content: await renderTemplate('systems/foundryvtt-reve-de-dragon/templates/chat-achat-item.html', chatAchatItem) content: await renderTemplate('systems/foundryvtt-reve-de-dragon/templates/chat-achat-item.html', chatAchatItem)