Ajustement de luminosité automatique

Activable par le MJ avec le bouton lumière du calendrier
This commit is contained in:
2023-10-20 02:34:07 +02:00
parent 9bd13a6021
commit fe6c2e2ff2
7 changed files with 96 additions and 42 deletions

View File

@ -128,7 +128,7 @@ export class AppAstrologie extends Application {
this.selectHeureNaissance(event.currentTarget.attributes['data-heure-naissance'].value);
})
this.html.find('[name="jet-astrologie"]').click(event => this.requestJetAstrologie());
this.html.find('[name="rebuild-nombres-astraux"]').click(event => this.rebuildNombresAstraux());
this.html.find('[name="rebuild-nombres-astraux"]').click(event => this.onRebuild());
this.onCalculThemeAstral();
}
@ -144,7 +144,7 @@ export class AppAstrologie extends Application {
}
/* -------------------------------------------- */
async rebuildNombresAstraux() {
async onRebuild() {
game.system.rdd.calendrier.resetNombresAstraux();
await game.system.rdd.calendrier.rebuildNombresAstraux();