Various fixes and enhancements

This commit is contained in:
2025-02-03 23:00:59 +01:00
parent a72e671f75
commit 92396da997
69 changed files with 762 additions and 330 deletions

View File

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

View File

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