ALl features OK, excetp creatures sub-type, WIP3

This commit is contained in:
2026-06-07 23:29:02 +02:00
parent 494ec3ea84
commit 6dea5ba479
86 changed files with 497 additions and 234 deletions
+92 -38
View File
@@ -73,7 +73,7 @@
{{!-- VIGUEUR --}}
<div class="stat-card card-vigueur">
<div class="stat-card-title">♥ Vigueur <span class="stat-sub">({{system.sante.vigueur}})</span></div>
<div class="stat-card-title">♥ Vigueur <span class="stat-sub">({{or system.sante.vigueur 0}})</span></div>
<div class="stat-card-content">
<div class="stat-field">
<label>État</label>
@@ -135,7 +135,6 @@
<a class="item" data-tab="sorcellerie">{{localize "SORCELLERIE.tab"}}</a>
<a class="item" data-tab="combat">Combat</a>
<a class="item" data-tab="equipement">{{localize "MNBL.equipment"}}</a>
<a class="item" data-tab="effects">Effets</a>
<a class="item" data-tab="biodata">Bio&Notes</a>
</nav>
<hr>
@@ -244,6 +243,9 @@
{{/each}}
</ul>
</div>
<!-- Active Effects Section -->
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-active-effects.hbs}}
</div>
</div>
@@ -492,38 +494,96 @@
</div>
<div class="sheet-box color-bg-archetype">
<h3><label class="items-title-text">{{localize "SORCELLERIE.creaturesinvoquees"}}</label></h3>
<div class="small-editor item-text-long-line">
{{editor system.sorcellerie.creaturesinvoquees target="system.sorcellerie.creaturesinvoquees" button=true owner=owner editable=editable}}
</div>
</div>
<div class="sheet-box color-bg-archetype">
<h3><label class="items-title-text">{{localize "SORCELLERIE.demonslies"}}</label></h3>
<div class="small-editor item-text-long-line">
{{editor system.sorcellerie.demonslies target="system.sorcellerie.demonslies" button=true owner=owner editable=editable}}
</div>
</div>
<div class="sheet-box color-bg-archetype">
<h3><label class="items-title-text">{{localize "SORCELLERIE.enchantements"}}</label></h3>
<div class="small-editor item-text-long-line">
{{editor system.sorcellerie.enchantements target="system.sorcellerie.enchantements" button=true owner=owner editable=editable}}
</div>
</div>
<div class="sheet-box color-bg-archetype">
<h3><label class="items-title-text">{{localize "SORCELLERIE.invocationsencours"}}</label></h3>
<div class="small-editor item-text-long-line">
{{editor system.sorcellerie.invocationsencours target="system.sorcellerie.invocationsencours" button=true owner=owner editable=editable}}
</div>
<ul class="item-list alternate-list">
<li class="flexrow item">
<label class="generic-label item-field-label-long">{{localize "SORCELLERIE.coutPouvoirInvocations"}} : </label>
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.sorcellerie.coutPouvoirInvocations"
value="{{system.sorcellerie.coutPouvoirInvocations}}" data-dtype="Number" />
<li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header">
<h3><label class="items-title-text">{{localize "SORCELLERIE.creaturesinvoquees"}}</label></h3>
</span>
<div class="item-filler">&nbsp;</div>
</li>
{{#each creaturesInvoqueesActors as |creature key|}}
<li class="item flexrow" data-actor-id="{{creature.id}}" data-actor-uuid="{{creature.uuid}}">
<img class="item-name-img" src="{{creature.img}}" />
<span class="item-name-label competence-name"><a class="linked-actor-name" data-actor-uuid="{{creature.uuid}}">{{creature.name}}</a></span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control" data-action="removeLinkedActor" data-field="creaturesinvoquees" data-uuid="{{creature.uuid}}" title="Retirer"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</div>
<div class="sheet-box color-bg-archetype">
<ul class="item-list alternate-list">
<li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header">
<h3><label class="items-title-text">{{localize "SORCELLERIE.demonslies"}}</label></h3>
</span>
<div class="item-filler">&nbsp;</div>
</li>
{{#each demonsLiesActors as |demon key|}}
<li class="item flexrow" data-actor-id="{{demon.id}}" data-actor-uuid="{{demon.uuid}}">
<img class="item-name-img" src="{{demon.img}}" />
<span class="item-name-label competence-name"><a class="linked-actor-name" data-actor-uuid="{{demon.uuid}}">{{demon.name}}</a></span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control" data-action="removeLinkedActor" data-field="demonslies" data-uuid="{{demon.uuid}}" title="Retirer"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</div>
<div class="sheet-box color-bg-archetype">
<ul class="item-list alternate-list">
<li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header">
<h3><label class="items-title-text">{{localize "SORCELLERIE.enchantements"}}</label></h3>
</span>
<div class="item-filler">&nbsp;</div>
</li>
{{#each enchantementsActors as |automata key|}}
<li class="item flexrow" data-actor-id="{{automata.id}}" data-actor-uuid="{{automata.uuid}}">
<img class="item-name-img" src="{{automata.img}}" />
<span class="item-name-label competence-name"><a class="linked-actor-name" data-actor-uuid="{{automata.uuid}}">{{automata.name}}</a></span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control" data-action="removeLinkedActor" data-field="enchantements" data-uuid="{{automata.uuid}}" title="Retirer"><i class="fas fa-trash"></i></a>
</div>
</li>
{{/each}}
</ul>
</div>
<div class="sheet-box color-bg-archetype">
<ul class="item-list alternate-list">
<li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header">
<h3><label class="items-title-text">{{localize "SORCELLERIE.invocationsencours"}}</label></h3>
</span>
<div class="item-filler">&nbsp;</div>
</li>
</ul>
<div class="editor">
{{formInput systemFields.sorcellerie.fields.invocationsencours enriched=enrichedInvocationsEnCours value=system.sorcellerie.invocationsencours name="system.sorcellerie.invocationsencours" toggled=true}}
</div>
</div>
</div>
<div class="sheet-box color-bg-archetype">
<ul class="item-list alternate-list">
<li class="item flexrow list-item items-title-bg">
<span class="item-name-label-header">
<h3><label class="items-title-text">{{localize "SORCELLERIE.coutPouvoirInvocations"}}</label></h3>
</span>
<div class="item-filler">&nbsp;</div>
</li>
</ul>
<div class="stat-field">
<div class="item-filler">&nbsp;</div>
<input type="text" class="padd-right numeric-input item-field-label-short" name="system.sorcellerie.coutPouvoirInvocations"
value="{{system.sorcellerie.coutPouvoirInvocations}}" data-dtype="Number" />
</div>
</div>
</div>
@@ -747,17 +807,11 @@
</div>
{{!-- Effects Tab --}}
<div class="tab effects" data-group="primary" data-tab="effects">
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-active-effects.hbs}}
</div>
{{!-- Biography Tab --}}
<div class="tab biodata" data-group="primary" data-tab="biodata">
<div>
<ul class="item-list alternate-list">
{{#each historiques as |historique key|}}
{{#each historiques as |historique key|}}
<li class="item flexrow" data-item-id="{{historique._id}}">
<label class="generic-label">Historique : </label>
<label class="generic-label">{{historique.name}}</label>