diff --git a/module/actor.js b/module/actor.js index 40d77e64..e3a955ee 100644 --- a/module/actor.js +++ b/module/actor.js @@ -477,7 +477,7 @@ export class RdDActor extends Actor { dialog.render(true); } async repos() { - await DialogRepos.create(this.actor); + await DialogRepos.create(this); } /* -------------------------------------------- */ diff --git a/module/dialog-repos.js b/module/dialog-repos.js index a1a9ba06..ec43ecc6 100644 --- a/module/dialog-repos.js +++ b/module/dialog-repos.js @@ -32,6 +32,7 @@ export class DialogRepos extends Dialog { const selection = await this.html.find("[name='repos']:checked").val(); const nbHeures = Number.parseInt(await this.html.find("[name='nb-heures']").val()); const nbJours = Number.parseInt(await this.html.find("[name='nb-jours']").val()); + console.log("ACTOR", this.actor) switch (selection) { case "sieste": { await this.actor.dormir(nbHeures); diff --git a/system.json b/system.json index 2d71c862..7d82d880 100644 --- a/system.json +++ b/system.json @@ -1,8 +1,8 @@ { "id": "foundryvtt-reve-de-dragon", "title": "RĂªve de Dragon", - "version": "10.4.1", - "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.4.1.zip", + "version": "10.4.2", + "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.4.2.zip", "manifest": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/v10/system.json", "compatibility": { "minimum": "10",