From 84e4581b34c54806745841a468af60d373e19dd2 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Wed, 19 May 2021 23:23:50 +0200 Subject: [PATCH] xp sur alcoolisme --- module/actor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/actor.js b/module/actor.js index 3e556485..d6bcac1f 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1777,7 +1777,7 @@ export class RdDActor extends Actor { jetVie: { forceAlcool: forceAlcool, nbDoses: nbDoses, - selectedCarac: actorData.data.carac.constitution, + selectedCarac: actorData.data.sante.vie, carac: actorData.data.carac, caracValue: actorData.data.sante.vie.max, finalLevel: etat + forceAlcool - nbDoses, @@ -1786,6 +1786,7 @@ export class RdDActor extends Actor { } await RdDResolutionTable.rollData(ethylismeData.jetVie); + this._appliquerExperienceRollData(ethylismeData.jetVie); RollDataAjustements.calcul(ethylismeData.jetVie, this); if (ethylismeData.jetVie.rolled.isSuccess) { ethylisme.nb_doses++; @@ -1818,6 +1819,7 @@ export class RdDActor extends Actor { showDice: true } await RdDResolutionTable.rollData(ethylismeData.jetVolonte); + this._appliquerExperienceRollData(ethylismeData.jetVolonte); RollDataAjustements.calcul(ethylismeData.jetVolonte, this); } } @@ -2752,6 +2754,7 @@ export class RdDActor extends Actor { return { result: false, xpcarac: 0, xpCompetence: 0 }; } + if (caracName == 'Vie') caracName = 'constitution'; if (caracName == 'derobee') caracName = 'agilite'; if (caracName == 'reve-actuel') caracName = 'reve'; let xp = Math.abs(rolled.finalLevel);