Correction sur heures de repos
This commit is contained in:
parent
9fa8a2e6f3
commit
d81965155c
@ -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é. ";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user