From 7e1bbcada0d72dff08f36a77c7ddf358cf9b675e Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Mon, 26 Sep 2022 03:36:18 +0200 Subject: [PATCH] =?UTF-8?q?S=C3=A9paration=20actor-sheet=20en=20sous-parti?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor-sheet.js | 1 - module/rdd-utility.js | 27 +- styles/simple.css | 6 + templates/actor-sheet-alchimie.html | 13 + templates/actor-sheet-astrologie.html | 2 + templates/actor-sheet-blessures.html | 3 +- templates/actor-sheet-combat.html | 46 +-- templates/actor-sheet-haut-revant.html | 35 ++ templates/actor-sheet-hr-casestmr.html | 15 + templates/actor-sheet-hr-meditations.html | 15 + templates/actor-sheet-hr-rencontres.html | 17 + .../actor-sheet-hr-signes-draconiques.html | 15 + templates/actor-sheet-hr-sorts-reserve.html | 15 + templates/actor-sheet-hr-sorts.html | 19 ++ templates/actor-sheet-jeux.html | 13 + templates/actor-sheet-maladies-poisons.html | 34 ++ templates/actor-sheet-non-haut-revant.html | 26 ++ templates/actor-sheet-oeuvres.html | 18 + templates/actor-sheet-possessions.html | 22 ++ templates/actor-sheet-queues.html | 2 +- templates/actor-sheet-souffles.html | 14 + templates/actor-sheet-taches.html | 16 + templates/actor-sheet-tetes.html | 14 + templates/actor-sheet-xp-competences.html | 23 ++ templates/actor-sheet-xp-journal.html | 13 + templates/actor-sheet.html | 319 ++---------------- 26 files changed, 414 insertions(+), 329 deletions(-) create mode 100644 templates/actor-sheet-alchimie.html create mode 100644 templates/actor-sheet-astrologie.html create mode 100644 templates/actor-sheet-haut-revant.html create mode 100644 templates/actor-sheet-hr-casestmr.html create mode 100644 templates/actor-sheet-hr-meditations.html create mode 100644 templates/actor-sheet-hr-rencontres.html create mode 100644 templates/actor-sheet-hr-signes-draconiques.html create mode 100644 templates/actor-sheet-hr-sorts-reserve.html create mode 100644 templates/actor-sheet-hr-sorts.html create mode 100644 templates/actor-sheet-jeux.html create mode 100644 templates/actor-sheet-maladies-poisons.html create mode 100644 templates/actor-sheet-non-haut-revant.html create mode 100644 templates/actor-sheet-oeuvres.html create mode 100644 templates/actor-sheet-possessions.html create mode 100644 templates/actor-sheet-souffles.html create mode 100644 templates/actor-sheet-taches.html create mode 100644 templates/actor-sheet-tetes.html create mode 100644 templates/actor-sheet-xp-competences.html create mode 100644 templates/actor-sheet-xp-journal.html diff --git a/module/actor-sheet.js b/module/actor-sheet.js index fb21e9e6..ec0b9885 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -105,7 +105,6 @@ export class RdDActorSheet extends ActorSheet { formData.hautreve = { isDemiReve: this.actor.getEffect(STATUSES.StatusDemiReve), rencontres: duplicate(formData.system.reve.rencontre.list), - casesTmr: formData.itemsByType.casetmr, cacheTMR: this.actor.isTMRCache() } diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 905694ff..200ccc2d 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -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']); diff --git a/styles/simple.css b/styles/simple.css index 70c7a19c..67ec038f 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -937,6 +937,12 @@ ul, li { margin-right: 0.2rem; margin-left: 0.2rem; } +.initiative-value { + flex-grow: 0; + flex-basis: 3rem; + margin-right: 0.2rem; + margin-left: 0.2rem; +} .description-value { flex-grow: 0; flex-basis: 4rem; diff --git a/templates/actor-sheet-alchimie.html b/templates/actor-sheet-alchimie.html new file mode 100644 index 00000000..7a27fb7a --- /dev/null +++ b/templates/actor-sheet-alchimie.html @@ -0,0 +1,13 @@ +{{#if recettesAlchimiques.length}} +

Recettes Alchimiques

+ +{{/if}} \ No newline at end of file diff --git a/templates/actor-sheet-astrologie.html b/templates/actor-sheet-astrologie.html new file mode 100644 index 00000000..d5094e1e --- /dev/null +++ b/templates/actor-sheet-astrologie.html @@ -0,0 +1,2 @@ +

Astrologie

+Astrologie : Nombres Astraux diff --git a/templates/actor-sheet-blessures.html b/templates/actor-sheet-blessures.html index ec809d1f..b6853800 100644 --- a/templates/actor-sheet-blessures.html +++ b/templates/actor-sheet-blessures.html @@ -1,7 +1,6 @@ -

Blessures: