Récupération de chance optionnelle

This commit is contained in:
2023-11-03 20:22:41 +01:00
parent ece9ab6f64
commit d285e866be
3 changed files with 4 additions and 0 deletions

View File

@ -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);