forked from public/foundryvtt-reve-de-dragon
#52 Gestion astrologie
This commit is contained in:
@ -233,7 +233,7 @@ export class RdDCalendrier extends Application {
|
||||
if ( game.user.isGM) { // Only GM
|
||||
console.log( request );
|
||||
let jourDiff = this.getLectureAstrologieDifficulte( request.date);
|
||||
let niveau = Number(request.astrologie.data.niveau) + Number(request.conditions) + Number(jourDiff);
|
||||
let niveau = Number(request.astrologie.data.niveau) + Number(request.conditions) + Number(jourDiff) + Number(request.etat);
|
||||
let rolled = await RdDResolutionTable.roll(request.carac_vue, niveau, undefined, false);
|
||||
|
||||
let nbAstral = this.getNombreAstral( request.date );
|
||||
@ -356,6 +356,11 @@ export class RdDCalendrier extends Application {
|
||||
let astrologieArray = [];
|
||||
for (let astralData of this.listeNombreAstral ) {
|
||||
astralData.humanDate = this.getDateFromIndex( astralData.index );
|
||||
for (let vf of astralData.valeursFausses) {
|
||||
let actor = game.actors.get( vf.actorId);
|
||||
console.log(vf.actorId, actor );
|
||||
vf.actorName = (actor) ? actor.name : "Inconnu";
|
||||
}
|
||||
astrologieArray.push( duplicate(astralData ) );
|
||||
}
|
||||
//console.log("ASTRO", astrologieArray);
|
||||
|
Reference in New Issue
Block a user