forked from public/foundryvtt-reve-de-dragon
Amélioration messages de stress
This commit is contained in:
@ -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 ;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user