#70 Minimum d'xp en carac
Le min de 1 en carac ne s'applique qu'en l'absence de compétence (p144)
This commit is contained in:
parent
b77646365c
commit
37cc5a60d8
@ -1569,8 +1569,15 @@ export class RdDActor extends Actor {
|
|||||||
|
|
||||||
let xp = Math.abs(rolled.finalLevel);
|
let xp = Math.abs(rolled.finalLevel);
|
||||||
let xpCarac = Math.floor(xp / 2); // impair: arrondi inférieur en carac
|
let xpCarac = Math.floor(xp / 2); // impair: arrondi inférieur en carac
|
||||||
|
|
||||||
|
let xpComp;
|
||||||
|
if (competenceName) {
|
||||||
|
xpComp = xp - xpCarac;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
xpComp = 0;
|
||||||
xpCarac = Math.max(xpCarac, 1);
|
xpCarac = Math.max(xpCarac, 1);
|
||||||
let xpComp = xp - xpCarac;
|
}
|
||||||
|
|
||||||
if ( competenceName ) {
|
if ( competenceName ) {
|
||||||
let competence = duplicate( RdDUtility.findCompetence( this.data.items, competenceName ) );
|
let competence = duplicate( RdDUtility.findCompetence( this.data.items, competenceName ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user