Feat: Add 'Coût en Pouvoir' field to Rune items
Ajoute un champ numérique 'coutAme' (entier, défaut=0) pour les runes : - DataModel: Ajout du champ dans modules/models/rune.mjs - Template fiche: Ajout du champ 'Coût en Pouvoir' dans templates/item-rune-sheet.hbs - Template post: Ajout de l'affichage dans templates/post-item.hbs Ce champ permet de spécifier le coût en Pouvoir pour chaque rune, et s'affiche à la fois dans la fiche et dans le chat. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -57,6 +57,18 @@
|
||||
data-dtype="String"
|
||||
/>
|
||||
</li>
|
||||
<li class="flexrow item">
|
||||
<label class="generic-label item-field-label-long"
|
||||
>Coût en Pouvoir :
|
||||
</label>
|
||||
<input
|
||||
type="number"
|
||||
class="padd-right status-small-label color-class-common item-field-label-long2"
|
||||
name="system.coutAme"
|
||||
value="{{system.coutAme}}"
|
||||
data-dtype="Number"
|
||||
/>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
{{#if system.seuil}}<div class="post-stat"><span class="stat-label">Seuil</span><span class="stat-value">{{system.seuil}}</span></div>{{/if}}
|
||||
{{#if system.prononcee}}<div class="post-stat post-stat-full"><span class="stat-label">{{localize "MNBL.pronounced"}}</span><span class="stat-value">{{system.prononcee}}</span></div>{{/if}}
|
||||
{{#if system.tracee}}<div class="post-stat post-stat-full"><span class="stat-label">{{localize "MNBL.traced"}}</span><span class="stat-value">{{system.tracee}}</span></div>{{/if}}
|
||||
{{#if system.coutAme}}<div class="post-stat"><span class="stat-label">Coût en Pouvoir</span><span class="stat-value">{{system.coutAme}}</span></div>{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user