Fix: aucune oeuvre connu

La fenêtre de jet se comporte correctement si le personnage
ne connait pas d'oeuvre
This commit is contained in:
2025-12-13 01:09:00 +01:00
parent 97cb730ab5
commit d6a492eef2
4 changed files with 20 additions and 10 deletions
+14 -8
View File
@@ -2,15 +2,21 @@
<img src="{{current.oeuvre.img}}" data-tooltip="{{current.oeuvre.name}}" />
</roll-part-img>
<roll-part-detail>
<subline>
<select name="select-oeuvre" {{#if rollData.type.retry}}disabled{{/if}}>
{{selectOptions refs.oeuvres selected=current.key valueAttr="key" labelAttr="label"}}
</select>
{{#if refs.oeuvres}}
<subline>
<select name="select-oeuvre" {{#if rollData.type.retry}}disabled{{/if}}>
{{selectOptions refs.oeuvres selected=current.key valueAttr="key" labelAttr="label"}}
</select>
{{#if current.oeuvre}}
<selected-numeric-value>{{plusMoins current.value}}</selected-numeric-value>
{{/if}}
</subline>
{{#if current.oeuvre}}
<selected-numeric-value>{{plusMoins current.value}}</selected-numeric-value>
{{> (concat 'roll-oeuvre-' current.oeuvre.type)}}
{{/if}}
</subline>
{{#if current.oeuvre}}
{{> (concat 'roll-oeuvre-' current.oeuvre.type)}}
{{else}}
<subline>
<p>Le personnage ne connait aucune &oelig;uvre à interpréter</p>
</subline>
{{/if}}
</roll-part-detail>