Séparation actor-sheet en sous-parties

This commit is contained in:
Vincent Vandemeulebrouck
2022-09-26 03:36:18 +02:00
parent 02ccb1f287
commit 7e1bbcada0
26 changed files with 414 additions and 329 deletions

View File

@ -115,15 +115,36 @@ export class RdDUtility {
'systems/foundryvtt-reve-de-dragon/templates/actor-creature-sheet.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-entite-sheet.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-vehicule-sheet.html',
// sous-parties de feuilles de personnages
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-competence-partial.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-effects-partial.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-oeuvre-partial.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-xp-competences.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-combat.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-blessures.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-blessure.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-maladies-poisons.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-possessions.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-actor-sheet-taches.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-taches.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-oeuvres.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-oeuvre-partial.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-jeux.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-alchimie.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-astrologie.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-non-haut-revant.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-haut-revant.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-queues.html',
// Conteneur/item in Actor sheet
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-souffles.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-tetes.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-hr-signes-draconiques.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-hr-rencontres.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-hr-sorts.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-hr-sorts-reserve.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-hr-meditations.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-hr-casestmr.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-xp-journal.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-editor-notes-mj.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-inventaire.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-item-queue.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-inventaire-item.html',
@ -131,7 +152,6 @@ export class RdDUtility {
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-liens-animaux.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-liens-suivants.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-liens-vehicules.html',
'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-editor-notes-mj.html',
//Items
'systems/foundryvtt-reve-de-dragon/templates/header-item.html',
'systems/foundryvtt-reve-de-dragon/templates/item-competence-sheet.html',
@ -374,6 +394,7 @@ export class RdDUtility {
RdDUtility.filterEquipementParType(formData);
formData.sorts = this.arrayOrEmpty(formData.itemsByType['sort']);
formData.casestmr = this.arrayOrEmpty(formData.itemsByType['casetmr']);
formData.signesdraconiques = this.arrayOrEmpty(formData.itemsByType['signedraconique']);
formData.queues = this.arrayOrEmpty(formData.itemsByType['queue']);
formData.souffles = this.arrayOrEmpty(formData.itemsByType['souffle']);