10.3.17 - petits fixes #597

Merged
uberwald merged 7 commits from VincentVk/foundryvtt-reve-de-dragon:v10 into v10 2022-12-18 17:08:22 +01:00
4 changed files with 2 additions and 16 deletions
Showing only changes of commit 80a904e533 - Show all commits

View File

@ -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),

View File

@ -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;

View File

@ -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",

View File

@ -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>