Organisation des parties de la feuille

This commit is contained in:
Vincent Vandemeulebrouck
2022-09-26 23:01:29 +02:00
parent 7e1bbcada0
commit 2e158f9d39
46 changed files with 148 additions and 153 deletions

View File

@ -55,15 +55,14 @@ export class RdDActorSheet extends ActorSheet {
biographie: await TextEditor.enrichHTML(this.object.system.biographie, {async: true}),
notes: await TextEditor.enrichHTML(this.object.system.notes, {async: true}),
notesmj: await TextEditor.enrichHTML(this.object.system.notesmj, {async: true}),
itemsByType: Misc.classify(this.actor.items.map(i => foundry.utils.deepClone(i))),
}
RdDUtility.filterItemsPerTypeForSheet(formData)
RdDUtility.filterItemsPerTypeForSheet(formData, this.actor.itemTypes);
formData.options.isGM = game.user.isGM;
if (formData.type == 'creature') return formData; // Shortcut
formData.competenceByCategory = Misc.classify(formData.competences, it => it.system.categorie)
formData.byCateg = Misc.classify(formData.competences, it => it.system.categorie)
formData.calc = {
comptageArchetype: RdDItemCompetence.computeResumeArchetype(formData.competences),