#185 - Reinit nombres astraux

This commit is contained in:
2021-04-25 10:08:40 +02:00
parent d42de6c316
commit 33ed7bfe2c
7 changed files with 47 additions and 3 deletions

View File

@ -136,6 +136,12 @@ export class RdDCalendrier extends Application {
return this.getNombreAstral(indexDate);
}
/* -------------------------------------------- */
resetNombreAstral( ) {
this.listeNombreAstral = [];
game.settings.set("foundryvtt-reve-de-dragon", "liste-nombre-astral", this.listeNombreAstral);
}
/* -------------------------------------------- */
getNombreAstral(indexDate) {
const liste = this.listeNombreAstral ?? this._loadListNombreAstral();