#52 Gestion astrologie

This commit is contained in:
2020-12-13 23:11:58 +01:00
parent e07120aa23
commit 5aba029da9
7 changed files with 83 additions and 22 deletions

View File

@ -719,11 +719,9 @@ export class RdDUtility {
}
/* -------------------------------------------- */
static async responseNombreAstral( data ) {
static async responseNombreAstral( data ) {
let actor = game.actors.get( data.id);
const item = {name: "Nombre Astral", type: "nombreastral", data:
{ value: data.nbAstral, istrue: data.isvalid, jourindex: Number(data.date), jourlabel: game.system.rdd.calendrier.getDateFromIndex( Number(data.date) ) } };
await actor.createEmbeddedEntity("OwnedItem", item);
actor.ajouteNombreAstral(data);
}
/* -------------------------------------------- */