forked from public/foundryvtt-reve-de-dragon
#52 Travaux en progres....
This commit is contained in:
@ -718,6 +718,14 @@ export class RdDUtility {
|
||||
return defenseMsg;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
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);
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static performSocketMesssage( sockmsg )
|
||||
{
|
||||
@ -731,6 +739,10 @@ export class RdDUtility {
|
||||
return ChatUtility.handleGMChatMessage(sockmsg.data);
|
||||
case "msg_sync_time":
|
||||
return game.system.rdd.calendrier.syncPlayerTime( sockmsg.data );
|
||||
case "msg_request_nombre_astral":
|
||||
return game.system.rdd.calendrier.requestNombreAstral( sockmsg.data );
|
||||
case "msg_response_nombre_astral":
|
||||
return RdDUtility.responseNombreAstral( sockmsg.data );
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user