#107 : Correction sur boucle de re-entrance sur la creation des monnaies
This commit is contained in:
parent
bc0e307959
commit
8b6ed4e172
@ -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");
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user