fix: traits dans les jets et édition du niveau de trait
Release Creation / build (release) Successful in 45s
Release Creation / build (release) Successful in 45s
- partial-common-roll-dialog.hbs, confront-dialog.hbs: utiliser trait.id (pas trait._id) pour matcher rollData.traits construit dans ecryme-actor.js Fix: jet silencieux quand un trait était sélectionné (value=undefined -> getTrait(undefined) -> TypeError avant création du message de chat) - ecryme-config.js: traitLevel utilise des clés 1/2/3 (pas -3..+3) pour matcher le NumberField level (initial:1, min:1) du DataModel trait.js. Fix: le niveau revient sur -3 à l'édition car String(2) ne matchait pas '+2' Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
<span class="roll-dialog-label">{{localize "ECRY.ui.traitbonus"}} : </span>
|
||||
<select id="roll-trait-bonus" data-type="String" multiple>
|
||||
{{#each traitsBonus as |trait idx|}}
|
||||
<option value="{{trait._id}}" {{#if trait.activated}}selected{{/if}}>{{trait.name}} ({{trait.system.level}})</option>
|
||||
<option value="{{trait.id}}" {{#if trait.activated}}selected{{/if}}>{{trait.name}} ({{trait.system.level}})</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
@@ -89,7 +89,7 @@
|
||||
<span class="roll-dialog-label">{{localize "ECRY.ui.traitmalus"}} : </span>
|
||||
<select id="roll-trait-malus" data-type="String" multiple>
|
||||
{{#each traitsMalus as |trait idx|}}
|
||||
<option value="{{trait._id}}" {{#if trait.activated}}selected{{/if}}>{{trait.name}} ({{trait.system.level}})</option>
|
||||
<option value="{{trait.id}}" {{#if trait.activated}}selected{{/if}}>{{trait.name}} ({{trait.system.level}})</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user