Fixe calendrier again
This commit is contained in:
parent
71ce90aa4e
commit
dc09e58b08
@ -169,10 +169,15 @@ export class RdDCalendrier extends Application {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
getNombreAstral(indexDate) {
|
getNombreAstral(indexDate) {
|
||||||
let liste = this.listeNombreAstral ?? this._loadListNombreAstral();
|
if ( this.listeNombreAstral == undefined ) {
|
||||||
if ( typeof(liste) != 'Array' || liste.length == 0 ) {
|
this.listeNombreAstral = this._loadListNombreAstral();
|
||||||
this.rebuildListeNombreAstral();
|
}
|
||||||
liste = this.listeNombreAstral;
|
let liste = this.listeNombreAstral;
|
||||||
|
if ( game.user.isGM ) {
|
||||||
|
if ( typeof(liste) != 'Array' || liste.length == 0 ) {
|
||||||
|
this.rebuildListeNombreAstral();
|
||||||
|
liste = this.listeNombreAstral;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
let astralData = liste.find((nombreAstral, i) => nombreAstral.index == indexDate);
|
let astralData = liste.find((nombreAstral, i) => nombreAstral.index == indexDate);
|
||||||
return astralData?.nombreAstral;
|
return astralData?.nombreAstral;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "foundryvtt-reve-de-dragon",
|
"name": "foundryvtt-reve-de-dragon",
|
||||||
"title": "Rêve de Dragon",
|
"title": "Rêve de Dragon",
|
||||||
"description": "Rêve de Dragon RPG for FoundryVTT",
|
"description": "Rêve de Dragon RPG for FoundryVTT",
|
||||||
"version": "1.4.25",
|
"version": "1.4.26",
|
||||||
"manifestPlusVersion": "1.0.0",
|
"manifestPlusVersion": "1.0.0",
|
||||||
"minimumCoreVersion": "0.8.0",
|
"minimumCoreVersion": "0.8.0",
|
||||||
"compatibleCoreVersion": "0.8.99",
|
"compatibleCoreVersion": "0.8.99",
|
||||||
|
Loading…
Reference in New Issue
Block a user