feat: nouveaux apprentissages (Capacités de Totem, Historique, Réputation) et expérience de Groupe
- Dialogue d'apprentissage personnage : 4 nouveaux types d'achat.
- Capacité de Totem : options filtrées (mode de jeu, niveau de
groupe, totem, non-apprises), difficulté = valeur d'Apprentissage,
limites 3×N1 / 1×N2-N3 / max 5, marque system.learned de l'item
(convention type character) et learned.ability du personnage.
- Élément d'Historique : difficulté 9, handicap 1 si astérisque
(background.asterisk), marque learned.background + item.
- Test de Réputation (réduire/augmenter) : réduire = difficulté
10 − score visé (−1 pt), augmenter = difficulté = réputation
actuelle (+1 par succès), bornes 0-10, marque learned.reputation.
- Évolution : option Dé de Totem Adapté ×2 quand Adapté > Humain
(1D remplacé par un dé adapté compté ×2 via VermineUtils.roll).
- Correction règles : les Dés d'Expérience sont dépensés même en cas
d'échec du jet d'apprentissage (décompte hors #applySuccess).
- Expérience de Groupe : nouveau dialogue d'apprentissage de Groupe
(niveau, réserve, capacité de totem), réserve d'expérience et phase
dans system.experience, boutons sur la fiche Groupe, reset des
limites par phase (level/reserve/ability).
- Phase d'expérience : filtre par groupe sélectionné, associe chaque
personnage à son premier groupe, reset des limites de tous les
nouveaux types d'apprentissage.
- Corrections : l'attaque de créature n'ajoute plus la Réaction du Rôle
(regles_creatures.txt), suppression de la case XP des en-têtes PJ
(legacy et AppV2).
- Divers : .eslintrc.js (règles inexistantes/obsolètes retirées),
libellé jaune de dialogue en couleur chitine, i18n FR/EN, chips
« appris » sur l'onglet expérience du personnage.
This commit is contained in:
@@ -12,6 +12,9 @@
|
||||
<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>
|
||||
<label><input type="radio" data-roll="true" name="learning-type" value="totem" /><span>{{ localize 'VERMINE.learn_totem_ability' }}</span></label>
|
||||
<label><input type="radio" data-roll="true" name="learning-type" value="background" /><span>{{ localize 'VERMINE.learn_background' }}</span></label>
|
||||
<label><input type="radio" data-roll="true" name="learning-type" value="reputation" /><span>{{ localize 'VERMINE.learn_reputation' }}</span></label>
|
||||
</div>
|
||||
|
||||
<div id="learning-skill-section" class="learning-targets">
|
||||
@@ -55,6 +58,54 @@
|
||||
|
||||
<div id="learning-evolution-section" class="learning-targets" style="display:none;">
|
||||
<p class="learning-hint">{{ localize 'VERMINE.evolution_hint' }}</p>
|
||||
{{#if canUseAdaptedDie}}
|
||||
<div class="flexrow bonus-item" id="learning-adapted-die-row" style="display:none;">
|
||||
<label class="label" for="learning-adapted-die">{{ localize 'VERMINE.learn_adapted_die' }}</label>
|
||||
<input type="checkbox" data-roll="true" id="learning-adapted-die" name="learning-adapted-die" />
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<div id="learning-totem-section" class="learning-targets" style="display:none;">
|
||||
{{#if totemAbilities.length}}
|
||||
<label class="label" for="learning-totem">{{ localize 'VERMINE.learn_totem_ability' }}</label>
|
||||
<select class="info-value" data-roll="true" id="learning-totem" name="learning-totem">
|
||||
{{#each totemAbilities}}
|
||||
<option value="{{ this.id }}" data-level="{{ this.level }}" data-threshold="{{ this.threshold }}" data-hindrance="{{ this.hindrance }}">
|
||||
{{ this.name }} (N{{ this.level }} — {{ this.threshold }}{{#ifgt this.hindrance 0}}/{{ roman this.hindrance }}{{/ifgt}})
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
{{else}}
|
||||
<p class="learning-hint">{{ localize 'VERMINE.no_totem_ability' }}</p>
|
||||
{{/if}}
|
||||
<p class="learning-hint">{{ localize 'VERMINE.totem_ability_hint' }}</p>
|
||||
</div>
|
||||
|
||||
<div id="learning-background-section" class="learning-targets" style="display:none;">
|
||||
{{#if backgrounds.length}}
|
||||
<label class="label" for="learning-background">{{ localize 'VERMINE.learn_background' }}</label>
|
||||
<select class="info-value" data-roll="true" id="learning-background" name="learning-background">
|
||||
{{#each backgrounds}}
|
||||
<option value="{{ this.id }}" data-asterisk="{{ this.asterisk }}">
|
||||
{{ this.name }}{{#if this.asterisk}} *{{/if}}
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
{{else}}
|
||||
<p class="learning-hint">{{ localize 'VERMINE.no_background' }}</p>
|
||||
{{/if}}
|
||||
<p class="learning-hint">{{ localize 'VERMINE.background_hint' }}</p>
|
||||
</div>
|
||||
|
||||
<div id="learning-reputation-section" class="learning-targets" style="display:none;">
|
||||
<label class="label" for="learning-reputation-direction">{{ localize 'VERMINE.learn_reputation' }}</label>
|
||||
<select class="info-value" data-roll="true" id="learning-reputation-direction" name="learning-reputation-direction">
|
||||
<option value="reduce">{{ localize 'VERMINE.reputation_reduce' }}</option>
|
||||
<option value="increase">{{ localize 'VERMINE.reputation_increase' }}</option>
|
||||
</select>
|
||||
<p class="learning-hint">{{ localize 'VERMINE.reputation_hint' }}</p>
|
||||
<p class="learning-hint"><strong>{{ localize 'VERMINE.reputation_current' }}: <span id="reputation-target">{{ reputation }}</span></strong></p>
|
||||
</div>
|
||||
|
||||
<div class="flexrow bonus-item full-width">
|
||||
|
||||
Reference in New Issue
Block a user