cleanup calendrier

This commit is contained in:
Vincent Vandemeulebrouck
2021-06-09 00:00:15 +02:00
parent 027a970da5
commit 2dfe5473e7
2 changed files with 48 additions and 36 deletions

View File

@ -37,7 +37,7 @@ export class RdDHerbes extends Item {
static updatePotionData( formData ) {
formData.herbesSoins = this.buildHerbesList(this.herbesSoins, 12);
formData.herbesRepos = this.buildHerbesList(this.herbesRepos, 7);
formData.jourMoisOptions = Array(28).fill().map((item, index) => 1 + index);
formData.jourMoisOptions = RdDCalendrier.buildJoursMois();
formData.dateActuelle = game.system.rdd.calendrier.getDateFromIndex();
formData.splitDate = game.system.rdd.calendrier.getNumericDateFromIndex(formData.data.prdate);