Options de repos #205

This commit is contained in:
Vincent Vandemeulebrouck
2021-06-26 00:55:54 +02:00
parent 4f6cc3e6e3
commit 959093fdd5
5 changed files with 184 additions and 45 deletions

View File

@ -14,6 +14,7 @@ import { RdDCarac } from "./rdd-carac.js";
import { RdDItem } from "./item.js";
import { DialogSplitItem } from "./dialog-split-item.js";
import { ReglesOptionelles } from "./regles-optionelles.js";
import { DialogRepos } from "./dialog-repos.js";
/* -------------------------------------------- */
export class RdDActorSheet extends ActorSheet {
@ -372,11 +373,8 @@ export class RdDActorSheet extends ActorSheet {
this.actor.displayTMR("rapide");
});
html.find('.dormir-une-heure').click(async event => {
this.actor.dormir(1);
});
html.find('.dormir-chateau-dormant').click(async event => {
this.actor.dormirChateauDormant();
html.find('.repos').click(async event => {
await DialogRepos.create(this.actor);
});
html.find('.enlever-tous-effets').click(async event => {
this.actor.enleverTousLesEffets();