Modificateur: select difficulté nommée (Évident→Malaisé→Très difficile…)

- Remplace le select -4..+4 par les niveaux Évident/Malaisé/Difficile/etc.
- 'Évident' = réussite automatique (valeur 'auto', pas de dé, force succès)
- Aspect garde son select numérique -4..+4
- Chat message affiche 'Réussite automatique' si autoSuccess
- Ajout CONTEXT_MODIFIER_CHOICES dans config + clés i18n Modifier.*

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-29 22:19:34 +02:00
parent 149bc4eb8b
commit 51206acac3
5 changed files with 49 additions and 8 deletions

View File

@@ -104,7 +104,10 @@
{{!-- Bandeau résultat --}}
<div class="roll-result-banner {{resultClass}}">
{{#if isCriticalSuccess}}
{{#if autoSuccess}}
<span class="result-icon">★</span>
<span class="result-label">{{localize "CELESTOPOL.Roll.autoSuccess"}}</span>
{{else if isCriticalSuccess}}
<span class="result-icon">✦✦</span>
<span class="result-label">{{localize "CELESTOPOL.Roll.criticalSuccess"}}</span>
<span class="result-desc">{{localize "CELESTOPOL.Roll.criticalSuccessDesc"}}</span>

View File

@@ -42,14 +42,14 @@
<label for="modifier">{{localize "CELESTOPOL.Roll.modifier"}}</label>
<select id="modifier" name="modifier">
{{#each modifierChoices as |choice|}}
<option value="{{choice.value}}" {{#if (eq choice.value 0)}}selected{{/if}}>{{choice.label}}</option>
<option value="{{choice.value}}" {{#if (eq choice.id "malaise")}}selected{{/if}}>{{choice.label}}</option>
{{/each}}
</select>
</div>
<div class="form-row-line">
<label for="aspectModifier">{{localize "CELESTOPOL.Roll.aspect"}}</label>
<select id="aspectModifier" name="aspectModifier">
{{#each modifierChoices as |choice|}}
{{#each aspectChoices as |choice|}}
<option value="{{choice.value}}" {{#if (eq choice.value 0)}}selected{{/if}}>{{choice.label}}</option>
{{/each}}
</select>