Add consequenes to actor sheet

This commit is contained in:
2021-01-31 17:23:14 +01:00
parent e412f0cb3b
commit 1d2f438235
7 changed files with 64 additions and 9 deletions

View File

@ -32,7 +32,10 @@ export class SoSActorSheet extends ActorSheet {
});
data.data.skill1 = data.data.skills.slice(0, Math.ceil(data.data.skills.length/2) )
data.data.skill2 = data.data.skills.slice(Math.ceil(data.data.skills.length/2), data.data.skills.length )
data.data.consequences = this.actor.data.items.filter( item => item.type == 'consequence').sort( (a, b) => {
if ( a.name > b.name ) return 1;
return -1;
});
data.data.subculture = this.actor.data.items.find( item => item.type == 'subculture');
data.data.geneline = this.actor.data.items.find( item => item.type == 'geneline');
data.data.editStatSkill = this.options.editStatSkill;