#107 : Correction sur boucle de re-entrance sur la creation des monnaies

This commit is contained in:
sladecraven 2021-01-05 11:59:03 +01:00
parent bc0e307959
commit 8b6ed4e172
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ export class RdDActor extends Actor {
/* -------------------------------------------- */ /* -------------------------------------------- */
static async ajouterMonnaie( items ) { // Creation auto à la création du personnage 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); items.push(etain);
let bronze = RdDUtility.createMonnaie("Bronze (10 deniers)", 10, "systems/foundryvtt-reve-de-dragon/icons/objets/piece_bronze_epees.webp"); let bronze = RdDUtility.createMonnaie("Bronze (10 deniers)", 10, "systems/foundryvtt-reve-de-dragon/icons/objets/piece_bronze_epees.webp");

View File

@ -941,7 +941,7 @@ export class RdDUtility {
/* -------------------------------------------- */ /* -------------------------------------------- */
static createMonnaie( name, valeur_deniers, img = "", enc = 0.01) { 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: { data: {
quantite: 0, quantite: 0,
valeur_deniers: valeur_deniers, valeur_deniers: valeur_deniers,