Expérience par le stress #514

Merged
vincent.vandeme merged 1 commits from v1.5-stress-to-xp into v1.5 2021-11-23 20:18:21 +01:00

View File

@ -2618,15 +2618,16 @@ export class RdDActor extends Actor {
rollData.appliquerFatigue = ReglesOptionelles.isUsing("appliquer-fatigue"); rollData.appliquerFatigue = ReglesOptionelles.isUsing("appliquer-fatigue");
rollData.tache = duplicate(rollData.tache); rollData.tache = duplicate(rollData.tache);
rollData.tache.data.points_de_tache_courant += rollData.rolled.ptTache; rollData.tache.data.points_de_tache_courant += rollData.rolled.ptTache;
rollData.tache.data.tentatives++;
if (rollData.rolled.isETotal) { if (rollData.rolled.isETotal) {
rollData.tache.data.difficulte--; rollData.tache.data.difficulte--;
} }
if (rollData.rolled.isSuccess) { if (rollData.rolled.isSuccess) {
rollData.tache.data.nb_jet_succes = rollData.tache.data.nb_jet_succes + 1; rollData.tache.data.nb_jet_succes++;
} else { } else {
rollData.tache.data.nb_jet_echec = rollData.tache.data.nb_jet_echec + 1; rollData.tache.data.nb_jet_echec++;
} }
rollData.tache.data.tentatives = rollData.tache.data.nb_jet_succes+rollData.tache.data.nb_jet_echec;
this.updateEmbeddedDocuments('Item', [rollData.tache]); this.updateEmbeddedDocuments('Item', [rollData.tache]);
this.santeIncDec("fatigue", rollData.tache.data.fatigue); this.santeIncDec("fatigue", rollData.tache.data.fatigue);