Petit fixes de synchro + essai pour corriger message XP + roll
All checks were successful
Release Creation / build (release) Successful in 2m32s
All checks were successful
Release Creation / build (release) Successful in 2m32s
This commit is contained in:
@ -557,7 +557,10 @@ export class RdDActor extends RdDBaseActorSang {
|
||||
return;
|
||||
}
|
||||
fatigue = Math.max(fatigueMin, this._calculRecuperationSegment(fatigue));
|
||||
await this.update({ "system.sante.fatigue.value": 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);
|
||||
if (fatigue == 0) {
|
||||
message.content += "Vous êtes complêtement reposé. ";
|
||||
}
|
||||
@ -1800,8 +1803,10 @@ export class RdDActor extends RdDBaseActorSang {
|
||||
};
|
||||
RollDataAjustements.calcul(rollData, this);
|
||||
await RdDResolutionTable.rollData(rollData);
|
||||
this.gererExperience(rollData);
|
||||
await RdDRollResult.displayRollData(rollData, this)
|
||||
|
||||
this.gererExperience(rollData);
|
||||
|
||||
return rollData.rolled;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user