Fix repos

This commit is contained in:
LeRatierBretonnien 2022-12-23 23:18:40 +01:00
parent 4f80c719c2
commit d6f8698189
3 changed files with 4 additions and 3 deletions

View File

@ -477,7 +477,7 @@ export class RdDActor extends Actor {
dialog.render(true);
}
async repos() {
await DialogRepos.create(this.actor);
await DialogRepos.create(this);
}
/* -------------------------------------------- */

View File

@ -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);

View File

@ -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",