From 8b6ed4e1726d2572e1bcaefeaab0bc1d640e555b Mon Sep 17 00:00:00 2001 From: sladecraven Date: Tue, 5 Jan 2021 11:59:03 +0100 Subject: [PATCH] #107 : Correction sur boucle de re-entrance sur la creation des monnaies --- module/actor.js | 2 +- module/rdd-utility.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/actor.js b/module/actor.js index 695a0e2d..22229bd9 100644 --- a/module/actor.js +++ b/module/actor.js @@ -136,7 +136,7 @@ export class RdDActor extends Actor { /* -------------------------------------------- */ static async ajouterMonnaie( items ) { // Creation auto à la création du personnage - let etain = RdDUtility.createMonnaie("Etain (1 denier)", 1, "systems/foundryvtt-reve-de-dragon/icons/objets/piece_etain_poisson.webp); + let etain = RdDUtility.createMonnaie("Etain (1 denier)", 1, "systems/foundryvtt-reve-de-dragon/icons/objets/piece_etain_poisson.webp"); items.push(etain); let bronze = RdDUtility.createMonnaie("Bronze (10 deniers)", 10, "systems/foundryvtt-reve-de-dragon/icons/objets/piece_bronze_epees.webp"); diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 79edee9c..edd83018 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -941,7 +941,7 @@ export class RdDUtility { /* -------------------------------------------- */ static createMonnaie( name, valeur_deniers, img = "", enc = 0.01) { - let piece = { name: name, type: 'monnaie', _id: randomID(), img: img, + let piece = { name: name, type: 'monnaie', img: img, _id: randomID(16), data: { quantite: 0, valeur_deniers: valeur_deniers,