Fix: aucun jeu connu

La fenêtre de jet se comporte correctement si le personnage
ne sait pas jouer,
This commit is contained in:
2025-12-13 00:48:31 +01:00
parent a4e614860a
commit 97cb730ab5
3 changed files with 15 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
<img src="{{current.jeu.img}}" data-tooltip="{{current.jeu.name}}" />
</roll-part-img>
<roll-part-detail>
{{#if refs.jeux}}
<subline>
<select name="select-jeu" {{#if rollData.type.retry}}disabled{{/if}}>
{{selectOptions refs.jeux selected=current.key valueAttr="key" labelAttr="label"}}
@@ -10,4 +11,9 @@
<subline>
{{> "systems/foundryvtt-reve-de-dragon/templates/partial-description.hbs" current.jeu.system}}
</subline>
{{else}}
<subline>
<p>Le personnage ne sait jouer à rien</p>
</subline>
{{/if}}
</roll-part-detail>