Merge branch 'v1.5' into 'v1.5-tentatives'

# Conflicts:
#   template.json
#   templates/item-tache-sheet.html
This commit is contained in:
2021-10-30 07:17:35 +00:00
4 changed files with 14 additions and 5 deletions

View File

@ -2578,6 +2578,11 @@ export class RdDActor extends Actor {
if (rollData.rolled.isETotal) {
rollData.tache.data.difficulte--;
}
if (rollData.rolled.isSuccess) {
rollData.tache.data.nb_jet_succes = rollData.tache.data.nb_jet_succes + 1;
} else {
rollData.tache.data.nb_jet_echec = rollData.tache.data.nb_jet_echec + 1;
}
this.updateEmbeddedDocuments('Item', [rollData.tache]);
this.santeIncDec("fatigue", rollData.tache.data.fatigue);