cherry-pick v12.0.50 vers v13 #761

Merged
uberwald merged 21 commits from VincentVk/foundryvtt-reve-de-dragon:v13 into v13 2025-05-04 19:16:53 +02:00
20 changed files with 2826 additions and 2754 deletions
Showing only changes of commit cf185844af - Show all commits

View File

@ -556,11 +556,9 @@ export class RdDActor extends RdDBaseActorSang {
if (fatigue <= fatigueMin) {
return
}
fatigue = Math.max(fatigueMin, this._calculRecuperationSegment(fatigue));
setTimeout( // On attend un peu pour que le message de récupération de r
async () => {
await this.update({ 'system.sante.fatigue.value': fatigue });
}, 200);
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é. ";
}