Amélioration messages de stress

This commit is contained in:
Vincent Vandemeulebrouck
2021-01-29 12:08:02 +01:00
parent 861e8de590
commit a12f9bbf01
5 changed files with 78 additions and 57 deletions

View File

@ -412,11 +412,11 @@ export class RdDUtility {
static getCaracNextXp(value) {
const nextValue = Number(value) + 1;
// xp est le coût pour atteindre cette valeur, on regarde donc le coût de la valeur+1
return RdDUtility.getCaractXp(nextValue);
return RdDUtility.getCaracXp(nextValue);
}
static getCaractXp(targetValue) {
return tableCaracDerivee[targetValue].xp;
static getCaracXp(targetValue) {
return tableCaracDerivee[targetValue]?.xp ?? 200 ;
}
/* -------------------------------------------- */