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

View File

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

View File

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