Correction sur heures de repos

This commit is contained in:
LeRatierBretonnien 2025-03-05 08:24:56 +01:00
parent 9fa8a2e6f3
commit d81965155c

View File

@ -558,6 +558,7 @@ export class RdDActor extends RdDBaseActorSang {
} }
fatigue = Math.max(fatigueMin, this._calculRecuperationSegment(fatigue)) fatigue = Math.max(fatigueMin, this._calculRecuperationSegment(fatigue))
await this.update({ 'system.sante.fatigue.value': fatigue }); await this.update({ 'system.sante.fatigue.value': fatigue });
await new Promise(resolve => setTimeout(resolve, 200));
if (fatigue == 0) { if (fatigue == 0) {
message.content += "Vous êtes complêtement reposé. "; message.content += "Vous êtes complêtement reposé. ";
} }