Standardisation des descriptions

Utilisation des templates sur les items pour la description
This commit is contained in:
Vincent Vandemeulebrouck 2022-11-28 10:12:38 +01:00
parent 39c6478422
commit 42c4fe0b29
3 changed files with 61 additions and 94 deletions

View File

@ -590,19 +590,24 @@
"nombreastral", "tache", "maladie", "poison", "possession", "nombreastral", "tache", "maladie", "poison", "possession",
"tarot", "extraitpoetique" "tarot", "extraitpoetique"
], ],
"templates": {
"description": {
"description": "",
"descriptionmj": ""
}
},
"possession": { "possession": {
"templates": [ "description" ],
"typepossession": "", "typepossession": "",
"possede": false, "possede": false,
"possessionid": "", "possessionid": "",
"possesseurid": "", "possesseurid": "",
"possedeid": "", "possedeid": "",
"compteur": 0, "compteur": 0,
"date": 0, "date": 0
"description": ""
}, },
"objet": { "objet": {
"description": "", "templates": [ "description" ],
"descriptionmj": "",
"quantite": 1, "quantite": 1,
"encombrement": 0, "encombrement": 0,
"equipe": false, "equipe": false,
@ -611,8 +616,8 @@
"cout": 0 "cout": 0
}, },
"gemme": { "gemme": {
"templates": [ "description" ],
"type": "", "type": "",
"description": "",
"encombrement": 0, "encombrement": 0,
"quantite": 1, "quantite": 1,
"cout": 0, "cout": 0,
@ -623,8 +628,7 @@
"qualite": 0 "qualite": 0
}, },
"conteneur": { "conteneur": {
"description": "", "templates": [ "description" ],
"descriptionmj": "",
"capacite": 0, "capacite": 0,
"encombrement": 0, "encombrement": 0,
"equipe": false, "equipe": false,
@ -633,9 +637,8 @@
"cout": 0 "cout": 0
}, },
"arme": { "arme": {
"templates": [ "description" ],
"categorie_parade": "", "categorie_parade": "",
"description": "",
"descriptionmj": "",
"quantite": 1, "quantite": 1,
"encombrement": 0, "encombrement": 0,
"equipe": false, "equipe": false,
@ -659,8 +662,7 @@
"initpremierround": "" "initpremierround": ""
}, },
"munition": { "munition": {
"description": "", "templates": [ "description" ],
"descriptionmj": "",
"quantite": 1, "quantite": 1,
"encombrement": 0, "encombrement": 0,
"equipe": false, "equipe": false,
@ -668,8 +670,7 @@
"cout": 0 "cout": 0
}, },
"armure": { "armure": {
"description": "", "templates": [ "description" ],
"descriptionmj": "",
"quantite": 1, "quantite": 1,
"encombrement": 0, "encombrement": 0,
"equipe": false, "equipe": false,
@ -679,18 +680,18 @@
"cout": 0 "cout": 0
}, },
"competence": { "competence": {
"templates": [ "description" ],
"niveau": 0, "niveau": 0,
"default_diffLibre": 0, "default_diffLibre": 0,
"base": 0, "base": 0,
"categorie": "", "categorie": "",
"xp": 0, "xp": 0,
"description": "Compétence : ...",
"descriptionmj": "",
"defaut_carac": "", "defaut_carac": "",
"niveau_archetype": 0, "niveau_archetype": 0,
"xp_sort": 0 "xp_sort": 0
}, },
"competencecreature": { "competencecreature": {
"templates": [ "description" ],
"categorie_parade": "", "categorie_parade": "",
"niveau": 0, "niveau": 0,
"default_diffLibre": 0, "default_diffLibre": 0,
@ -699,13 +700,10 @@
"iscombat": false, "iscombat": false,
"isnaturelle": true, "isnaturelle": true,
"ispossession": false, "ispossession": false,
"dommages": 0, "dommages": 0
"description": "Compétence : ...",
"descriptionmj": ""
}, },
"sort": { "sort": {
"description": "", "templates": [ "description" ],
"descriptionmj": "",
"draconic": "", "draconic": "",
"duree": "", "duree": "",
"JR": "", "JR": "",
@ -721,8 +719,7 @@
"coutseuil": 0 "coutseuil": 0
}, },
"herbe": { "herbe": {
"description": "", "templates": [ "description" ],
"descriptionmj": "",
"niveau": 0, "niveau": 0,
"base": 0, "base": 0,
"quantite": 1, "quantite": 1,
@ -732,8 +729,7 @@
"cout": 0 "cout": 0
}, },
"ingredient": { "ingredient": {
"description": "", "templates": [ "description" ],
"descriptionmj": "",
"niveau": 0, "niveau": 0,
"encombrement": 0, "encombrement": 0,
"base": 0, "base": 0,
@ -744,6 +740,7 @@
"cout": 0 "cout": 0
}, },
"tache": { "tache": {
"templates": [ "description" ],
"carac": "", "carac": "",
"competence": "", "competence": "",
"periodicite": "", "periodicite": "",
@ -753,13 +750,10 @@
"points_de_tache_courant": 0, "points_de_tache_courant": 0,
"nb_jet_echec": 0, "nb_jet_echec": 0,
"nb_jet_succes": 0, "nb_jet_succes": 0,
"cacher_points_de_tache": false, "cacher_points_de_tache": false
"description": "",
"descriptionmj": ""
}, },
"livre": { "livre": {
"description": "", "templates": [ "description" ],
"descriptionmj": "",
"competence": "", "competence": "",
"auteur": "", "auteur": "",
"quantite": 1, "quantite": 1,
@ -772,8 +766,7 @@
"cout": 0 "cout": 0
}, },
"potion": { "potion": {
"description": "", "templates": [ "description" ],
"descriptionmj": "",
"quantite": 1, "quantite": 1,
"encombrement": 0, "encombrement": 0,
"rarete": "", "rarete": "",
@ -788,6 +781,7 @@
"cout": 0 "cout": 0
}, },
"rencontre": { "rencontre": {
"templates": [ "description" ],
"genre": "f", "genre": "f",
"formule": "2d4", "formule": "2d4",
"refoulement": 1, "refoulement": 1,
@ -826,12 +820,10 @@
"necropole": 0, "necropole": 0,
"desolation": 0, "desolation": 0,
"mauvaise": 0 "mauvaise": 0
}, }
"description": ""
}, },
"queue": { "queue": {
"description": "", "templates": [ "description" ],
"descriptionmj": "",
"frequence": 0, "frequence": 0,
"hautrevant": false, "hautrevant": false,
"categorie": "", "categorie": "",
@ -840,8 +832,7 @@
"restant" : 0 "restant" : 0
}, },
"ombre": { "ombre": {
"description": "", "templates": [ "description" ],
"descriptionmj": "",
"frequence": 0, "frequence": 0,
"hautrevant": false, "hautrevant": false,
"categorie": "false", "categorie": "false",
@ -850,25 +841,22 @@
"restant" : 0 "restant" : 0
}, },
"souffle": { "souffle": {
"description": "", "templates": [ "description" ],
"descriptionmj": "",
"frequence": 0, "frequence": 0,
"hautrevant": false, "hautrevant": false,
"duree": "", "duree": "",
"restant" : 0 "restant" : 0
}, },
"tete": { "tete": {
"templates": [ "description" ],
"frequence": 0, "frequence": 0,
"hautrevant": false, "hautrevant": false
"description": "",
"descriptionmj": ""
}, },
"tarot": { "tarot": {
"templates": [ "description" ],
"concept":"", "concept":"",
"aspect":"", "aspect":"",
"frequence": 1, "frequence": 1
"description": "",
"descriptionmj": ""
}, },
"nombreastral": { "nombreastral": {
"value": 0, "value": 0,
@ -877,13 +865,13 @@
"jourlabel": "" "jourlabel": ""
}, },
"monnaie": { "monnaie": {
"templates": [ "description" ],
"quantite": "", "quantite": "",
"valeur_deniers":0, "valeur_deniers":0,
"encombrement":0, "encombrement":0
"description": "",
"descriptionmj": ""
}, },
"meditation": { "meditation": {
"templates": [ "description" ],
"competence": "", "competence": "",
"theme": "", "theme": "",
"support": "", "support": "",
@ -892,99 +880,86 @@
"veture": "", "veture": "",
"comportement": "", "comportement": "",
"tmr": "", "tmr": "",
"malus" : 0, "malus" : 0
"description": "",
"descriptionmj": ""
}, },
"casetmr": { "casetmr": {
"templates": [ "description" ],
"coord": "", "coord": "",
"type": "", "type": "",
"label": "", "label": "",
"specific": "", "specific": "",
"description": "",
"descriptionmj": "",
"sourceid":"" "sourceid":""
}, },
"recettealchimique": { "recettealchimique": {
"templates": [ "description" ],
"but": "", "but": "",
"utilisation": "", "utilisation": "",
"enchantement": "", "enchantement": "",
"sureffet": "", "sureffet": "",
"manipulation": "", "manipulation": ""
"description": "",
"descriptionmj": ""
}, },
"musique": { "musique": {
"templates": [ "description" ],
"niveau": "", "niveau": "",
"reference": "", "reference": ""
"description": "",
"descriptionmj": ""
}, },
"danse": { "danse": {
"templates": [ "description" ],
"type": "", "type": "",
"agilite": false, "agilite": false,
"apparence": false, "apparence": false,
"niveau": "", "niveau": "",
"reference": "", "reference": ""
"description": "",
"descriptionmj": ""
}, },
"chant": { "chant": {
"templates": [ "description" ],
"niveau": "", "niveau": "",
"reference": "", "reference": ""
"description": "",
"descriptionmj": ""
}, },
"jeu": { "jeu": {
"templates": [ "description" ],
"type": "", "type": "",
"base": "", "base": "",
"caraccomp": "", "caraccomp": "",
"reference": "", "reference": ""
"description": "",
"descriptionmj": ""
}, },
"recettecuisine": { "recettecuisine": {
"templates": [ "description" ],
"niveau": "", "niveau": "",
"ingredients": "", "ingredients": "",
"duree": "", "duree": "",
"sust": 0, "sust": 0,
"exotisme": 0, "exotisme": 0,
"reference": "", "reference": ""
"description": "",
"descriptionmj": ""
}, },
"oeuvre": { "oeuvre": {
"templates": [ "description" ],
"default_carac": "", "default_carac": "",
"competence": "", "competence": "",
"niveau": 0, "niveau": 0,
"reference": "", "reference": ""
"description": "",
"descriptionmj": ""
}, },
"maladie": { "maladie": {
"templates": [ "description" ],
"identifie": false, "identifie": false,
"malignite": 0, "malignite": 0,
"periodicite": "", "periodicite": "",
"remedesconnus": false, "remedesconnus": false,
"remedes": "", "remedes": "",
"dommages":"", "dommages":""
"description": "",
"descriptionmj": ""
}, },
"poison": { "poison": {
"templates": [ "description" ],
"identifie": false, "identifie": false,
"malignite": 0, "malignite": 0,
"periodicite": "", "periodicite": "",
"remedesconnus": false, "remedesconnus": false,
"remedes": "", "remedes": "",
"dommages":"", "dommages":"",
"active": false, "active": false
"description": "",
"descriptionmj": ""
}, },
"nourritureboisson": { "nourritureboisson": {
"description": "", "templates": [ "description" ],
"descriptionmj": "",
"sust": 0, "sust": 0,
"boisson": false, "boisson": false,
"desaltere": 0, "desaltere": 0,
@ -997,6 +972,7 @@
"cout": 0 "cout": 0
}, },
"signedraconique": { "signedraconique": {
"templates": [ "description" ],
"typesTMR": [], "typesTMR": [],
"ephemere": true, "ephemere": true,
"duree": "1 round", "duree": "1 round",
@ -1005,9 +981,7 @@
"norm": 3, "norm": 3,
"sign": 5, "sign": 5,
"part": 10 "part": 10
}, }
"description": "",
"descriptionmj": ""
}, },
"sortreserve": { "sortreserve": {
"sortid" : "", "sortid" : "",

View File

@ -69,12 +69,7 @@
</div> </div>
{{/if}} {{/if}}
{{/unless}} {{/unless}}
<div class="flexcol"> {{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-description.html"}}
<span><label>Description : </label></span>
<div class="form-group editor">
{{editor description target="system.description" button=true owner=owner editable=editable}}
</div>
</div>
</div> </div>
<div class="tab items" data-group="primary" data-tab="succes"> <div class="tab items" data-group="primary" data-tab="succes">

View File

@ -24,9 +24,7 @@
<section class="sheet-body"> <section class="sheet-body">
{{!-- Description Tab --}} {{!-- Description Tab --}}
<div class="tab" data-group="primary" data-tab="description"> {{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-description.html"}}
{{editor description target="system.description" button=true owner=owner editable=editable}}
</div>
{{!-- Attributes Tab --}} {{!-- Attributes Tab --}}
<div class="tab attributes" data-group="primary" data-tab="attributes"> <div class="tab attributes" data-group="primary" data-tab="attributes">