Jet de moral de château dormant optionnel

This commit is contained in:
2023-11-04 18:07:41 +01:00
parent bea4124388
commit 69a653d1e5
3 changed files with 7 additions and 2 deletions

View File

@ -303,7 +303,7 @@ export class RdDActor extends RdDBaseActorSang {
};
await this._recuperationSante(message)
await this._jetDeMoralChateauDormant(message);
await this._recupereMoralChateauDormant(message);
await this._recupereChance();
await this.transformerStress();
await this.retourSeuilDeReve(message);
@ -351,7 +351,9 @@ export class RdDActor extends RdDBaseActorSang {
await this.unsetFlag(SYSTEM_RDD, 'utilisationChance');
}
async _jetDeMoralChateauDormant(message) {
async _recupereMoralChateauDormant(message) {
if (!ReglesOptionnelles.isUsing("recuperation-moral")) { return }
const etatMoral = this.system.sommeil?.moral ?? 'neutre';
const jetMoral = await this._jetDeMoral(etatMoral);
message.content += ` -- le jet de moral est ${etatMoral}, le moral ` + this._messageAjustementMoral(jetMoral.ajustement);