forked from public/foundryvtt-reve-de-dragon
		
	Fix: ajustement astrologique pour les joueurs
This commit is contained in:
		| @@ -109,13 +109,13 @@ export class RdDCalendrier extends Application { | |||||||
|   /* -------------------------------------------- */ |   /* -------------------------------------------- */ | ||||||
|   getCurrentNombreAstral() { |   getCurrentNombreAstral() { | ||||||
|     let index = this.getCurrentDayIndex(); |     let index = this.getCurrentDayIndex(); | ||||||
|     let astralData = this.listeNombreAstral.find( (nombreAstral, i) => nombreAstral.index == index ); |     return this.getNombreAstral(index); | ||||||
|     return astralData.nombreAstral || "N/A"; |  | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   /* -------------------------------------------- */ |   /* -------------------------------------------- */ | ||||||
|   getNombreAstral( index ) { |   getNombreAstral( index ) { | ||||||
|     let astralData = this.listeNombreAstral.find( (nombreAstral, i) => nombreAstral.index == index ); |     const liste = this.listeNombreAstral || game.settings.get("foundryvtt-reve-de-dragon", "liste-nombre-astral") | ||||||
|  |     let astralData = liste.find( (nombreAstral, i) => nombreAstral.index == index ); | ||||||
|     return astralData.nombreAstral || "N/A"; |     return astralData.nombreAstral || "N/A"; | ||||||
|   } |   } | ||||||
|    |    | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user