forked from public/foundryvtt-reve-de-dragon
Récupération de chance optionnelle
This commit is contained in:
@ -513,6 +513,8 @@ export class RdDActor extends RdDBaseActor {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async _recupereChance() {
|
||||
if (!ReglesOptionnelles.isUsing("recuperation-chance")) { return }
|
||||
|
||||
// On ne récupère un point de chance que si aucun appel à la chance dans la journée
|
||||
if (this.getChanceActuel() < this.getChance() && !this.getFlag(SYSTEM_RDD, 'utilisationChance')) {
|
||||
await this.chanceActuelleIncDec(1);
|
||||
|
Reference in New Issue
Block a user