Ajout Item nourritureboisson
This commit is contained in:
parent
e8626f3566
commit
8770b29a5e
@ -14,7 +14,7 @@ const typeDisplayName = {
|
|||||||
"ombre": "Ombre de Thanatos",
|
"ombre": "Ombre de Thanatos",
|
||||||
"souffle": "Souffle de Dragon",
|
"souffle": "Souffle de Dragon",
|
||||||
"tete": "Tête de Dragon",
|
"tete": "Tête de Dragon",
|
||||||
"ingredient": "Ingrédient",
|
"nourritureboisson": "Nourriture & boisson",
|
||||||
"rencontresTMR": "Rencontre des TMR",
|
"rencontresTMR": "Rencontre des TMR",
|
||||||
"competencecreature": "Compétence de créature",
|
"competencecreature": "Compétence de créature",
|
||||||
"nombreastral": "Nombre astral",
|
"nombreastral": "Nombre astral",
|
||||||
|
@ -129,6 +129,7 @@ export class RdDUtility {
|
|||||||
'systems/foundryvtt-reve-de-dragon/templates/item-ombre-sheet.html',
|
'systems/foundryvtt-reve-de-dragon/templates/item-ombre-sheet.html',
|
||||||
'systems/foundryvtt-reve-de-dragon/templates/item-monnaie-sheet.html',
|
'systems/foundryvtt-reve-de-dragon/templates/item-monnaie-sheet.html',
|
||||||
'systems/foundryvtt-reve-de-dragon/templates/item-meditation-sheet.html',
|
'systems/foundryvtt-reve-de-dragon/templates/item-meditation-sheet.html',
|
||||||
|
'systems/foundryvtt-reve-de-dragon/templates/item-nourritureboisson-sheet.html',
|
||||||
'systems/foundryvtt-reve-de-dragon/templates/competence-carac-defaut.html',
|
'systems/foundryvtt-reve-de-dragon/templates/competence-carac-defaut.html',
|
||||||
'systems/foundryvtt-reve-de-dragon/templates/competence-base.html',
|
'systems/foundryvtt-reve-de-dragon/templates/competence-base.html',
|
||||||
'systems/foundryvtt-reve-de-dragon/templates/enum-aspect-tarot.html',
|
'systems/foundryvtt-reve-de-dragon/templates/enum-aspect-tarot.html',
|
||||||
@ -248,6 +249,7 @@ export class RdDUtility {
|
|||||||
formData.tetes = this.checkNull(formData.itemsByType['tete']);
|
formData.tetes = this.checkNull(formData.itemsByType['tete']);
|
||||||
formData.taches = this.checkNull(formData.itemsByType['tache']);
|
formData.taches = this.checkNull(formData.itemsByType['tache']);
|
||||||
formData.monnaie = this.checkNull(formData.itemsByType['monnaie']);
|
formData.monnaie = this.checkNull(formData.itemsByType['monnaie']);
|
||||||
|
formData.nourritureboissons = this.checkNull(formData.itemsByType['nourritureboisson']);
|
||||||
formData.meditations = this.checkNull(formData.itemsByType['meditation']);
|
formData.meditations = this.checkNull(formData.itemsByType['meditation']);
|
||||||
formData.chants = this.checkNull(formData.itemsByType['chant']);
|
formData.chants = this.checkNull(formData.itemsByType['chant']);
|
||||||
formData.danses = this.checkNull(formData.itemsByType['danse']);
|
formData.danses = this.checkNull(formData.itemsByType['danse']);
|
||||||
@ -263,7 +265,8 @@ export class RdDUtility {
|
|||||||
.concat(formData.livres)
|
.concat(formData.livres)
|
||||||
.concat(formData.potions)
|
.concat(formData.potions)
|
||||||
.concat(formData.herbes)
|
.concat(formData.herbes)
|
||||||
.concat(formData.ingredients);
|
.concat(formData.ingredients)
|
||||||
|
.concat(formData.nourritureboissons);
|
||||||
formData.competences = (formData.itemsByType.competence ?? []).concat(formData.itemsByType.competencecreature ?? []);
|
formData.competences = (formData.itemsByType.competence ?? []).concat(formData.itemsByType.competencecreature ?? []);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -576,7 +576,7 @@
|
|||||||
"Item": {
|
"Item": {
|
||||||
"types": ["objet", "arme", "armure", "conteneur", "competence", "sort", "herbe", "ingredient", "livre", "potion", "munition", "rencontresTMR", "queue", "ombre", "souffle",
|
"types": ["objet", "arme", "armure", "conteneur", "competence", "sort", "herbe", "ingredient", "livre", "potion", "munition", "rencontresTMR", "queue", "ombre", "souffle",
|
||||||
"tete", "competencecreature", "tarot", "monnaie", "nombreastral", "tache", "meditation", "casetmr", "recettealchimique",
|
"tete", "competencecreature", "tarot", "monnaie", "nombreastral", "tache", "meditation", "casetmr", "recettealchimique",
|
||||||
"musique", "chant", "danse", "jeu", "recettecuisine", "maladie", "poison", "oeuvre" ],
|
"musique", "chant", "danse", "jeu", "recettecuisine", "maladie", "poison", "oeuvre", "nourritureboisson" ],
|
||||||
"objet": {
|
"objet": {
|
||||||
"description": "",
|
"description": "",
|
||||||
"quantite": 1,
|
"quantite": 1,
|
||||||
@ -854,6 +854,18 @@
|
|||||||
"remedes": "",
|
"remedes": "",
|
||||||
"dommages":"",
|
"dommages":"",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"nourritureboisson": {
|
||||||
|
"description": "",
|
||||||
|
"sust": 0,
|
||||||
|
"boisson": false,
|
||||||
|
"desaltere": 0,
|
||||||
|
"alcoolise": false,
|
||||||
|
"force": 0,
|
||||||
|
"qualite": 0,
|
||||||
|
"encombrement": 0,
|
||||||
|
"quantite": 1,
|
||||||
|
"cout": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
64
templates/item-nourritureboisson-sheet.html
Normal file
64
templates/item-nourritureboisson-sheet.html
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
<form class="{{cssClass}}" autocomplete="off">
|
||||||
|
<header class="sheet-header">
|
||||||
|
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />
|
||||||
|
<div class="header-fields">
|
||||||
|
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{{!-- Sheet Body --}}
|
||||||
|
<section class="sheet-body">
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Sustentation</label>
|
||||||
|
<input class="attribute-value" type="text" name="data.sust" value="{{data.sust}}" data-dtype="Number" />
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Boisson</label>
|
||||||
|
<input class="attribute-value" type="checkbox" name="data.boisson" {{#if data.boisson}}checked{{/if}} />
|
||||||
|
</div>
|
||||||
|
{{#if data.boisson}}
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Désaltère de</label>
|
||||||
|
<input class="attribute-value" type="text" name="data.desaltere" value="{{data.desaltere}}" data-dtype="Number" />
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Alcoolisée</label>
|
||||||
|
<input class="attribute-value" type="checkbox" name="data.alcoolise" {{#if data.alcoolise}}checked{{/if}} />
|
||||||
|
</div>
|
||||||
|
{{#if data.alcoolise}}
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Force de l'alcool par dose</label>
|
||||||
|
<input class="attribute-value" type="text" name="data.force" value="{{data.force}}" data-dtype="Number" />
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
|
<div class="form-group">
|
||||||
|
{{#if (lt data.qualite 0)}}
|
||||||
|
<label>Exotisme</label>
|
||||||
|
{{else}}
|
||||||
|
<label>Qualité</label>
|
||||||
|
{{/if}}
|
||||||
|
<input class="attribute-value" type="text" name="data.qualite" value="{{data.qualite}}" data-dtype="Number" />
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Encombrement </label>
|
||||||
|
<input class="attribute-value" type="text" name="data.encombrement" value="{{data.encombrement}}"
|
||||||
|
data-dtype="Number" />
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Quantité </label>
|
||||||
|
<input class="attribute-value" type="text" name="data.quantite" value="{{data.quantite}}" data-dtype="Number" />
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Prix (sols) </label>
|
||||||
|
<input class="attribute-value" type="text" name="data.cout" value="{{data.cout}}" data-dtype="Number" />
|
||||||
|
</div>
|
||||||
|
<div class="flexcol">
|
||||||
|
<span><label>Description : </label></span>
|
||||||
|
<div class="form-group editor">
|
||||||
|
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</form>
|
Loading…
Reference in New Issue
Block a user