forked from public/foundryvtt-reve-de-dragon
#52 Gestion astrologie
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user