Ajout langues et revue equipement

This commit is contained in:
2022-02-15 20:53:13 +01:00
parent 634e755846
commit 1734ce87cd
9 changed files with 543 additions and 40 deletions

View File

@ -334,9 +334,8 @@ export class BoLActor extends Actor {
/* -------------------------------------------- */
getArmorFormula( ) {
let protectWorn = this.protections.filter( item => item.data.worn);
let protectWorn = this.protections.filter( item => item.data.worn)
let formula = ""
console.log("Protections: ", protectWorn)
for (let protect of protectWorn) {
if ( protect.data.subtype == 'helm') {
formula += "+1"
@ -345,7 +344,7 @@ export class BoLActor extends Actor {
}
}
console.log("Protect Formula", formula)
return (formula == "") ? 0 :formula;
return (formula == "") ? "0" :formula;
}
/* -------------------------------------------- */