Fix repos
This commit is contained in:
@ -477,7 +477,7 @@ export class RdDActor extends Actor {
|
||||
dialog.render(true);
|
||||
}
|
||||
async repos() {
|
||||
await DialogRepos.create(this.actor);
|
||||
await DialogRepos.create(this);
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user