fix: dériver lvl des jauges (blessures/destin/spleen) depuis les cases cochées

Les niveaux sont maintenant calculés automatiquement dans prepareDerivedData()
plutôt que stockés indépendamment — décocher une case met correctement lvl à jour.
Suppression des inputs manuels lvl dans le template (inutiles car dérivés).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-03-29 21:51:06 +02:00
parent 3cd35b4a72
commit 941548fcad
2 changed files with 8 additions and 15 deletions

View File

@@ -22,11 +22,7 @@
</div>
<div class="track-level">
<label>{{localize "CELESTOPOL.Track.level"}}</label>
{{#if isEditMode}}
<input type="number" name="system.blessures.lvl" value="{{system.blessures.lvl}}" min="0" max="8">
{{else}}
<span>{{system.blessures.lvl}}</span>
{{/if}}
<span>{{system.blessures.lvl}}</span>
</div>
</section>
@@ -49,11 +45,7 @@
</div>
<div class="track-level">
<label>{{localize "CELESTOPOL.Track.level"}}</label>
{{#if isEditMode}}
<input type="number" name="system.destin.lvl" value="{{system.destin.lvl}}" min="0" max="8">
{{else}}
<span>{{system.destin.lvl}}</span>
{{/if}}
<span>{{system.destin.lvl}}</span>
</div>
</section>
@@ -76,11 +68,7 @@
</div>
<div class="track-level">
<label>{{localize "CELESTOPOL.Track.level"}}</label>
{{#if isEditMode}}
<input type="number" name="system.spleen.lvl" value="{{system.spleen.lvl}}" min="0" max="8">
{{else}}
<span>{{system.spleen.lvl}}</span>
{{/if}}
<span>{{system.spleen.lvl}}</span>
</div>
</section>
</div>