This commit is contained in:
2021-03-12 17:41:13 +01:00
parent 87ca3febd3
commit 3285bd416e
11 changed files with 33 additions and 30 deletions

View File

@ -26,7 +26,7 @@ export class SoSActorSheet extends ActorSheet {
let data = super.getData();
this.actor.checkDeck();
data.data.edgecard = this.actor.getEdgesCard();
data.data.deckSize = this.actor.getDeckSize();
@ -40,7 +40,7 @@ export class SoSActorSheet extends ActorSheet {
if ( a.name > b.name ) return 1;
return -1;
});
data.data.gears = this.actor.data.items.filter( item => item.type == 'gear');
data.data.gears = this.actor.data.items.filter( item => item.type == 'gear').concat( this.actor.data.items.filter( item => item.type == 'container') );
data.data.weapons = this.actor.data.items.filter( item => item.type == 'weapon');
data.data.armors = this.actor.data.items.filter( item => item.type == 'armor');
data.data.totalEncumbrance = SoSUtility.computeEncumbrance(this.actor.data.items);

View File

@ -157,7 +157,7 @@ export class SoSActor extends Actor {
return this.data.data.scores.wound.value;
}
computeWound() {
return Math.ceil( (this.data.data.stats.strength.value + this.data.data.stats.endurance.value) / 2) + this.data.data.scores.wounds.bonusmalus;
return Math.ceil( (this.data.data.stats.strength.value + this.data.data.stats.endurance.value) / 2) + this.data.data.scores.wound.bonusmalus;
}
/* -------------------------------------------- */