Files
vermine2047/templates/dialogs/learning-dialog.hbs
T
uberwald 9cf7d9ac68
Release Creation / build (release) Failing after 1m20s
feat: système d'expérience et transferts de dés d'expérience
- phase d'expérience (récompenses collectives et individuelles, objectifs, traumatisme)
- jets d'apprentissage (compétences, spécialités, caractéristiques, réserves, évolution)
- bonus de réserve acquis par apprentissage intégré au max dérivé
- transferts de dés individuels <-> groupe dans le dialogue de jet
- onglet expérience sur la fiche personnage
- guide utilisateur combat (docs/user/COMBAT.md)
2026-08-04 14:14:09 +02:00

95 lines
4.6 KiB
Handlebars

<div class="roll-dialog-content">
<h3 class="combat-mode-label">{{ localize 'VERMINE.open_learning' }}</h3>
<div class="learning-summary">
<span class="label">{{ localize 'VERMINE.experience_dice' }}:</span>
<span class="exp-value">{{ dice }}D</span>
</div>
<div class="learning-type">
<label><input type="radio" data-roll="true" name="learning-type" value="skill" checked /><span>{{ localize 'VERMINE.learn_skill' }}</span></label>
<label><input type="radio" data-roll="true" name="learning-type" value="specialty" /><span>{{ localize 'VERMINE.learn_specialty' }}</span></label>
<label><input type="radio" data-roll="true" name="learning-type" value="characteristic" /><span>{{ localize 'VERMINE.learn_characteristic' }}</span></label>
<label><input type="radio" data-roll="true" name="learning-type" value="reserve" /><span>{{ localize 'VERMINE.learn_reserve' }}</span></label>
<label><input type="radio" data-roll="true" name="learning-type" value="evolution" /><span>{{ localize 'VERMINE.learn_evolution' }}</span></label>
</div>
<div id="learning-skill-section" class="learning-targets">
<label class="label" for="learning-target">{{ localize 'VERMINE.learn_skill' }}</label>
<select class="info-value" data-roll="true" id="learning-target" name="learning-target">
{{#each skills}}
<option value="{{ this.key }}" data-value="{{ this.value }}" data-rarity="{{ this.rarity }}" data-domain="{{ this.isDomain }}">
{{ this.name }} ({{ this.value }}{{ this.target }})
</option>
{{/each}}
</select>
</div>
<div id="learning-specialty-section" class="learning-targets" style="display:none;">
<div class="flexrow bonus-item">
<label class="label" for="specialty-name">{{ localize 'VERMINE.learn_specialty_name' }}</label>
<input type="text" data-roll="true" id="specialty-name" name="specialty-name" value="{{ localize 'ITEMS.new_specialty' }}" />
</div>
<p class="learning-hint">{{ localize 'VERMINE.specialty_hint' }}</p>
</div>
<div id="learning-ability-section" class="learning-targets" style="display:none;">
<label class="label" for="learning-ability">{{ localize 'VERMINE.learn_characteristic' }}</label>
<select class="info-value" data-roll="true" id="learning-ability" name="learning-ability">
{{#each abilities}}
<option value="{{ this.key }}">{{ this.label }} ({{ this.value }})</option>
{{/each}}
</select>
<p class="learning-hint">{{ localize 'VERMINE.characteristic_hint' }}</p>
</div>
<div id="learning-reserve-section" class="learning-targets" style="display:none;">
<label class="label" for="learning-reserve">{{ localize 'VERMINE.learn_reserve' }}</label>
<select class="info-value" data-roll="true" id="learning-reserve" name="learning-reserve">
{{#each reserves}}
<option value="{{ this.key }}">{{ this.label }} ({{ this.value }}/{{ this.max }})</option>
{{/each}}
</select>
<p class="learning-hint">{{ localize 'VERMINE.reserve_hint' }}</p>
</div>
<div id="learning-evolution-section" class="learning-targets" style="display:none;">
<p class="learning-hint">{{ localize 'VERMINE.evolution_hint' }}</p>
</div>
<div class="flexrow bonus-item full-width">
<label class="label" for="learning-dice">{{ localize 'VERMINE.dice_spent' }}</label>
<input type="number" class="numeric-entry" style="text-align:center;" data-roll="true"
id="learning-dice" name="learning-dice" min="1" max="{{ dice }}" value="1" />
<span>D</span>
</div>
<div class="learning-result">
<div class="context-item">
<span class="context-label">{{ localize 'VERMINE.difficulty' }}</span>
<span class="context-value" id="diff-value">5</span>
</div>
<div class="context-item">
<span class="context-label">{{ localize 'VERMINE.handicap' }}</span>
<span class="context-value" id="handicap-value">0</span>
</div>
<div class="context-item">
<span class="context-label">{{ localize 'VERMINE.success_required' }}</span>
<span class="context-value" id="required-value">1</span>
</div>
<div class="context-item">
<span class="context-label">{{ localize 'VERMINE.pool_total' }}</span>
<span class="context-value" id="pool-value">1D</span>
</div>
</div>
<footer class="sheet-footer flexrow">
<button type="button" data-action="cancel">
<i class="fas fa-times"></i> {{localize "VERMINE.cancel"}}
</button>
<button type="button" data-action="roll">
<i class="fas fa-graduation-cap"></i> {{localize "VERMINE.roll"}}
</button>
</footer>
</div>