forked from public/foundryvtt-reve-de-dragon
Fi creature sheet
This commit is contained in:
@ -494,7 +494,7 @@ export class RdDActor extends Actor {
|
||||
//console.log(name, inc, data.value);
|
||||
|
||||
let diffEndurance = sante.endurance.max - this.data.data.sante.endurance.value;
|
||||
if ( sante.fatigue.value < diffEndurance) // If endurance lost, then the same amount of fatigue cannot be recovered
|
||||
if ( sante.fatigue && sante.fatigue.value < diffEndurance) // If endurance lost, then the same amount of fatigue cannot be recovered
|
||||
sante.fatigue.value = diffEndurance;
|
||||
//console.log("SANTE::::", sante);
|
||||
|
||||
@ -728,7 +728,6 @@ export class RdDActor extends Actor {
|
||||
armeItem = { name: compName, data: { dommages: compItem.data.dommages} };
|
||||
}
|
||||
compItem.data.defaut_carac = "carac_creature"; // Fake default competence
|
||||
console.log("V:", compItem.data.carac_value, compItem)
|
||||
let rollData = {
|
||||
"competence": compItem,
|
||||
"arme": armeItem,
|
||||
|
Reference in New Issue
Block a user