Roll V2: cuisine

This commit is contained in:
2025-10-07 01:49:53 +02:00
parent 293af5ab83
commit edf920b340
34 changed files with 574 additions and 143 deletions

View File

@@ -1,16 +1,53 @@
<roll-part-img>
<img src="{{current.recette.img}}" data-tooltip="{{current.recette.name}}" />
<img src="{{current.img}}" data-tooltip="{{current.label}}" />
</roll-part-img>
<roll-part-detail>
<subline>
<select name="select-recette" {{#if rollData.type.retry}}disabled{{/if}}>
{{selectOptions refs.recettes selected=current.key valueAttr="key" labelAttr="label"}}
<select name="select-preparation" {{#if rollData.type.retry}}disabled{{/if}}>
{{selectOptions refs.preparations selected=current.key valueAttr="key" labelAttr="label"}}
</select>
{{#if current.recette}}
<selected-numeric-value>{{plusMoins current.value}}</selected-numeric-value>
{{else if current.ingredient}}
{{numberInput current.value
name='diff-var'
step=1
min=-10
max=0
disabled=rollData.type.retry
}}
{{/if}}
</subline>
{{#if current.recette}}
{{> 'roll-oeuvre-recettecuisine'}}
<subline>
<label for="proportions">Proportions</label>
{{numberInput current.proportions
name='proportions'
step=1
min=1
max=(either current.proportionsMax 10)
disabled=rollData.type.retry
}}
{{#if (and current.sust (ne current.sust 1))}}<span>(&times; {{current.sust}})</span>{{/if}}
</subline>
<subline>
<input type="checkbox" name="fabriquer" {{#if current.fabriquer}}checked{{/if}} {{#if rollData.type.retry}}disabled{{/if}}/>
<label for="fabriquer"><i class="fa-solid fa-utensils"></i>&nbsp; Ajouter à l'équipement</label>
</subline>
{{#if current.ingredients}}
<subline><span><strong>Ingrédients:</strong></span></subline>
<subline>
<div class="poesie-extrait">
{{{current.ingredients}}}
</div>
</subline>
{{/if}}
{{#if current.recette}}
{{#if current.ingredients}}
<hr>
<subline>
{{/if}}
{{> "systems/foundryvtt-reve-de-dragon/templates/partial-description.hbs" current.recette.system}}
</subline>
{{/if}}
</roll-part-detail>