10.3.17 - petits fixes #597
@ -59,6 +59,7 @@ export class RdDActorSheet extends ActorSheet {
|
||||
calc: {
|
||||
fortune: Monnaie.getFortune(this.actor),
|
||||
encTotal: await this.actor.computeEncombrementTotalEtMalusArmure(),
|
||||
surenc: this.actor.computeMalusSurEncombrement(),
|
||||
prixTotalEquipement: this.actor.computePrixTotalEquipement(),
|
||||
surprise: RdDBonus.find(this.actor.getSurprise(false)).descr,
|
||||
resumeBlessures: this.actor.computeResumeBlessure(this.actor.system.blessures),
|
||||
|
@ -1385,9 +1385,6 @@ export class RdDActor extends Actor {
|
||||
if (!this.pack) {
|
||||
await this.computeMalusArmure();
|
||||
this.encTotal = this.items.map(it => it.getEncTotal()).reduce(Misc.sum(), 0);
|
||||
if (!this.isVehicule()) {
|
||||
this.system.compteurs.surenc.value = this.computeMalusSurEncombrement();
|
||||
}
|
||||
return this.encTotal;
|
||||
}
|
||||
return 0;
|
||||
|
@ -97,10 +97,6 @@
|
||||
"etat": {
|
||||
"value": 0,
|
||||
"label": "Etat général"
|
||||
},
|
||||
"surenc": {
|
||||
"value": 0,
|
||||
"label": "Sur-encombrement"
|
||||
}
|
||||
},
|
||||
"attributs": {
|
||||
@ -231,10 +227,6 @@
|
||||
"etat": {
|
||||
"value": 0,
|
||||
"label": "Etat général"
|
||||
},
|
||||
"surenc": {
|
||||
"value": 0,
|
||||
"label": "Sur-encombrement"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -530,10 +522,6 @@
|
||||
"value": 0,
|
||||
"label": "Etat général"
|
||||
},
|
||||
"surenc": {
|
||||
"value": 0,
|
||||
"label": "Sur-encombrement"
|
||||
},
|
||||
"ethylisme": {
|
||||
"value": 1,
|
||||
"label": "Ethylisme",
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div class="flex-group-left header-etats">
|
||||
<div class="flexcol">
|
||||
<span>{{system.compteurs.etat.label}}: {{system.compteurs.etat.value}}</span>
|
||||
<span>{{system.compteurs.surenc.label}}: {{system.compteurs.surenc.value}}</span>
|
||||
<span>Sur-encombrement: {{calc.surenc}}</span>
|
||||
<span>{{calc.resumeBlessures}}</span>
|
||||
{{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-effects.html"}}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user