forked from public/foundryvtt-reve-de-dragon
Jet de moral de château dormant optionnel
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user