Gestion etat general pour creatures

This commit is contained in:
sladecraven 2020-09-20 21:52:46 +02:00
parent 5e7a5f4ccb
commit 6553d083c1
3 changed files with 5 additions and 3 deletions

View File

@ -69,6 +69,7 @@ export class RdDActor extends Actor {
// Make separate methods for each Actor type (character, npc, etc.) to keep
// things organized.
if (actorData.type === 'personnage') this._prepareCharacterData(actorData);
if (actorData.type === 'creature') this.computeEtatGeneral(actorData);
}
/* -------------------------------------------- */
@ -371,6 +372,7 @@ export class RdDActor extends Actor {
let data = this.data.data;
let state = 0;
state = state - (data.sante.vie.max - data.sante.vie.value);
if (data.sante.fatigue) // Creatures n'ont pas de fatigue
state = state + RdDUtility.currentFatigueMalus(data.sante.fatigue.value, data.sante.endurance.max);
data.compteurs.etat.value = state;
}

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT",
"version": "0.9.14",
"version": "0.9.15",
"minimumCoreVersion": "0.6.0",
"compatibleCoreVersion": "0.6.6",
"templateVersion": 37,

View File

@ -178,7 +178,7 @@
{{!-- Biography Tab --}}
<div class="tab description" data-group="primary" data-tab="description" style="height:200px">
<div class="form-group" style="height:200px">
{{editor content="data.description" target="data.description" button=true owner=owner editable=editable}}
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</div>
</div>