From a74ab041f9e71552f19c3ca48664b5c3189da681 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 4 May 2021 11:38:23 +0200 Subject: [PATCH 1/8] Utilisation templates partial --- module/rdd-utility.js | 2 + ...r-sheet-categorie-competences-partial.html | 8 ++ templates/actor-sheet-oeuvre-partial.html | 11 ++ templates/actor-sheet.html | 116 +++--------------- 4 files changed, 35 insertions(+), 102 deletions(-) create mode 100644 templates/actor-sheet-categorie-competences-partial.html create mode 100644 templates/actor-sheet-oeuvre-partial.html diff --git a/module/rdd-utility.js b/module/rdd-utility.js index c6123b52..6ebb0d6f 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -108,6 +108,8 @@ export class RdDUtility { 'systems/foundryvtt-reve-de-dragon/templates/actor-entite-sheet.html', 'systems/foundryvtt-reve-de-dragon/templates/actor-vehicule-sheet.html', '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-oeuvre-partial.html', 'systems/foundryvtt-reve-de-dragon/templates/actor-liste-blessures-partial.html', 'systems/foundryvtt-reve-de-dragon/templates/actor-blessure-partial.html', //Items diff --git a/templates/actor-sheet-categorie-competences-partial.html b/templates/actor-sheet-categorie-competences-partial.html new file mode 100644 index 00000000..a3fa8da9 --- /dev/null +++ b/templates/actor-sheet-categorie-competences-partial.html @@ -0,0 +1,8 @@ +
+ {{categorie}} +
+ diff --git a/templates/actor-sheet-oeuvre-partial.html b/templates/actor-sheet-oeuvre-partial.html new file mode 100644 index 00000000..4492568d --- /dev/null +++ b/templates/actor-sheet-oeuvre-partial.html @@ -0,0 +1,11 @@ +
  • + {{upperFirst typeOeuvre}} + + {{oeuvre.name}} (niveau {{oeuvre.data.niveau}}) + +
    + + +
    +
  • + diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index b4270533..5b96d32f 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -233,81 +233,18 @@
    - -
    - Compétences générales -
    -
      - {{#each competenceByCategory.generale as |comp key|}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-competence-partial.html" comp}} - {{/each}} -
    - -
    - Compétences Particulières -
    -
      - {{#each competenceByCategory.particuliere as |comp key|}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-competence-partial.html" comp}} - {{/each}} -
    - -
    - Compétences Spécialisées -
    -
      - {{#each competenceByCategory.specialisee as |comp key|}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-competence-partial.html" comp}} - {{/each}} -
    + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=competenceByCategory.generale categorie="Compétences générales"}} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=competenceByCategory.particuliere categorie="Compétences Particulières"}} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=competenceByCategory.specialisee categorie="Compétences Spécialisées"}}
    - +
    -
    - Compétences de Mêlée -
    -
      - {{#each competenceByCategory.melee as |comp key|}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-competence-partial.html" comp}} - {{/each}} -
    - -
    - Compétences de Tir -
    -
      - {{#each competenceByCategory.tir as |comp key|}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-competence-partial.html" comp}} - {{/each}} -
    - -
    - Compétences de Lancer -
    -
      - {{#each competenceByCategory.lancer as |comp key|}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-competence-partial.html" comp}} - {{/each}} -
    - -
    - Connaissances -
    -
      - {{#each competenceByCategory.connaissance as |comp key|}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-competence-partial.html" comp}} - {{/each}} -
    - + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=competenceByCategory.melee categorie="Compétences de Mêlée"}} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=competenceByCategory.tir categorie="Compétences de Tir"}} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=competenceByCategory.lancer categorie="Compétences de Lancer"}} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=competenceByCategory.connaissance categorie="Connaissances"}} {{#if data.attributs.hautrevant.value}} -
    - Draconic -
    -
      - {{#each competenceByCategory.draconic as |comp key|}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-competence-partial.html" comp}} - {{/each}} -
    + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-categorie-competences-partial.html" competences=competenceByCategory.draconic categorie="Draconic"}} {{/if}}
    @@ -384,44 +321,19 @@

    Oeuvres diverses :

    Créer une oeuvre
      {{#each chants as |chant id|}} -
    • Chant{{chant.name}} (niveau {{chant.data.niveau}}) -
      - - -
      -
    • + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-oeuvre-partial.html" oeuvre=chant typeOeuvre="Chant" classOeuvre="chant-label"}} {{/each}} {{#each musiques as |musique id|}} -
    • Musique{{musique.name}} (niveau {{musique.data.niveau}}) -
      - - -
      -
    • + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-oeuvre-partial.html" oeuvre=musique typeOeuvre="Musique" classOeuvre="musique-label"}} {{/each}} {{#each danses as |danse id|}} -
    • Danse{{danse.name}} (niveau {{danse.data.niveau}}) -
      - - -
      -
    • + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-oeuvre-partial.html" oeuvre=danse typeOeuvre="Danse" classOeuvre="danse-label"}} {{/each}} {{#each oeuvres as |oeuvre id|}} -
    • {{upperFirst oeuvre.data.competence}}{{oeuvre.name}} (niveau {{oeuvre.data.niveau}}) -
      - - -
      -
    • + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-oeuvre-partial.html" oeuvre=oeuvre typeOeuvre=oeuvre.data.competence classOeuvre="oeuvre-label"}} {{/each}} {{#each recettescuisine as |recette id|}} -
    • Recette de cuisine{{recette.name}} (niveau {{recette.data.niveau}}) -
      - - -
      -
    • + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-oeuvre-partial.html" oeuvre=recette typeOeuvre="Recette de cuisine" classOeuvre="recettecuisine-label"}} {{/each}}

    Jeux :

    From 8958377fdbe3daf1029cffc47b8b4808706bf5c0 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 4 May 2021 11:38:52 +0200 Subject: [PATCH 2/8] suppression code commentaire --- module/actor-sheet.js | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/module/actor-sheet.js b/module/actor-sheet.js index e29ca2f2..4b5b3512 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -35,49 +35,17 @@ export class RdDActorSheet extends ActorSheet { /* -------------------------------------------- */ async getData() { - // 0.8.0 const objectData = Misc.data(this.object); - // -------------- version 0.7.9 - // let formData = { - // cssClass: this.entity.owner ? "editable" : "locked", - // editable: this.isEditable, - // entity: duplicate(this.entity.data), - // limited: this.entity.limited, - // options: this.options, - // owner: this.entity.owner, - // title: this.title - // } - // // Entity data - // formData.actor = formData.entity; - // formData.data = formData.entity.data; - - // // Owned items - // formData.items = formData.actor.items; - // formData.items.sort((a, b) => (a.sort || 0) - (b.sort || 0)); - - // -------------- version 0.8.0 - - // // Copy and sort Items - // items.sort((a, b) => (a.sort || 0) - (b.sort || 0)); - // data.items = items; - - // // Copy Active Effects - // data.effects = effects; - //console.log("---- data"); - - // // Return template data let formData = { title: this.title, id: objectData.id, type: objectData.type, img: objectData.img, name: objectData.name, - // actor: this.object, editable: this.isEditable, cssClass: this.isEditable ? "editable" : "locked", data: foundry.utils.deepClone(Misc.templateData(this.object)), effects: this.object.effects.map(e => foundry.utils.deepClone(e.data)), - // items: items, limited: this.object.limited, options: this.options, owner: this.document.isOwner, From 6c783a713970ac2fb5f139c9da0eb4f46d7a0f21 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 4 May 2021 12:19:49 +0200 Subject: [PATCH 3/8] rename partial tpl actor-sheet --- module/rdd-utility.js | 8 ++++---- templates/actor-creature-sheet.html | 2 +- templates/actor-entite-sheet.html | 2 +- ...tor-notes-mj.html => actor-sheet-editor-notes-mj.html} | 0 ...nteneur.html => actor-sheet-inventaire-conteneur.html} | 0 templates/actor-sheet.html | 4 ++-- templates/actor-vehicule-sheet.html | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) rename templates/{editor-notes-mj.html => actor-sheet-editor-notes-mj.html} (100%) rename templates/{actor-inventaire-conteneur.html => actor-sheet-inventaire-conteneur.html} (100%) diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 6ebb0d6f..c4cb4ce9 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -112,6 +112,9 @@ export class RdDUtility { 'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-oeuvre-partial.html', 'systems/foundryvtt-reve-de-dragon/templates/actor-liste-blessures-partial.html', 'systems/foundryvtt-reve-de-dragon/templates/actor-blessure-partial.html', + // Conteneur/item in Actor sheet + 'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-inventaire-conteneur.html', + 'systems/foundryvtt-reve-de-dragon/templates/actor-sheet-editor-notes-mj.html', //Items 'systems/foundryvtt-reve-de-dragon/templates/item-competence-sheet.html', 'systems/foundryvtt-reve-de-dragon/templates/item-competencecreature-sheet.html', @@ -174,9 +177,6 @@ export class RdDUtility { 'systems/foundryvtt-reve-de-dragon/templates/calendar-template.html', 'systems/foundryvtt-reve-de-dragon/templates/calendar-editor-template.html', 'systems/foundryvtt-reve-de-dragon/templates/heures-select-option.html', - // Conteneur/item in Actor sheet - 'systems/foundryvtt-reve-de-dragon/templates/actor-inventaire-conteneur.html', - 'systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html', // HUD 'systems/foundryvtt-reve-de-dragon/templates/hud-actor-init.html', 'systems/foundryvtt-reve-de-dragon/templates/hud-actor-attaque.html', @@ -327,7 +327,7 @@ export class RdDUtility { if (!niveau) niveau = 1; objet.niveau = niveau; //console.log("OBJ:", objet); - let str = Handlebars.partials['systems/foundryvtt-reve-de-dragon/templates/actor-inventaire-conteneur.html']({ item: objet }); + let str = Handlebars.partials['systems/foundryvtt-reve-de-dragon/templates/actor-sheet-inventaire-conteneur.html']({ item: objet }); if (objet.type == 'conteneur') { //console.log("ITEM DISPLAYED", objet ); if (this.getAfficheContenu(objet._id)) { diff --git a/templates/actor-creature-sheet.html b/templates/actor-creature-sheet.html index bab20ee4..970649e7 100644 --- a/templates/actor-creature-sheet.html +++ b/templates/actor-creature-sheet.html @@ -183,7 +183,7 @@
    {{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
    - {{>"systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html"}} + {{>"systems/foundryvtt-reve-de-dragon/templates/actor-sheet-editor-notes-mj.html"}}
    diff --git a/templates/actor-entite-sheet.html b/templates/actor-entite-sheet.html index bd83477c..b8d253a4 100644 --- a/templates/actor-entite-sheet.html +++ b/templates/actor-entite-sheet.html @@ -97,7 +97,7 @@
    {{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
    - {{>"systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html"}} + {{>"systems/foundryvtt-reve-de-dragon/templates/actor-sheet-editor-notes-mj.html"}}
    diff --git a/templates/editor-notes-mj.html b/templates/actor-sheet-editor-notes-mj.html similarity index 100% rename from templates/editor-notes-mj.html rename to templates/actor-sheet-editor-notes-mj.html diff --git a/templates/actor-inventaire-conteneur.html b/templates/actor-sheet-inventaire-conteneur.html similarity index 100% rename from templates/actor-inventaire-conteneur.html rename to templates/actor-sheet-inventaire-conteneur.html diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 5b96d32f..98cdc20e 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -581,7 +581,7 @@ {{#each objets as |item id|}} {{#unless item.estContenu}} {{#if (ne item.type 'conteneur')}} - {{> "systems/foundryvtt-reve-de-dragon/templates/actor-inventaire-conteneur.html" item=item }} + {{> "systems/foundryvtt-reve-de-dragon/templates/actor-sheet-inventaire-conteneur.html" item=item }} {{/if}} {{/unless}} {{/each}} @@ -701,7 +701,7 @@
    {{editor content=data.notes target="data.notes" button=true owner=owner editable=editable}}
    - {{>"systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html"}} + {{>"systems/foundryvtt-reve-de-dragon/templates/actor-sheet-editor-notes-mj.html"}} diff --git a/templates/actor-vehicule-sheet.html b/templates/actor-vehicule-sheet.html index 33dd4ce0..d3018448 100644 --- a/templates/actor-vehicule-sheet.html +++ b/templates/actor-vehicule-sheet.html @@ -110,7 +110,7 @@
    {{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
    - {{>"systems/foundryvtt-reve-de-dragon/templates/editor-notes-mj.html"}} + {{>"systems/foundryvtt-reve-de-dragon/templates/actor-sheet-editor-notes-mj.html"}} From 42407eaa157b3ebdc5bc4a48f08c6132ff1aad41 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 4 May 2021 12:22:19 +0200 Subject: [PATCH 4/8] =?UTF-8?q?Am=C3=A9lioration=20Haut-r=C3=AAve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - affichage liste des sorts - sorts en réserve avec label de case et dépense de rêve - Demi-rêve affiché avec le nom de la case (ou le type) --- module/rdd-tmr-dialog.js | 2 +- module/rdd-tmr-rencontre-dialog.js | 2 +- module/rdd-utility.js | 3 + module/tmr-utility.js | 1 + module/tmr/pelerinage.js | 4 +- templates/actor-sheet.html | 135 ++++++++++++++--------------- 6 files changed, 72 insertions(+), 75 deletions(-) diff --git a/module/rdd-tmr-dialog.js b/module/rdd-tmr-dialog.js index 9c2bbb7a..bf5b309b 100644 --- a/module/rdd-tmr-dialog.js +++ b/module/rdd-tmr-dialog.js @@ -40,7 +40,7 @@ export class RdDTMRDialog extends Dialog { const dialogOptions = { classes: ["tmrdialog"], width: 920, height: 980, - 'z-index': 20 + 'z-index': 40 } super(dialogConf, dialogOptions); diff --git a/module/rdd-tmr-rencontre-dialog.js b/module/rdd-tmr-rencontre-dialog.js index 4c0b1fa8..75c43fce 100644 --- a/module/rdd-tmr-rencontre-dialog.js +++ b/module/rdd-tmr-rencontre-dialog.js @@ -20,7 +20,7 @@ export class RdDTMRRencontreDialog extends Dialog { const dialogOptions = { classes: ["tmrrencdialog"], width: 320, height: 240, - 'z-index': 20 + 'z-index': 50 } super(dialogConf, dialogOptions); diff --git a/module/rdd-utility.js b/module/rdd-utility.js index c4cb4ce9..332be836 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -4,6 +4,7 @@ import { ChatUtility } from "./chat-utility.js"; import { RdDCombat } from "./rdd-combat.js"; import { Misc } from "./misc.js"; import { Grammar } from "./grammar.js"; +import { TMRUtility } from "./tmr-utility.js"; /* -------------------------------------------- */ // This table starts at 0 -> niveau -10 @@ -210,6 +211,8 @@ export class RdDUtility { Handlebars.registerHelper('un', str => Grammar.articleIndetermine(str)); Handlebars.registerHelper('accord', (genre, ...args) => Grammar.accord(genre, args)); Handlebars.registerHelper('buildConteneur', (objet) => { return RdDUtility.buildConteneur(objet); }); + Handlebars.registerHelper('caseTmr-label', coord => TMRUtility.getTMRLabel(coord)); + Handlebars.registerHelper('caseTmr-type', coord => TMRUtility.getTMRType(coord)); return loadTemplates(templatePaths); } diff --git a/module/tmr-utility.js b/module/tmr-utility.js index 14efd5ac..566d45a7 100644 --- a/module/tmr-utility.js +++ b/module/tmr-utility.js @@ -1,5 +1,6 @@ import { TMRRencontres } from "./tmr-rencontres.js"; import { Misc } from "./misc.js"; +import { Grammar } from "./grammar.js"; /* -------------------------------------------- */ const TMRMapping = { diff --git a/module/tmr/pelerinage.js b/module/tmr/pelerinage.js index deb53cf9..d30c10b6 100644 --- a/module/tmr/pelerinage.js +++ b/module/tmr/pelerinage.js @@ -26,8 +26,8 @@ export class Pelerinage extends Draconique { return pixiTMR.sprite(this.code(), { zIndex: tmrTokenZIndex.conquete, alpha: 1, - taille: tmrConstants.twoThird, - decallage: tmrConstants.right + taille: tmrConstants.full, + decallage: tmrConstants.center }); } diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 98cdc20e..fdcd2367 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -384,14 +384,16 @@ {{/if}}
  • - Position en TMR : + Demi rêve : {{#if options.isGM}} + {{caseTmr-label data.reve.tmrpos.coord}} {{else}} {{#if hautreve.cacheTMR}} ?? {{else}} + {{caseTmr-label data.reve.tmrpos.coord}} {{data.reve.tmrpos.coord}} {{/if}} {{/if}} @@ -422,77 +424,43 @@
    {{#if data.attributs.hautrevant.value}} -
    -

    Sorts:

    -
      - {{#each sorts as |mysort key|}} -
    • - {{mysort.name}} - {{mysort.data.draconic}} / {{mysort.data.difficulte}} -
      - -
      -
    • - {{/each}} -
    -
    -
    -
    -

    Sorts en Réserve:

    -
      - {{#each hautreve.sortsReserve as |reserve key|}} -
    • - {{reserve.sort.name}} - {{reserve.coord}} -
    • - {{/each}} -
    -
    -
    -
    -

    Méditations:

    - -
    -
    -
    -

    Cases Spéciales:

    -
      - {{#each hautreve.casesTmr as |casetmr key|}} -
    • - {{casetmr.name}} -
      - -
      -
    • - {{/each}} -
    -
    -
    -
    -

    Rencontres présentes:

    - -
    +

    Sorts:

    +
      + {{#each sorts as |mysort key|}} +
    • + {{mysort.name}} + {{mysort.data.draconic}} / {{mysort.data.difficulte}} +
      + +
      +
    • + {{/each}} +
    + +

    Sorts en Réserve:

    +
      + {{#each hautreve.sortsReserve as |reserve key|}} +
    • + + {{reserve.sort.name}} - {{reserve.coord}} - {{caseTmr-label reserve.coord}} - r{{reserve.sort.data.ptreve_reel}} +
    • + {{/each}} +
    + +

    Méditations:

    +
    {{/if}} - {{!-- Queues, Souffles, Tetes, Ombre --}}

    Queues:

      @@ -538,7 +506,32 @@ {{/each}}
    - + {{#if data.attributs.hautrevant.value}} +
    +

    Rencontres présentes:

    + +
    +

    Cases Spéciales:

    +
      + {{#each hautreve.casesTmr as |casetmr key|}} +
    • + + + + {{casetmr.name}} +
    • + {{/each}} +
    + {{/if}} {{!-- Equipment Tab --}} From 8f9346b31cd5b9d44496e3195bdaadfa9187353e Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 4 May 2021 15:17:26 +0200 Subject: [PATCH 5/8] autoformat --- module/actor.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/module/actor.js b/module/actor.js index b4cdcccb..207907a7 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1210,13 +1210,13 @@ export class RdDActor extends Actor { } /* -------------------------------------------- */ - async cacheTMR( ) { + async cacheTMR() { await this.update({ 'data.reve.tmrpos.cache': true }); } - async montreTMR( ) { + async montreTMR() { await this.update({ 'data.reve.tmrpos.cache': false }); } - isTMRCache( ) { + isTMRCache() { return this.data.data.reve.tmrpos.cache; } /* -------------------------------------------- */ @@ -1307,7 +1307,7 @@ export class RdDActor extends Actor { async reveActuelIncDec(value) { let mydata = Misc.templateData(this); let reve = Math.max(mydata.reve.reve.value + value, 0); - await this.update( { "data.reve.reve.value": reve }); + await this.update({ "data.reve.reve.value": reve }); } /* -------------------------------------------- */ @@ -1670,7 +1670,7 @@ export class RdDActor extends Actor { if (rollEthylisme.isEchec) { await this._jetDeMoralEthylique(ethylisme); } - await this.update({'data.compteurs.ethylisme': ethylisme}); + await this.update({ 'data.compteurs.ethylisme': ethylisme }); } /* -------------------------------------------- */ @@ -2006,8 +2006,8 @@ export class RdDActor extends Actor { let draconicList = this.getDraconicList().map(d => duplicate(Misc.data(d))); for (let sort of sortList) { let draconicsSort = this.getDraconicsSort(draconicList, sort).map(it => it.name); - for (let index = 0; index < draconicList.length && sort.data.listIndex==undefined; index++){ - if (draconicsSort.includes(draconicList[index].name)){ + for (let index = 0; index < draconicList.length && sort.data.listIndex == undefined; index++) { + if (draconicsSort.includes(draconicList[index].name)) { sort.data.listIndex = index; } } @@ -2760,7 +2760,7 @@ export class RdDActor extends Actor { refreshTMRView(tmrData) { console.log("REFRESH !!!!"); if (this.currentTMR) { - this.currentTMR.externalRefresh( tmrData) + this.currentTMR.externalRefresh(tmrData) } } From d1802e7496dcfa945dbe11ffe5fab26c919ad0f0 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 4 May 2021 15:18:32 +0200 Subject: [PATCH 6/8] =?UTF-8?q?Lire=20un=20livre=20depuis=20l'=C3=A9quipem?= =?UTF-8?q?ent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/actor.js | 63 ++++++++++++++++++++++++++++++++----------------- module/item.js | 1 + 2 files changed, 43 insertions(+), 21 deletions(-) diff --git a/module/actor.js b/module/actor.js index 207907a7..c3503f82 100644 --- a/module/actor.js +++ b/module/actor.js @@ -289,8 +289,18 @@ export class RdDActor extends Actor { filterItemsData(filter) { return this.data.items.map(it => Misc.data(it)).filter(filter); } + filterItems(filter) { + return this.data.items.filter(it => filter(Misc.data(it))); + } getItemOfType(id, type) { - return id ? this.data.items.find(it => it.id == id && Misc.data(it).type == type) : undefined; + if (id && type) { + let itemById = this.data.items.find(it => it.id == id); + const itemData = Misc.data(itemById); + if (itemData.type == type) { + return itemById; + } + } + return undefined; } getMonnaie(id) { return this.getItemOfType(id, 'monnaie'); @@ -1697,6 +1707,7 @@ export class RdDActor extends Actor { switch (Misc.data(item).type) { case 'nourritureboisson': return await this.actionNourritureboisson(item); case 'potion': return await this.actionPotion(item); + case 'livre': return await this.actionLire(item); } } @@ -1708,6 +1719,12 @@ export class RdDActor extends Actor { async actionPotion(item) { return await this.consommerPotion(item) } + async actionLire(item) { + const tache = await this.creerTacheDepuisLivre(item, { renderSheet: false }); + if (tache) { + await this.rollTache(tache.id); + } + } /* -------------------------------------------- */ async consommer(item, choix) { @@ -2271,22 +2288,29 @@ export class RdDActor extends Actor { } /* -------------------------------------------- */ - async creerTacheDepuisLivre(item) { + async creerTacheDepuisLivre(item, options = { renderSheet: true }) { const itemData = Misc.data(item); - let tache = { - name: "Lire " + item.name, type: 'tache', - data: { - carac: 'intellect', - competence: 'Ecriture', - difficulte: itemData.data.difficulte, - periodicite: "60 minutes", - fatigue: 2, - points_de_tache: itemData.data.points_de_tache, - points_de_tache_courant: 0, - description: "Lecture du livre " + item.name + " - XP : " + itemData.data.xp + " - Compétences : " + itemData.data.competence + const nomTache = "Lire " + itemData.name; + const filterTacheLecture = it => it.type == 'tache' && it.name == nomTache; + let tachesExistantes = this.filterItems(filterTacheLecture); + if (tachesExistantes.length == 0) { + const tache = { + name: nomTache, type: 'tache', + data: { + carac: 'intellect', + competence: 'Ecriture', + difficulte: itemData.data.difficulte, + periodicite: "60 minutes", + fatigue: 2, + points_de_tache: itemData.data.points_de_tache, + points_de_tache_courant: 0, + description: "Lecture du livre " + item.name + " - XP : " + itemData.data.xp + " - Compétences : " + itemData.data.competence + } } + await this.createEmbeddedDocuments('Item', [tache], options); + tachesExistantes = this.filterItems(filterTacheLecture); } - await this.createEmbeddedDocuments('Item', [tache], { renderSheet: true }); + return tachesExistantes.length > 0 ? tachesExistantes[0] : undefined; } /* -------------------------------------------- */ @@ -2313,7 +2337,6 @@ export class RdDActor extends Actor { callbacks: [ this.createCallbackExperience(), this.createCallbackAppelAuMoral(), - { condition: r => r.rolled.isETotal, action: r => this._tacheETotal(r) }, { action: r => this._tacheResult(r) } ] }); @@ -2323,19 +2346,17 @@ export class RdDActor extends Actor { /* -------------------------------------------- */ async _tacheResult(rollData) { // Mise à jour de la tache + rollData.tache = duplicate(rollData.tache); rollData.tache.data.points_de_tache_courant += rollData.rolled.ptTache; + if (rollData.rolled.isETotal){ + rollData.tache.data.difficulte--; + } this.updateEmbeddedDocuments('Item', [rollData.tache]); this.santeIncDec("fatigue", rollData.tache.data.fatigue); RdDResolutionTable.displayRollData(rollData, this, 'chat-resultat-tache.html'); } - /* -------------------------------------------- */ - _tacheETotal(rollData) { - rollData.tache.data.difficulte--; - this.updateEmbeddedDocuments('Item', [rollData.tache]); - } - /* -------------------------------------------- */ async _rollArt(artData, selected, oeuvre, callBackResult = r => this._resultArt(r)) { const actorData = Misc.data(this); diff --git a/module/item.js b/module/item.js index 5259d4b5..cffc0737 100644 --- a/module/item.js +++ b/module/item.js @@ -95,6 +95,7 @@ export class RdDItem extends Item { switch (itemData.type) { case 'nourritureboisson': return itemData.data.boisson ? 'Boire' : 'Manger'; case 'potion': return 'Boire'; + case 'livre': return 'Lire'; } if (options.warnIfNot) { ui.notifications.warn(`Impossible d'utilise un ${itemData.name}, aucune action associée définie.`); From 74fc9a7af34a2d1f4a090427fbe7b05fe38678ae Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Tue, 4 May 2021 21:22:25 +0200 Subject: [PATCH 7/8] Fix HUD lists on 0.8.2 --- module/rdd-token-hud.js | 73 ++++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 37 deletions(-) diff --git a/module/rdd-token-hud.js b/module/rdd-token-hud.js index 21a651b7..8d46bd3d 100644 --- a/module/rdd-token-hud.js +++ b/module/rdd-token-hud.js @@ -7,49 +7,51 @@ import { RdDUtility } from "./rdd-utility.js"; /* -------------------------------------------- */ export class RdDTokenHud { - static init(){ - // Integration du TokenHUD + static init() { + // Integration du TokenHUD Hooks.on('renderTokenHUD', (app, html, data) => { RdDTokenHud.addTokenHudExtensions(app, html, data._id) }); } /* -------------------------------------------- */ - static async removeExtensionHud( app, html, tokenId) { - let combat = html.find('.control-icon.rdd-combat'); - combat.remove(); - let initiative = html.find('.control-icon.rdd-initiative'); - initiative.remove(); + static async removeExtensionHud(app, html, tokenId) { + html.find('.control-icon.rdd-combat').remove(); + html.find('.control-icon.rdd-initiative').remove(); } /* -------------------------------------------- */ - static async addExtensionHud( app, html, tokenId ) { + static async addExtensionHud(app, html, tokenId) { let token = canvas.tokens.get(tokenId); let actor = token.actor; let combatant = game.combat.combatants.find(c => Misc.data(c).tokenId == tokenId); app.hasExtension = true; - let armesList = RdDCombatManager.buildListeActionsCombat(combatant) ; - const hudData = { combatant: combatant, armes: armesList, - commandes: [{ name: 'Initiative +1', command: 'inc', value: 0.01}, { name: 'Initiative -1',command: 'dec', value: -0.01}] }; + let armesList = RdDCombatManager.buildListeActionsCombat(combatant); + const hudData = { + combatant: combatant, armes: armesList, + commandes: [{ name: 'Initiative +1', command: 'inc', value: 0.01 }, { name: 'Initiative -1', command: 'dec', value: -0.01 }] + }; + const controlIconCombat = html.find('.control-icon[data-action=combat]'); // initiative - await RdDTokenHud._configureSubMenu(html.find('.control-icon.combat'), 'systems/foundryvtt-reve-de-dragon/templates/hud-actor-init.html', hudData, + await RdDTokenHud._configureSubMenu(controlIconCombat, 'systems/foundryvtt-reve-de-dragon/templates/hud-actor-init.html', hudData, (event) => { let initCommand = event.currentTarget.attributes['data-command'].value; let combatantId = event.currentTarget.attributes['data-combatant-id'].value; - if ( !initCommand ) { + if (!initCommand) { let armeIndex = event.currentTarget.attributes['data-arme-id'].value; let arme = armesList[armeIndex]; - RdDCombatManager.rollInitiativeCompetence(combatantId, arme); + RdDCombatManager.rollInitiativeCompetence(combatantId, arme); } else if (initCommand == 'inc') { - RdDCombatManager.incDecInit( combatantId, 0.01 ); - } else if ( initCommand == 'dec') { - RdDCombatManager.incDecInit( combatantId, -0.01 ); + RdDCombatManager.incDecInit(combatantId, 0.01); + } else if (initCommand == 'dec') { + RdDCombatManager.incDecInit(combatantId, -0.01); } }); + const controlIconTarget = html.find('.control-icon[data-action=target]'); // combat - await RdDTokenHud._configureSubMenu(html.find('.control-icon.target'), 'systems/foundryvtt-reve-de-dragon/templates/hud-actor-attaque.html', hudData, + await RdDTokenHud._configureSubMenu(controlIconTarget, 'systems/foundryvtt-reve-de-dragon/templates/hud-actor-attaque.html', hudData, (event) => { let armeIndex = event.currentTarget.attributes['data-arme-id'].value; let arme = armesList[armeIndex]; @@ -59,38 +61,35 @@ export class RdDTokenHud { /* -------------------------------------------- */ static async addTokenHudExtensions(app, html, tokenId) { - - html.find('.control-icon.combat').click(event => { - if ( event.currentTarget.className.includes('active')) { - RdDTokenHud.removeExtensionHud( app, html, tokenId); + const controlIconCombat = html.find('.control-icon[data-action=combat]'); + controlIconCombat.click(event => { + if (event.currentTarget.className.includes('active')) { + RdDTokenHud.removeExtensionHud(app, html, tokenId); } else { - setTimeout( function() { RdDTokenHud.addExtensionHud( app, html, tokenId) } , 200 ); + setTimeout(function () { RdDTokenHud.addExtensionHud(app, html, tokenId) }, 200); } - } ); + }); - let combatIcon = html.find('.control-icon.combat'); - if ( combatIcon[0].className.includes('active') ) { - RdDTokenHud.addExtensionHud( app, html, tokenId); + if (controlIconCombat.length>0 && controlIconCombat[0].className.includes('active')) { + RdDTokenHud.addExtensionHud(app, html, tokenId); } } /* -------------------------------------------- */ static async _configureSubMenu(insertionPoint, template, hudData, onMenuItem) { const hud = $(await renderTemplate(template, hudData)); - const imgHud = hud.find('img.rdd-hud-togglebutton'); const list = hud.find('div.rdd-hud-list'); - - hud.toggleClass('active'); - HtmlUtility._showControlWhen(list, hud.hasClass('active')); - - imgHud.click(event => { - hud.toggleClass('active'); - HtmlUtility._showControlWhen(list, hud.hasClass('active')); - }); - + + RdDTokenHud._toggleHudListActive(hud, list); + + hud.find('img.rdd-hud-togglebutton').click(event => RdDTokenHud._toggleHudListActive(hud, list)); list.find('.rdd-hud-menu').click(onMenuItem); insertionPoint.after(hud); } + static _toggleHudListActive(hud, list) { + hud.toggleClass('active'); + HtmlUtility._showControlWhen(list, hud.hasClass('active')); + } } \ No newline at end of file From c46e92e8f5bca3483ac48e5169e2b965fb067f2b Mon Sep 17 00:00:00 2001 From: raphaelpieroni Date: Thu, 6 May 2021 00:40:56 +0200 Subject: [PATCH 8/8] Add materiel de base for character creation --- packs/materiel-de-base.db | 1 + system.json | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 packs/materiel-de-base.db diff --git a/packs/materiel-de-base.db b/packs/materiel-de-base.db new file mode 100644 index 00000000..2e2828e7 --- /dev/null +++ b/packs/materiel-de-base.db @@ -0,0 +1 @@ +{"_id":"jYa4PYzcTRpxDx0H","name":"Matériel de base","content":"

    Vêtements

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.2y61gBIFbATQaKDl]{1 m2 de laine}0,210d
    @Compendium[foundryvtt-reve-de-dragon.equipement.jyBy6mDAGvJb9k0l]{1 m2 de lin}-15d
    @Compendium[foundryvtt-reve-de-dragon.equipement.lq7pjDQESNbZOQ3n]{1 m2 de soie }-3s
    @Compendium[foundryvtt-reve-de-dragon.equipement.lq7pjDQESNbZOQ3n]{1 m2 de velours}-3s
    @Compendium[foundryvtt-reve-de-dragon.equipement.HsIJSPQ46cec22Y2]{Couverture de laine}0,630d
    Pourpoint de cuir souple0,32s
    Pourpoint de drap matelassé0,21s
    @Compendium[foundryvtt-reve-de-dragon.equipement.lJMKVPB5zlG9UqMD]{Pourpoint de velours}0,28s
    Cotte de cuir souple0,42s
    Cotte de drap matelassé0,31s
    Cotte de laine0,130d
    Culottes de cuir souple0,22s
    Culottes de drap matelassé0,12s
    Culottes de laine0,120d
    @Compendium[foundryvtt-reve-de-dragon.equipement.4qoLpa4shvkgDZRy]{Culottes de velours}0,26s
    @Compendium[foundryvtt-reve-de-dragon.equipement.wpWaqe96x3cvqTXy]{Robe de laine}0,240d
    @Compendium[foundryvtt-reve-de-dragon.equipement.gfU7oZL1JYqF3lAW]{Robe de lin}0,160d
    @Compendium[foundryvtt-reve-de-dragon.equipement.PuuPn6WGfU8uBAyb]{Robe de soie}-10s
    @Compendium[foundryvtt-reve-de-dragon.equipement.jHxnzdBSVzr7Z7wH]{Robe de velours}0,310s
    @Compendium[foundryvtt-reve-de-dragon.equipement.xuk60njqtrSZusSX]{Chemise de laine}0,120d
    @Compendium[foundryvtt-reve-de-dragon.equipement.cobfvOmFpti5lJuK]{Chemise de lin}-30d
    @Compendium[foundryvtt-reve-de-dragon.equipement.a3Wj2WNKFrzqRGVG]{Chemise de soie}-6s
    @Compendium[foundryvtt-reve-de-dragon.equipement.qWhl9EfdnJx4KFTZ]{Bas de laine}-10d
    @Compendium[foundryvtt-reve-de-dragon.equipement.Sm28dG9isppoQzPQ]{Bas de lin}-30d
    @Compendium[foundryvtt-reve-de-dragon.equipement.GiquTnEsiVZn7m6Y]{Bas de soie}-3s
    @Compendium[foundryvtt-reve-de-dragon.equipement.YNbbSGLnexiXNyXU]{Manteau de laine}0,860d
    @Compendium[foundryvtt-reve-de-dragon.equipement.A9nMgTyEwYzdA0zT]{Manteau de velours}110s
    @Compendium[foundryvtt-reve-de-dragon.equipement.GAJIShPe7WugrIVO]{Manteau de fourrure}110s
    @Compendium[foundryvtt-reve-de-dragon.equipement.0Vgscex1VV4ybSUQ]{Bonnet de laine}-6d
    @Compendium[foundryvtt-reve-de-dragon.equipement.qCLTOjlIOvlj0uo7]{Chaperon de laine}0,120d
    @Compendium[foundryvtt-reve-de-dragon.equipement.SsnGNjTekvB50uWa]{Chapeau de cuir souple}-50d
    @Compendium[foundryvtt-reve-de-dragon.equipement.OXFFRZOqlhZDJas3]{Béret de velours}-3s
    @Compendium[foundryvtt-reve-de-dragon.equipement.Z0ij7qpoYeWMVocP]{Ceinturon de cuir}0,150d
    @Compendium[foundryvtt-reve-de-dragon.equipement.wcW5KcideGi8EY67]{Gants de cuir}-1s
    @Compendium[foundryvtt-reve-de-dragon.equipement.B2BhuxveVKMnD8fe]{Bottes de cuir souple}0,42s
    @Compendium[foundryvtt-reve-de-dragon.equipement.tZWQCuRr1ic3S0pL]{Souliers}0,280d
    @Compendium[foundryvtt-reve-de-dragon.equipement.CMtQM06J3BZsHHxH]{Sandales}0,130d
    \n

    Contenants

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.XlKp5BvZX8A03fUg]{Sac à dos de cuir}0,41s
    @Compendium[foundryvtt-reve-de-dragon.equipement.yO9Vx7tqF8qbZoYw]{Besace de cuir}0,250d
    @Compendium[foundryvtt-reve-de-dragon.equipement.zlDa1vwmls6Uf4pt]{Bourse de cuir}-10d
    @Compendium[foundryvtt-reve-de-dragon.equipement.UczsYTAoP9koA2SL]{Bourse, sachet de tissu}-5d
    @Compendium[foundryvtt-reve-de-dragon.equipement.iCvphbPdxUcfqetd]{Aumônière}0,120d
    @Compendium[foundryvtt-reve-de-dragon.equipement.tBFt4h3jqINsOxLI]{Outre (2 litres)}-20d
    @Compendium[foundryvtt-reve-de-dragon.equipement.of2LbmmB4EtlSwte]{Sac en jute (50 litres)}0,18d
    @Compendium[foundryvtt-reve-de-dragon.equipement.JhQZDbsmFZBLRcln]{Sac en jute (20 litres)}-4d
    @Compendium[foundryvtt-reve-de-dragon.equipement.Flx5inKGs1GQKoYq]{Tube à parchemins}0,150d
    @Compendium[foundryvtt-reve-de-dragon.equipement.As5kYvyOrWrr8KJm]{Etui à luth de cuir}0,21s
    @Compendium[foundryvtt-reve-de-dragon.equipement.gYFprGGUUVG1Apcf]{Carquois}0,150d
    @Compendium[foundryvtt-reve-de-dragon.equipement.snupUovwaPAe46aD]{Fiole en grès (20 cl)}0,110d
    @Compendium[foundryvtt-reve-de-dragon.equipement.RWYaq8tnpgrkh5ED]{Flacon de grès (40 cl)}0,215d
    @Compendium[foundryvtt-reve-de-dragon.equipement.PkDJ36j7mS3Kfetp]{Bouteille de grès (1 litre)}0,340d
    @Compendium[foundryvtt-reve-de-dragon.equipement.XoslLyWIJYY2RGzz]{Fiole de verre (20 cl)}-20d
    @Compendium[foundryvtt-reve-de-dragon.equipement.sXoStuW19r9zVi1S]{Flacon de verre (40 cl)}0,130d
    @Compendium[foundryvtt-reve-de-dragon.equipement.NNLhxjFsoJVdFuit]{Bouteille de verre (1 litre)}0,270d
    @Compendium[foundryvtt-reve-de-dragon.equipement.WC1jMDKcxEJQWGOR]{Burette de fer blanc (40 cl)}0,250d
    \n

    Cuisine

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.5GOk9cMApM4dBcIU]{Casserole de fer (1 litre)}0,230d
    @Compendium[foundryvtt-reve-de-dragon.equipement.hjsIxUmanyz5otLJ]{Marmite de fer (3 litres)}0,660d
    @Compendium[foundryvtt-reve-de-dragon.equipement.jKWA5NjsjH0kIZzK]{Chaudron de fer (5 litres)}11s
    @Compendium[foundryvtt-reve-de-dragon.equipement.K4n2JuDnoHDUPCZG]{Bouilloire de fer (2 litres)}0,550d
    @Compendium[foundryvtt-reve-de-dragon.equipement.InTxnjInfBYHsqcR]{Poêle à frire (40 cm)}0,350d
    @Compendium[foundryvtt-reve-de-dragon.equipement.P0yc6QfgKVmM0fpu]{Ecuelle de grès}0,110d
    @Compendium[foundryvtt-reve-de-dragon.equipement.RNxCQWMDy06uQ8uj]{Ecuelle de fer}0,115d
    @Compendium[foundryvtt-reve-de-dragon.equipement.Reqo8GC9p7GI9k9N]{Chope de grès (20 cl)}0,110d
    @Compendium[foundryvtt-reve-de-dragon.equipement.UYXXggulNwnodaOt]{Chope de fer (20 cl)}-15d
    @Compendium[foundryvtt-reve-de-dragon.equipement.SrV0r5hnGdKeSIHR]{Cuillère de bois}-3d
    @Compendium[foundryvtt-reve-de-dragon.equipement.65SRmXVcyiG5ZW9l]{Cuillère de fer}-10d
    @Compendium[foundryvtt-reve-de-dragon.equipement.BQPhNy9AUCpEGgFg]{Couteau de cuisine}0,21s
    @Compendium[foundryvtt-reve-de-dragon.equipement.4qPaCKONcrsK6JbQ]{Pichet de grès (1 litre)}0,330d
    @Compendium[foundryvtt-reve-de-dragon.equipement.7YuWWsFIuZgakGUS]{Mortier en marbre}0,320d
    @Compendium[foundryvtt-reve-de-dragon.equipement.dBR6KXvfmjjIcwsc]{Pilon en marbre}0,120d
    @Compendium[foundryvtt-reve-de-dragon.equipement.6MVWA3DYbpw8122A]{Entonnoir de fer}0,115d
    @Compendium[foundryvtt-reve-de-dragon.equipement.uwwunMSrJoUYTDkG]{Seau de bois ferré (10 litres)}120d
    @Compendium[foundryvtt-reve-de-dragon.equipement.nBhYyPbRwcWswiyC]{Tonnelet (10 litres)}125d
    \n

    Cordage & Toile

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.8bwP6zncdFP0O9ew]{Corde (10 m)}130d
    @Compendium[foundryvtt-reve-de-dragon.equipement.nl9cICrauIOEXwFP]{Cordelette (10 m)}0,220d
    @Compendium[foundryvtt-reve-de-dragon.equipement.ueBk3MbdEaMbzyPS]{Ficelle (10 m)}-10d
    @Compendium[foundryvtt-reve-de-dragon.equipement.Eospy1EFNlhgOyXc]{Lacet de cuir (1 m)}-6d
    @Compendium[foundryvtt-reve-de-dragon.equipement.j9WpAl1SwHEovg3b]{Tresse de crin}-10d
    @Compendium[foundryvtt-reve-de-dragon.equipement.TY6Ft8a6WfxD6pD9]{Bobineau de fil}-10d
    @Compendium[foundryvtt-reve-de-dragon.equipement.iuSOVPBsK8Zg6hoY]{1 m² de bâche}0,520 d
    @Compendium[foundryvtt-reve-de-dragon.equipement.Gp9ZrwXkqZbJoVVT]{1 m² de toile de voile}0,210d
    \n

    Feu & Lumière

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.M1RgJDuQUvxjqJVV]{Chandelle de suif (1 heure)}0,12d
    @Compendium[foundryvtt-reve-de-dragon.equipement.ckKnviu9SHvWgya0]{Bougie de cire (2 heures)}0,15d
    @Compendium[foundryvtt-reve-de-dragon.equipement.JfxFBlokIegRWTDo]{Torche 1/2 heure (60 min)}0,32d
    @Compendium[foundryvtt-reve-de-dragon.equipement.xfdeDEyMK8YtBpzC]{Huile 20 cl (4 heures)}0,14d
    @Compendium[foundryvtt-reve-de-dragon.equipement.LaAP5tsP1Sc43hKO]{Lanterne à huile}-5s
    @Compendium[foundryvtt-reve-de-dragon.equipement.m9yuZjp9DK7pSqPK]{Lanterne à bougie}13s
    @Compendium[foundryvtt-reve-de-dragon.equipement.4LFXefT0HFpaXQLx]{Briquet à silex}-40d
    @Compendium[foundryvtt-reve-de-dragon.equipement.3t0NhMC0cFQyCZGH]{Soufflet}0,240d
    @Compendium[foundryvtt-reve-de-dragon.equipement.Uxk2tvEqtrmYScjK]{Pot à braise}0,120d
    @Compendium[foundryvtt-reve-de-dragon.equipement.UICiMF3wBeLsqm8L]{Pipe en bois}-10d
    @Compendium[foundryvtt-reve-de-dragon.equipement.PH2J4zR0hwXSg0vc]{Charbon de bois 1 kg}0,56d
    \n

    Outillage

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.WTWXZeoK5HpCrGFy]{Hachette}14s
    @Compendium[foundryvtt-reve-de-dragon.equipement.CQSxJv1mgmIeMCbM]{Grappin}0,52s
    @Compendium[foundryvtt-reve-de-dragon.equipement.Ig9qIzaZ5SveXLF7]{Pelle}11s
    @Compendium[foundryvtt-reve-de-dragon.equipement.tMWzePiuMtiCQnAU]{Marteau}0,31s
    @Compendium[foundryvtt-reve-de-dragon.equipement.3uWCDH1NOjHJpVo1]{Maillet}0,15d
    @Compendium[foundryvtt-reve-de-dragon.equipement.cVZbnh5cYxBx6P5b]{Burin, gouge, ciseau}0,130d
    @Compendium[foundryvtt-reve-de-dragon.equipement.Lz4dA2NwxdSZ3FZK]{Lime, Râpe}0,250d
    @Compendium[foundryvtt-reve-de-dragon.equipement.7c7CO626TCo4lg8b]{Petite scie cadre}16s
    @Compendium[foundryvtt-reve-de-dragon.equipement.F6ZHJth4t0PA5PMB]{Alêne, poinçon}-10d
    @Compendium[foundryvtt-reve-de-dragon.equipement.RKr1ZhTvC6poiNa1]{Gros Clou}0,15d
    @Compendium[foundryvtt-reve-de-dragon.equipement.zQWlnUsd8bPySujd]{Aiguille à coudre}-10d
    @Compendium[foundryvtt-reve-de-dragon.equipement.PaJoTirnA6h4F3pH]{Hameçon}-10d
    @Compendium[foundryvtt-reve-de-dragon.equipement.AOQsKTjIbcy8NV9t]{Pierre à aiguiser}0,230d
    @Compendium[foundryvtt-reve-de-dragon.equipement.nPczxZ7yylpmGSyO]{Crochet de serrurier}0,23s
    @Compendium[foundryvtt-reve-de-dragon.equipement.fAzYb7kkW6QxG6i6]{Graisse à Bottes 500g}0,25d
    @Compendium[foundryvtt-reve-de-dragon.equipement.XTZVrcMNofAviP63]{Cire d'abeille 500g}0,215d
    \n

    Soins

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.orpj8CumQ39xMOHy]{Brosse à cheveux}-1s
    @Compendium[foundryvtt-reve-de-dragon.equipement.UDmq6CY3NsttcHe4]{Peigne en corne}-40d
    @Compendium[foundryvtt-reve-de-dragon.equipement.gmBC6SO3F5d64Vpl]{Miroir en cuivre poli 20 cm}0,21s
    @Compendium[foundryvtt-reve-de-dragon.equipement.x4g6bDu3eUllSSSJ]{Eponge de mer}-1s
    @Compendium[foundryvtt-reve-de-dragon.equipement.lKkYFkzWVs2TZDZP]{Petit pot de fard}-30d
    @Compendium[foundryvtt-reve-de-dragon.equipement.RyW0z9Y5UeZSYjFZ]{Savon 500g}0,220d
    @Compendium[foundryvtt-reve-de-dragon.equipement.HjbB4f1CDz96Hv88]{Rasoir}0,12s
    @Compendium[foundryvtt-reve-de-dragon.equipement.7u9yAlaFhKcVdEC6]{Matériel de chirurgie}-1s
    \n

    Écrire

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.n2HMv0xv0MFpuiKp]{Parchemin 1 feuille}-20d
    @Compendium[foundryvtt-reve-de-dragon.equipement.XwuLVGasPJXzvC09]{Encre 20 cl}0,110d
    @Compendium[foundryvtt-reve-de-dragon.equipement.hEPimS3H8jihDuUS]{Crayon à mine de plomb}-30d
    @Compendium[foundryvtt-reve-de-dragon.equipement.FaNRC7YQzibSdqZU]{Plume de fer}-10d
    @Compendium[foundryvtt-reve-de-dragon.equipement.sSgPT3aKDOZ25svO]{Porte plume en bois}-5d
    @Compendium[foundryvtt-reve-de-dragon.equipement.yILNvELKbsz2OOln]{Ecritoire}11s
    @Compendium[foundryvtt-reve-de-dragon.equipement.KlydiUbayqBgJB6J]{Tablette de cire}0,120d
    @Compendium[foundryvtt-reve-de-dragon.equipement.ueJnUMLK1vpL8xOB]{Stylet de bronze}-12d
    @Compendium[foundryvtt-reve-de-dragon.equipement.skTWp8PUgIG2U2ne]{Cire à cacheter}-20d
    @Compendium[foundryvtt-reve-de-dragon.equipement.VsjRwh9Z9PMpFKdI]{Craie 1 bâton}-1d
    @Compendium[foundryvtt-reve-de-dragon.equipement.jZMfiBnBXwW91drM]{Sablier 15 minutes}0,12s
    @Compendium[foundryvtt-reve-de-dragon.equipement.tswamwK2oKNARhjA]{Verre grossissant}-2s
    @Compendium[foundryvtt-reve-de-dragon.equipement.RSni2r8jLccvkc9i]{Cristal alchimique}-4s
    \n

    Jouer

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.beQ9d4QQwZDQl5NA]{Flûte à bec}-1s
    @Compendium[foundryvtt-reve-de-dragon.equipement.iq8ZZgphxOUgC1bi]{Flûte traversière de roseau}-12d
    @Compendium[foundryvtt-reve-de-dragon.equipement.bgkEBYUEFLvAaeVf]{Luth, viole}17s
    @Compendium[foundryvtt-reve-de-dragon.equipement.Mbh2M8JS1Rf0vxEX]{Harpe}15s
    @Compendium[foundryvtt-reve-de-dragon.equipement.SZyBQbInuUGASlGb]{Tambourin}0,150d
    @Compendium[foundryvtt-reve-de-dragon.equipement.nqMyaOqBfTxdP9tg]{Cor en corne}0,160d
    @Compendium[foundryvtt-reve-de-dragon.equipement.3DJePXhrDWQxbUeM]{Dé à jouer en os}-10d
    @Compendium[foundryvtt-reve-de-dragon.equipement.Yyn39VDRnO6oA3Uq]{Echecs draconics en bois}0,52s
    @Compendium[foundryvtt-reve-de-dragon.equipement.1Dc4KzZageae7lhI]{Balles de jongleur (4 balles)}0,132d
    \n

    Écurie

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.animaux.76I21ASdWYBqsg8I]{Cheval de selle}-40s
    @Compendium[foundryvtt-reve-de-dragon.animaux.76I21ASdWYBqsg8I]{Cheval de trait}-30s
    @Compendium[foundryvtt-reve-de-dragon.animaux.i7pvn7kgTwIdKYtP]{Mule}-15s
    Âne-8s
    @Compendium[foundryvtt-reve-de-dragon.animaux.Igt8XPaL7NQrGYlq]{Aligate}-20s
    @Compendium[foundryvtt-reve-de-dragon.animaux.31XA4x5Yk04TGUHR]{Zyglute}-15s
    @Compendium[foundryvtt-reve-de-dragon.equipement.phfgVizT4ekUwqFq]{Selle et harnais}-5s
    @Compendium[foundryvtt-reve-de-dragon.vehicules.TDpSn7GawJ1LCHp7]{Charrette 2 roues}-20s
    @Compendium[foundryvtt-reve-de-dragon.vehicules.idyDmDWYpQ4Eppen]{Chariot 4 roues}-30s
    \n

    Sustentation

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.PAqV7Fj8AFEpfEpy]{Provisions non-cuites 1 sust}0,11d
    @Compendium[foundryvtt-reve-de-dragon.equipement.1keQMXTZ2iriOuJh]{Provisions cuites1 sust}0,12d
    @Compendium[foundryvtt-reve-de-dragon.equipement.q5zaNnlmNZZChi31]{Miel}0,140d
    @Compendium[foundryvtt-reve-de-dragon.equipement.tn1kvxEVoLyYODyg]{Repas moyen à l'auberge 3 sust}0,310d
    @Compendium[foundryvtt-reve-de-dragon.equipement.tY3shj5FA8nwMgxX]{Vin F 2}0,11d
    @Compendium[foundryvtt-reve-de-dragon.equipement.YHPrUuGGGTGZMNAg]{Bière F 1}0,11d
    @Compendium[foundryvtt-reve-de-dragon.equipement.ZaAKf4n8mtevbMM0]{Hydromel F 4}0,14d
    @Compendium[foundryvtt-reve-de-dragon.equipement.fOfVLKBacNEsDBn1]{Brandevin F 5}0,110d
    @Compendium[foundryvtt-reve-de-dragon.equipement.jchAu828fr8TLtwi]{Lait}0,11d
    @Compendium[foundryvtt-reve-de-dragon.equipement.iss7ARW8oRoe1umi]{Eau}0,1-
    \n

    Herbes de soin

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.botanique.57FoMF6mBK2ogX53]{Fausse suppure}-2d
    @Compendium[foundryvtt-reve-de-dragon.botanique.9XJEICURxX1qVud6]{Suppure}-3d
    @Compendium[foundryvtt-reve-de-dragon.botanique.nuOClbQwu6SLucJn]{Méritoine}-6d
    @Compendium[foundryvtt-reve-de-dragon.botanique.ckBk9H7jhFQC2IRX]{Ortigal}-10d
    @Compendium[foundryvtt-reve-de-dragon.botanique.Z20wqDHmbgFQSyXo]{Ortigal noir}-20d
    @Compendium[foundryvtt-reve-de-dragon.botanique.vnq7HONrBm90g2gY]{Bélidane}-30d
    @Compendium[foundryvtt-reve-de-dragon.botanique.q6DoYNlSp6SEr5hj]{Faux murus}-40d
    @Compendium[foundryvtt-reve-de-dragon.botanique.jjVl1PTFgTGdIfZf]{Murus}-60d
    @Compendium[foundryvtt-reve-de-dragon.botanique.jqUrbSHwFr5kPW3q]{Tanemiel}-90d
    @Compendium[foundryvtt-reve-de-dragon.botanique.7RgTRB47YPH74BwF]{Tanemiel doré}-2s
    \n

    Herbes de repos

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.botanique.l5G3NrS8USofuBK8]{Sajutte}-2d
    @Compendium[foundryvtt-reve-de-dragon.botanique.XVfDwjgzbRvotbP8]{Aigronce}-4d
    @Compendium[foundryvtt-reve-de-dragon.botanique.rXGa2Mx1ttMETTXo]{Ortigal rose}-10d
    @Compendium[foundryvtt-reve-de-dragon.botanique.VGId76yXwx2k0Cli]{Endebrume}-20d
    @Compendium[foundryvtt-reve-de-dragon.botanique.3Idia6bqLgdtiswS]{Tanemiel d'argent}-50d
    \n

    Herbes diverses

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.botanique.x4wGXTdmrzaOn8Sh]{Herbe de lune (7 brins)}-1s x qualité
    @Compendium[foundryvtt-reve-de-dragon.botanique.k1l253yvSebgc7Xq]{Mercurion}-2d
    @Compendium[foundryvtt-reve-de-dragon.botanique.bBiHuMCom4B4nXBD]{Satum}-3d
    @Compendium[foundryvtt-reve-de-dragon.botanique.chm4mCNhQXwJEtNy]{Névropenthe}-6d
    @Compendium[foundryvtt-reve-de-dragon.botanique.c6Gdd4A0QCTEnp6o]{Chronophile 3 brins}-60d
    Herbe à pipe 1 dose-1d
    \n

    Remèdes & antidotes

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.9cLkTDugz84gpHUB]{Bitume de Camphre}0,12s
    @Compendium[foundryvtt-reve-de-dragon.equipement.kFUh4027jnAdqbyK]{Gelée royale}0,120d
    @Compendium[foundryvtt-reve-de-dragon.equipement.4GeV81qoJrjHIgzR]{Tournegraisse}0,12s
    @Compendium[foundryvtt-reve-de-dragon.equipement.OYWzXiQUFsjU5AF2]{Perles de Bjwal}0,11s
    @Compendium[foundryvtt-reve-de-dragon.equipement.ElweMV283IUpqaik]{Sable-Poudre}0,12s
    @Compendium[foundryvtt-reve-de-dragon.equipement.FH3mSvdebfhIL2Af]{Topazoïne}0,12s
    @Compendium[foundryvtt-reve-de-dragon.equipement.JXMef7FXVOG1XYWO]{Élixir des gnomes}0,11s
    @Compendium[foundryvtt-reve-de-dragon.equipement.A3jx5dPkk5IeXSXn]{Lait de lune}0,11s
    @Compendium[foundryvtt-reve-de-dragon.equipement.PrnJrG50u1UPdlJN]{Liqueur de Bagdol}0,150d
    @Compendium[foundryvtt-reve-de-dragon.equipement.keLCmhsbxHK39UIy]{Mirobolant}0,12s
    @Compendium[foundryvtt-reve-de-dragon.equipement.bA0JDA7awoWhu0vO]{Teinture d'Érozonne}0,12s
    @Compendium[foundryvtt-reve-de-dragon.equipement.LkE8EjPfao9m6Rn7]{Huile de Sélikanthe}0,11s
    \n

    Sels alchimiques

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.bxDITKRhXiyvLhMz]{Candique}-2d
    @Compendium[foundryvtt-reve-de-dragon.equipement.0ylGrNMzulUaKFP9]{Boralm}-3d
    @Compendium[foundryvtt-reve-de-dragon.equipement.D5Z3FaUv91B8eCOP]{Obyssum vert}-5d
    @Compendium[foundryvtt-reve-de-dragon.equipement.nIOEB0PpMaACqD65]{Obyssum gris}-10d
    @Compendium[foundryvtt-reve-de-dragon.equipement.69vN8bRlnCrRHQCm]{Obbadion}-20d
    @Compendium[foundryvtt-reve-de-dragon.equipement.3mHSocNVPyWkmGBR]{Nartha}-40d
    @Compendium[foundryvtt-reve-de-dragon.equipement.ncpONCxPPNZ9YbBr]{Chramaelium}-50d
    \n

    Armes de mêlée

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.NCp2kdTKmQGyAh1U]{Dague}0,53s
    @Compendium[foundryvtt-reve-de-dragon.equipement.HdciYu5J2SrJO8e3]{Épée gnome}112s
    @Compendium[foundryvtt-reve-de-dragon.equipement.UsyV9n0byCeYirNC]{Esparlongue}1,520s
    @Compendium[foundryvtt-reve-de-dragon.equipement.wPE64RRcuLlvuPrY]{Épée cyane}225s
    @Compendium[foundryvtt-reve-de-dragon.equipement.dLiMJO6aUkh0EuIZ]{Épée dragonne}220s
    @Compendium[foundryvtt-reve-de-dragon.equipement.vnlRGjt7X6yQRObA]{Épée demi-dragonne}1,515s
    @Compendium[foundryvtt-reve-de-dragon.equipement.oXpPZ9LS1nsU0nGT]{Épée sorde}220s
    @Compendium[foundryvtt-reve-de-dragon.equipement.MQxgfYTEQEUhG116]{Épée bâtarde}330s
    @Compendium[foundryvtt-reve-de-dragon.equipement.6s5QjArwz9w9JIGL]{Double dragonne}450s
    @Compendium[foundryvtt-reve-de-dragon.equipement.WTWXZeoK5HpCrGFy]{Hachette}14s
    @Compendium[foundryvtt-reve-de-dragon.equipement.TKsUXJq9w7ezcFGQ]{Hache de bataille}210s
    @Compendium[foundryvtt-reve-de-dragon.equipement.hVgd4APvAW8sbXf0]{Grande hache}315s
    @Compendium[foundryvtt-reve-de-dragon.equipement.Yh7VGX3BikmIjVQH]{Gourdin}1-
    @Compendium[foundryvtt-reve-de-dragon.equipement.Qh4Tp7lZ6wLnX4w0]{Bâton}250d
    @Compendium[foundryvtt-reve-de-dragon.equipement.92GDNmNVa2u0gzpx]{Massette}12s
    @Compendium[foundryvtt-reve-de-dragon.equipement.MGvyXFQJpv6nNynl]{Masse lourde}34s
    @Compendium[foundryvtt-reve-de-dragon.equipement.godMVR796aSUVjLu]{Fléau léger}212s
    @Compendium[foundryvtt-reve-de-dragon.equipement.htaHjhHwVhlBnZjv]{Fléau lourd}315s
    @Compendium[foundryvtt-reve-de-dragon.equipement.PSc92VlQCdNnbPlg]{Lance courte}23s
    @Compendium[foundryvtt-reve-de-dragon.equipement.Ri5QtS98FTfgHk2N]{Javeline}11s
    @Compendium[foundryvtt-reve-de-dragon.equipement.UE79xKWXTwYAn70K]{Arme d’hast}410s
    @Compendium[foundryvtt-reve-de-dragon.equipement.eK28jEeQiJdd93L3]{Bouclier léger}14s
    @Compendium[foundryvtt-reve-de-dragon.equipement.1O7IJiQSDYxJ5VsD]{Bouclier moyen}26s
    @Compendium[foundryvtt-reve-de-dragon.equipement.7B9sKLf4ipRyyEjF]{Bouclier lourd}38s
    \n

    Armes de tir

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.lOI2HVu3B6EDY4sE]{Arbalète}330s
    @Compendium[foundryvtt-reve-de-dragon.equipement.iGHudg5kBOfYWgwV]{Arc}110s
    @Compendium[foundryvtt-reve-de-dragon.equipement.UMfXFhVhdoVQVEKy]{Fronde}-60d
    @Compendium[foundryvtt-reve-de-dragon.equipement.fLKFTvLWoj7juxQE]{Flèche, carreau}0,110d
    \n

    Armes de lancer

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.3cn9nWtY0Vb1PLTx]{Dague de jet}0,53s
    @Compendium[foundryvtt-reve-de-dragon.equipement.Ro5cOOtLLB0lMlzl]{Javelot}11s
    @Compendium[foundryvtt-reve-de-dragon.equipement.WTHZdtgf6lHUSKDx]{Fouet}0,51s
    \n

    Armures

    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
    ÉquipementEncPrix
    @Compendium[foundryvtt-reve-de-dragon.equipement.vQ494sD9FgFI08kZ]{Drap Matelassé}-4s
    @Compendium[foundryvtt-reve-de-dragon.equipement.b0f08L5CDeFIMluC]{Cuir Souple}-6s
    @Compendium[foundryvtt-reve-de-dragon.equipement.szOThadvQvFcS79R]{Cuir Epais}210s
    @Compendium[foundryvtt-reve-de-dragon.equipement.fDwsTMuug0Z5BdaA]{Cuir / Metal}420s
    @Compendium[foundryvtt-reve-de-dragon.equipement.KQZIK8ltQ3sQiDGe]{Mailles de Fer}650s
    @Compendium[foundryvtt-reve-de-dragon.equipement.S3bLtbXe6BzEFCjt]{Plaques de Fer}8100s
    ","img":"images/etage-0.webp","folder":null,"sort":0,"permission":{"default":0,"ziOZuFVSpL62OLHY":3},"flags":{"core":{"sourceId":"JournalEntry.pu52JoHJwQtEIMnl"}}} diff --git a/system.json b/system.json index dacf2e41..3e60fbf7 100644 --- a/system.json +++ b/system.json @@ -146,6 +146,15 @@ "path": "./packs/rappel-des-regles.db", "entity": "JournalEntry", "tags" : [ "journal", "règles" ] + }, + { + "name": "materiel-de-base", + "label": "Matériel de base", + "system": "foundryvtt-reve-de-dragon", + "module": "foundryvtt-reve-de-dragon", + "path": "./packs/materiel-de-base.db", + "entity": "JournalEntry", + "tags" : [ "journal", "matériel" ] }, { "name": "queues-de-dragon",