forked from public/foundryvtt-reve-de-dragon
Protection naturelle #68
Prise en compte de la protection naturelle pour tous
This commit is contained in:
@ -126,9 +126,11 @@ export class RdDActor extends Actor {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
getBonusDegat() {
|
||||
return parseInt(this.data.data.attributs.plusdom.value);
|
||||
return Misc.toInt(this.data.data.attributs.plusdom.value);
|
||||
}
|
||||
getProtectionNaturelle() {
|
||||
return Misc.toInt(this.data.data.attributs.protection.value);
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
getCompetence(compName) {
|
||||
return RdDUtility.findCompetence(this.data.items, compName);
|
||||
@ -1909,6 +1911,7 @@ export class RdDActor extends Actor {
|
||||
this.updateEmbeddedEntity("OwnedItem", update);
|
||||
}
|
||||
}
|
||||
protection += this.getProtectionNaturelle();
|
||||
console.log("Final protect", protection);
|
||||
return protection;
|
||||
}
|
||||
|
Reference in New Issue
Block a user