Fix xp carac

This commit is contained in:
Vincent Vandemeulebrouck
2021-01-13 22:16:23 +01:00
parent 53ba331969
commit 0ea85dea50
2 changed files with 41 additions and 39 deletions

View File

@ -1438,7 +1438,7 @@ export class RdDActor extends Actor {
/* -------------------------------------------- */
async checkCaracXP(caracName) {
let carac = this.data.data.carac[caracName];
console.log("XP chek", carac, caracName);
console.log("XP check", carac, caracName);
if (carac && carac.xp > 0) {
let xpNeeded = RdDUtility.getCaracNextXp(carac.value);
if (carac.xp >= xpNeeded) {