Various fixes and enhancements
This commit is contained in:
@ -52,6 +52,7 @@ export class TeDeumActorPJSheet extends ActorSheet {
|
||||
pointsArmuresLourdes: this.actor.getNbArmures(),
|
||||
nbArmuresLourdes: this.actor.getNbArmuresLourdesActuel(),
|
||||
santeModifier: this.actor.getSanteModifier(),
|
||||
educations: this.actor.getEducations(),
|
||||
description: await TextEditor.enrichHTML(this.object.system.description, { async: true }),
|
||||
notes: await TextEditor.enrichHTML(this.object.system.notes, { async: true }),
|
||||
options: this.options,
|
||||
|
@ -97,6 +97,11 @@ export class TeDeumActor extends Actor {
|
||||
return nb
|
||||
}
|
||||
/* -------------------------------------------- */
|
||||
getEducations() {
|
||||
let educations = this.items.filter(item => item.type == 'education')
|
||||
return educations
|
||||
}
|
||||
/* -------------------------------------------- */
|
||||
getCompetences() {
|
||||
let comp = foundry.utils.duplicate(this.items.filter(item => item.type == 'competence') || [])
|
||||
return comp;
|
||||
|
Reference in New Issue
Block a user