#52 Gestion astrologie

This commit is contained in:
sladecraven 2020-12-14 10:04:14 +01:00
parent 59a54b8a90
commit 3cac9e0279

View File

@ -1516,9 +1516,9 @@ export class RdDActor extends Actor {
/* -------------------------------------------- */ /* -------------------------------------------- */
appliquerExperience( rolled, caracName, competenceName = undefined ) { appliquerExperience( rolled, caracName, competenceName = undefined ) {
// TODO gestion derobe/tir/lance/melee // TODO gestion tir/lance/melee
if (caracName == 'derobee') caracName = 'agilite'; if (caracName == 'derobee') caracName = 'agilite';
if ( rolled.isPart && rolled.finalLevel < 0) { if ( rolled.isPart && rolled.finalLevel < 0) {
if ( !compentenceName) { if ( !compentenceName) {
this.actor.data.data.carac[caracName].xp += 1; this.actor.data.data.carac[caracName].xp += 1;