From d81965155cf7f7cda11d8dc6c23098e1aeb917fe Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Wed, 5 Mar 2025 08:24:56 +0100 Subject: [PATCH] Correction sur heures de repos --- module/actor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/module/actor.js b/module/actor.js index 4fff86e3..ff8ada59 100644 --- a/module/actor.js +++ b/module/actor.js @@ -558,6 +558,7 @@ export class RdDActor extends RdDBaseActorSang { } fatigue = Math.max(fatigueMin, this._calculRecuperationSegment(fatigue)) await this.update({ 'system.sante.fatigue.value': fatigue }); + await new Promise(resolve => setTimeout(resolve, 200)); if (fatigue == 0) { message.content += "Vous ĂȘtes complĂȘtement reposĂ©. "; }