Fix after testing

This commit is contained in:
2026-01-10 22:35:39 +01:00
parent b113f630bf
commit 936d525503
119 changed files with 3193 additions and 1096 deletions

View File

@@ -16,9 +16,11 @@
<li class="item flexrow ">
<h4 class="item-name-label competence-name roll-style"><a class="roll-carac" data-action="rollCarac" data-key="{{key}}">{{carac.label}}</a></h4>
<input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
name="system.caracteristiques.{{key}}.value" value="{{carac.value}}" data-dtype="Number" />
name="system.caracteristiques.{{key}}.value" data-tooltip="Valeur actuelle" value="{{carac.value}}"
data-dtype="Number" />
<input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
name="system.caracteristiques.{{key}}.rang" value="{{carac.rang}}" data-dtype="Number" />
name="system.caracteristiques.{{key}}.rang" data-tooltip="Rang" value="{{carac.rang}}"
data-dtype="Number" />
</li>
{{/if}}
{{/each}}
@@ -32,9 +34,11 @@
<li class="item flexrow ">
<h4 class="item-name-label competence-name roll-style"><a class="roll-carac" data-action="rollCarac" data-key="{{key}}">{{carac.label}}</a></h4>
<input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
name="system.caracteristiques.{{key}}.value" value="{{carac.value}}" data-dtype="Number" />
name="system.caracteristiques.{{key}}.value" value="{{carac.value}}" data-tooltip="Valeur actuelle"
data-dtype="Number" />
<input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
name="system.caracteristiques.{{key}}.rang" value="{{carac.rang}}" data-dtype="Number" />
name="system.caracteristiques.{{key}}.rang" value="{{carac.rang}}" data-tooltip="Rang"
data-dtype="Number" />
</li>
{{/if}}
{{/each}}
@@ -42,24 +46,33 @@
</div>
</div>
<div class="flexrow">
<label class="item-field-label-short">PV</label>
<input type="text" class="item-field-label-short" name="system.pv.value" value="{{system.pv.value}}" data-dtype="Number" />
<input type="text" class="item-field-label-short" name="system.pv.max" value="{{system.pv.max}}" data-dtype="Number" />
<label class="item-field-label-short">Malus</label>
<input type="text" class="item-field-label-short" value="{{pvMalus.value}}" data-dtype="Number" disabled />
<span>&nbsp;&nbsp;</span>
<select class="item-field-label-medium" type="text" name="system.statutmasque" value="{{system.statutmasque}}" data-dtype="string">
{{selectOptions config.statutMasque selected=system.statutmasque}}
</select>
<span>&nbsp;&nbsp;</span>
<label class="item-field-label-short">Tricherie</label>
<input type="text" class="item-field-label-short" name="system.rang.tricherie.value" value="{{system.rang.tricherie.value}}" data-dtype="Number" />
<input type="text" class="item-field-label-short" name="system.rang.tricherie.max" value="{{system.rang.tricherie.max}}" data-dtype="Number" />
<div class="flexrow" style="align-items: center;">
<label class="item-field-label-short">PV</label>
<div style="display: flex; align-items: center; gap: 0.2rem;">
<button type="button" data-action="pvDecrease" title="Diminuer PV" style="cursor: pointer; padding: 0 0.3rem; font-size: 1rem; background: none; border: 1px solid #666; border-radius: 3px; color: #fff;"></button>
<input type="text" class="item-field-label-short" name="system.pv.value" value="{{system.pv.value}}"
data-dtype="Number" data-tooltip="PV actuels" style="text-align: center; width: 3rem;" />
<button type="button" data-action="pvIncrease" title="Augmenter PV" style="cursor: pointer; padding: 0 0.3rem; font-size: 1rem; background: none; border: 1px solid #666; border-radius: 3px; color: #fff;">+</button>
<span style="margin-left: 0.2rem;">/</span>
<input type="text" class="item-field-label-short" name="system.pv.max" value="{{system.pv.max}}"
data-dtype="Number" data-tooltip="PV maximum" style="text-align: center; width: 3rem;" />
</div>
<label class="item-field-label-short">Malus</label>
<input type="text" class="item-field-label-short" value="{{pvMalus.value}}" data-dtype="Number" disabled data-tooltip="Malus dû aux blessures" style="text-align: center; width: 3rem;" />
<span>&nbsp;&nbsp;</span>
<select class="item-field-label-medium" type="text" name="system.statutmasque"
value="{{system.statutmasque}}" data-dtype="string">
{{selectOptions config.statutMasque selected=system.statutmasque}}
</select>
<span>&nbsp;&nbsp;</span>
<label class="item-field-label-short">Tricherie</label>
<input type="text" class="item-field-label-short-num" name="system.rang.tricherie.value"
value="{{system.rang.tricherie.value}}" data-dtype="Number" data-tooltip="Points de tricherie actuels" />
<input type="text" class="item-field-label-short-num" name="system.rang.tricherie.max"
value="{{system.rang.tricherie.max}}" data-dtype="Number" data-tooltip="Points de tricherie maximum" />
</div>
</div>
</div>
@@ -85,13 +98,13 @@
<div>
{{#each utileSkillsPhysical as |skillDef keyProfil|}}
{{> systems/fvtt-les-heritiers/templates/partial-utile-skills.hbs skillDef=skillDef keyProfil=keyProfil isPNJ=true}}
{{> systems/fvtt-les-heritiers/templates/partial-utile-skills.hbs skillDef=skillDef keyProfil=keyProfil isPNJ=true config=config}}
{{/each}}
</div>
<div>
{{#each utileSkillsMental as |skillDef keyProfil|}}
{{> systems/fvtt-les-heritiers/templates/partial-utile-skills.hbs skillDef=skillDef keyProfil=keyProfil isPNJ=true}}
{{> systems/fvtt-les-heritiers/templates/partial-utile-skills.hbs skillDef=skillDef keyProfil=keyProfil isPNJ=true config=config}}
{{/each}}
</div>
@@ -127,9 +140,8 @@
</ul>
</div>
<li class="item flexrow " >
<h2>Magie</h3>
<li class="item flexrow">
<h2 style="color: #8b6914; margin: 0.5rem 0;">Magie</h2>
</li>
<div class="flexrow">
@@ -146,14 +158,19 @@
</div>
{{#each magieList as |magie idx|}}
<li class="item flexrow " data-item-id="{{magie.competence._id}}" data-item-type="competence">
<h2 class="flexrow"><label class="items-title-text "><a class="roll-competence" data-action="rollRootCompetence" item-field-label-short"
data-attr-key="tochoose">{{magie.name}} {{magie.competence.system.niveau}} </a> </label>
<li class="item flexrow magie-section-header" data-item-id="{{magie.competence._id}}" data-item-type="competence">
<div class="magie-section-title">
<label class="items-title-text">
<a class="roll-competence" data-action="rollRootCompetence" data-attr-key="tochoose">
{{magie.name}} {{magie.competence.system.niveau}}
</a>
</label>
</div>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" data-action="editItem" title="Editer l'item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" data-action="deleteItem" title="Supprimer l'item"><i class="fas fa-trash"></i></a>
</div>
</h2>
</li>
<div class="sheet-box color-bg-archetype">
@@ -193,55 +210,92 @@
</div>
{{!-- Equipement Tab --}}
{{!-- Combat Tab --}}
<div class="tab combat" data-group="primary" data-tab="combat">
<ul class="item-list alternate-list">
<li class="item flexrow">
<li class="item flexrow" style="justify-content: center; margin-bottom: 0.5rem;">
<button class="chat-card-button roll-initiative" data-action="rollInitiative">Initiative (actuelle : {{initiative}} )</button>
</li>
<li class="item flexrow list-item items-title-bg">
<label class="item-field-label-medium"><strong>Esquive</strong></label>
<label class="item-field-label-medium">Masquée</label>
<input type="text" class="item-field-label-short" name="system.combat.esquive.masquee" value="{{system.combat.esquive.masquee}}" data-dtype="Number" />
<label class="item-field-label-medium">Démasquée</label>
<input type="text" class="item-field-label-short" name="system.combat.esquive.demasquee" value="{{system.combat.esquive.demasquee}}" data-dtype="Number" />
<label class="item-field-label-medium"><strong>Parade</strong></label>
<label class="item-field-label-medium">Masquée</label>
<input type="text" class="item-field-label-short" name="system.combat.parade.masquee" value="{{system.combat.parade.masquee}}" data-dtype="Number" />
<label class="item-field-label-medium">Démasquée</label>
<input type="text" class="item-field-label-short" name="system.combat.parade.demasquee" value="{{system.combat.parade.demasquee}}" data-dtype="Number" />
</li>
<li class="item flexrow list-item items-title-bg">
<label class="item-field-label-long">Rés. physique</label>
<input type="text" class="item-field-label-short" name="system.combat.resistancephysique.value" value="{{system.combat.resistancephysique.value}}" data-dtype="Number" />
<label class="item-field-label-long">Rés. psychique</label>
<input type="text" class="item-field-label-short" name="system.combat.resistancepsychique.value" value="{{system.combat.resistancepsychique.value}}" data-dtype="Number" />
<label class="item-field-label-medium">Protection : </label>
<input type="text" class="item-field-label-short" name="system.combat.protection.value" value="{{system.combat.protection.value}}" data-dtype="Number" />
</li>
<li class="item flexrow list-item items-title-bg">
<label class="item-field-label-long">Effets secondaires</label>
<input type="text" class="item-field-label-short" name="system.combat.effetssecondaires" value="{{system.combat.effetssecondaires}}" data-dtype="String" />
<label class="item-field-label-long">Dissimulation : </label>
<input type="text" class="item-field-label-short" name="system.combat.dissimulation.value" value="{{system.combat.dissimulation.value}}" data-dtype="Number" />
</li>
<li class="item flexrow list-item items-title-bg">
<label class="item-field-label-long"><strong>Corps à Corps</strong></label>
<label class="item-field-label-medium">Masqué</label>
<input type="text" class="item-field-label-short" name="system.combat.corpsacorps.masquee" value="{{system.combat.corpsacorps.masquee}}" data-dtype="Number" />
<label class="item-field-label-medium">Démasqué</label>
<input type="text" class="item-field-label-short" name="system.combat.corpsacorps.demasquee" value="{{system.combat.corpsacorps.demasquee}}" data-dtype="Number" />
</li>
<li class="item flexrow list-item items-title-bg">
<label class="item-field-label-long"><strong>A distance</strong></label>
<label class="item-field-label-medium">Masqué</label>
<input type="text" class="item-field-label-short" name="system.combat.tir.masquee" value="{{system.combat.tir.masquee}}" data-dtype="Number" />
<label class="item-field-label-medium">Démasqué</label>
<input type="text" class="item-field-label-short" name="system.combat.tir.demasquee" value="{{system.combat.tir.demasquee}}" data-dtype="Number" />
</li>
</ul>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem;">
<!-- Esquive -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.5rem;">
<div style="text-align: center; font-weight: bold; margin-bottom: 0.25rem; color: #8b6914; font-size: 0.85rem;">Esquive</div>
<div class="flexrow" style="gap: 0.5rem; align-items: center; justify-content: center;">
<label style="font-size: 0.75rem; color: #999;">Masquée</label>
<input type="text" class="item-field-label-short" name="system.combat.esquive.masquee"
value="{{system.combat.esquive.masquee}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
<label style="font-size: 0.75rem; color: #999; margin-left: 0.3rem;">Démasquée</label>
<input type="text" class="item-field-label-short" name="system.combat.esquive.demasquee"
value="{{system.combat.esquive.demasquee}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
</div>
</div>
<!-- Parade -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.5rem;">
<div style="text-align: center; font-weight: bold; margin-bottom: 0.25rem; color: #8b6914; font-size: 0.85rem;">Parade</div>
<div class="flexrow" style="gap: 0.5rem; align-items: center; justify-content: center;">
<label style="font-size: 0.75rem; color: #999;">Masquée</label>
<input type="text" class="item-field-label-short" name="system.combat.parade.masquee"
value="{{system.combat.parade.masquee}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
<label style="font-size: 0.75rem; color: #999; margin-left: 0.3rem;">Démasquée</label>
<input type="text" class="item-field-label-short" name="system.combat.parade.demasquee"
value="{{system.combat.parade.demasquee}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
</div>
</div>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem;">
<!-- Résistance Physique -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.5rem;">
<div class="flexrow" style="align-items: center; justify-content: center; gap: 0.4rem;">
<label style="font-size: 0.75rem; font-weight: bold; color: #d4a574;">Rés. physique</label>
<input type="text" class="item-field-label-short" name="system.combat.resistancephysique.value"
value="{{system.combat.resistancephysique.value}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
</div>
</div>
<!-- Résistance Psychique -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.5rem;">
<div class="flexrow" style="align-items: center; justify-content: center; gap: 0.4rem;">
<label style="font-size: 0.75rem; font-weight: bold; color: #d4a574;">Rés. psychique</label>
<input type="text" class="item-field-label-short" name="system.combat.resistancepsychique.value"
value="{{system.combat.resistancepsychique.value}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
</div>
</div>
<!-- Protection -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.5rem;">
<div class="flexrow" style="align-items: center; justify-content: center; gap: 0.4rem;">
<label style="font-size: 0.75rem; font-weight: bold; color: #d4a574;">Protection</label>
<input type="text" class="item-field-label-short" name="system.combat.protection.value"
value="{{system.combat.protection.value}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
</div>
</div>
</div>
<div style="display: grid; grid-template-columns: 2fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem;">
<!-- Effets secondaires -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.4rem;">
<div class="flexcol" style="gap: 0.2rem;">
<label style="font-size: 0.75rem; font-weight: bold; color: #d4a574; text-align: center;">Effets secondaires</label>
<input type="text" name="system.combat.effetssecondaires"
value="{{system.combat.effetssecondaires}}" data-dtype="String" style="text-align: center; width: 100%; padding: 0.15rem;" />
</div>
</div>
<!-- Dissimulation -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.5rem;">
<div class="flexrow" style="align-items: center; justify-content: center; gap: 0.4rem;">
<label style="font-size: 0.75rem; font-weight: bold; color: #d4a574;">Dissimulation</label>
<input type="text" class="item-field-label-short" name="system.combat.dissimulation.value"
value="{{system.combat.dissimulation.value}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
</div>
</div>
</div>
<div class="flexcol">
<div class="sheet-box color-bg-archetype">
@@ -251,10 +305,10 @@
<h3><label class="items-title-text">Armes</label></h3>
</span>
<span class="item-field-label-short">
<label class="short-label">Attaque</label>
<label class="short-label">Dégats</label>
</span>
<span class="item-field-label-short">
<label class="short-label">Dégats</label>
<label class="short-label">Attaque</label>
</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
@@ -263,18 +317,31 @@
</div>
</li>
{{#each armes as |arme key|}}
<li class="item flexrow " data-item-id="{{arme._id}}" data-item-type="arme">
<li class="item flexrow " data-item-id="{{arme._id}}" data-item-type="arme" style="gap: 0.3rem;">
<img class="item-name-img" src="{{arme.img}}" />
<span class="item-name-label competence-name">{{arme.name}}</span>
<span class="item-field-label-short">
<button class="roll-attaque-arme" data-action="rollAttaqueArme" button-sheet-roll">Attaquer</button>
</span>
<span class="item-field-label-short">
{{arme.system.degats}}
</span>
<span style="min-width: 4.5rem;">
<button class="roll-attaque-arme" data-action="rollAttaqueArme" button-sheet-roll>Attaque</button>
</span>
<span style="min-width: 4.5rem;">
<button class="roll-assomer-arme" data-action="rollAssomerArme" button-sheet-roll>Assommer</button>
</span>
{{#if arme.system.isMelee}}
<span style="min-width: 4.5rem;">
<button class="roll-attaque-charge-arme" data-action="rollAttaqueChargeArme" button-sheet-roll>Charger</button>
</span>
<span style="min-width: 6.1rem;">
<button class="roll-attaque-brutale-arme" data-action="rollAttaqueBrutaleArme" button-sheet-roll button-sheet-roll-long1>Att. brutale</button>
</span>
{{/if}}
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-equip" data-action="equipItem" title="Equipé">{{#if arme.system.equipped}}<i
@@ -534,11 +601,19 @@
<div class="tab notes" data-group="primary" data-tab="notes">
<span>
<h3>Historique</h3>
</span>
<div class="medium-editor item-text-long-line">
{{editor description target="system.biodata.description" button=true owner=owner editable=editable}}
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem; margin-bottom: 0.75rem;">
<h3 style="color: #8b6914; margin-bottom: 0.5rem;">Historique</h3>
<div class="medium-editor item-text-long-line">
{{formInput systemFields.biodata.fields.description enriched=enrichedDescription value=system.biodata.description name="system.biodata.description" toggled=true}}
</div>
</div>
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem; margin-bottom: 0.75rem;">
<h3 style="color: #8b6914; margin-bottom: 0.5rem;">Notes MJ</h3>
<div class="medium-editor item-text-long-line">
{{formInput systemFields.biodata.fields.playernotes enriched=enrichedPlayernotes value=system.biodata.playernotes name="system.biodata.playernotes" toggled=true}}
</div>
</div>
</div>

View File

@@ -48,16 +48,21 @@
</div>
</div>
<div class="flexrow">
<div class="flexrow" style="align-items: center;">
<label class="item-field-label-short">PV</label>
<input type="text" class="item-field-label-short" name="system.pv.value" value="{{system.pv.value}}"
data-dtype="Number" />
<input type="text" class="item-field-label-short" name="system.pv.max" value="{{system.pv.max}}" disabled
data-dtype="Number" />
<div style="display: flex; align-items: center; gap: 0.2rem;">
<button type="button" data-action="pvDecrease" title="Diminuer PV" style="cursor: pointer; padding: 0 0.3rem; font-size: 1rem; background: none; border: 1px solid #666; border-radius: 3px; color: #fff;"></button>
<input type="text" class="item-field-label-short" name="system.pv.value" value="{{system.pv.value}}"
data-dtype="Number" data-tooltip="PV actuels" style="text-align: center; width: 3rem;" />
<button type="button" data-action="pvIncrease" title="Augmenter PV" style="cursor: pointer; padding: 0 0.3rem; font-size: 1rem; background: none; border: 1px solid #666; border-radius: 3px; color: #fff;">+</button>
<span style="margin-left: 0.2rem;">/</span>
<input type="text" class="item-field-label-short" name="system.pv.max" value="{{system.pv.max}}" disabled
data-dtype="Number" data-tooltip="PV maximum" style="text-align: center; width: 3rem;" />
</div>
<input type="text" class="item-field-label-short" name="system.pv.mod" value="{{system.pv.mod}}"
data-dtype="Number" />
data-dtype="Number" data-tooltip="Modificateur de PV" style="text-align: center; width: 3rem;" />
<label class="item-field-label-short">Malus</label>
<input type="text" class="item-field-label-short" value="{{pvMalus.value}}" data-dtype="Number" disabled />
<input type="text" class="item-field-label-short" value="{{pvMalus.value}}" data-dtype="Number" disabled data-tooltip="Malus dû aux blessures" style="text-align: center; width: 3rem;" />
<span>&nbsp;&nbsp;</span>
<select class="item-field-label-medium" type="text" name="system.statutmasque"
@@ -68,9 +73,9 @@
<span>&nbsp;&nbsp;</span>
<label class="item-field-label-short">Tricherie</label>
<input type="text" class="item-field-label-short-num" name="system.rang.tricherie.value"
value="{{system.rang.tricherie.value}}" data-dtype="Number" />
value="{{system.rang.tricherie.value}}" data-dtype="Number" data-tooltip="Points de tricherie actuels" />
<input type="text" class="item-field-label-short-num" name="system.rang.tricherie.max"
value="{{system.rang.tricherie.max}}" data-dtype="Number" />
value="{{system.rang.tricherie.max}}" data-dtype="Number" data-tooltip="Points de tricherie maximum" />
</div>
</div>
@@ -134,8 +139,7 @@
</li>
{{#each futileSkills as |skill key|}}
<li class="item flexrow " data-item-id="{{skill._id}}" data-item-type="competence">
<span class="item-field-label-long2 roll-style"><a class="roll-competence" data-action="rollRootCompetence" item-field-label-short"
data-attr-key="tochoose">{{skill.name}}</a></span>
<span class="item-field-label-long2 roll-style"><a class="roll-competence" data-action="rollCompetence">{{skill.name}}</a></span>
<select class="item-field-label-short edit-item-data" type="text" data-item-field="niveau"
value="{{skill.system.niveau}}" data-dtype="Number">
@@ -159,50 +163,88 @@
<div class="tab combat" data-group="primary" data-tab="combat">
<ul class="item-list alternate-list">
<li class="item flexrow">
<li class="item flexrow" style="justify-content: center; margin-bottom: 0.5rem;">
<button class="chat-card-button roll-initiative" data-action="rollInitiative">Initiative (actuelle : {{initiative}} )</button>
</li>
<li class="item flexrow list-item items-title-bg">
<label class="item-field-label-medium"><strong>Esquive</strong></label>
<label class="item-field-label-medium">Masquée</label>
<input type="text" class="item-field-label-short" name="system.combat.esquive.masquee"
value="{{system.combat.esquive.masquee}}" data-dtype="Number" />
<label class="item-field-label-medium">Démasquée</label>
<input type="text" class="item-field-label-short" name="system.combat.esquive.demasquee"
value="{{system.combat.esquive.demasquee}}" data-dtype="Number" />
<label class="item-field-label-short">&nbsp;&nbsp;</label>
<label class="item-field-label-medium"><strong>Parade</strong></label>
<label class="item-field-label-medium">Masquée</label>
<input type="text" class="item-field-label-short" name="system.combat.parade.masquee"
value="{{system.combat.parade.masquee}}" data-dtype="Number" />
<label class="item-field-label-medium">Démasquée</label>
<input type="text" class="item-field-label-short" name="system.combat.parade.demasquee"
value="{{system.combat.parade.demasquee}}" data-dtype="Number" />
</li>
<li class="item flexrow list-item items-title-bg">
<label class="item-field-label-long">Rés. physique</label>
<input type="text" class="item-field-label-short" name="system.combat.resistancephysique.value"
value="{{system.combat.resistancephysique.value}}" data-dtype="Number" />
<label class="item-field-label-short">&nbsp;&nbsp;</label>
<label class="item-field-label-long">Rés. psychique</label>
<input type="text" class="item-field-label-short" name="system.combat.resistancepsychique.value"
value="{{system.combat.resistancepsychique.value}}" data-dtype="Number" />
<label class="item-field-label-short">&nbsp;&nbsp;</label>
<label class="item-field-label-medium">Protection : </label>
<input type="text" class="item-field-label-short" name="system.combat.protection.value"
value="{{system.combat.protection.value}}" data-dtype="Number" />
</li>
<li class="item flexrow list-item items-title-bg">
<label class="item-field-label-long">Effets secondaires</label>
<input type="text" class="item-field-label-short" name="system.combat.effetssecondaires"
value="{{system.combat.effetssecondaires}}" data-dtype="String" />
<label class="item-field-label-short">&nbsp;&nbsp;</label>
<label class="item-field-label-long">Dissimulation : </label>
<input type="text" class="item-field-label-short" name="system.combat.dissimulation.value"
value="{{system.combat.dissimulation.value}}" data-dtype="Number" />
</li>
</ul>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem;">
<!-- Esquive -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.5rem;">
<div style="text-align: center; font-weight: bold; margin-bottom: 0.25rem; color: #8b6914; font-size: 0.85rem;">Esquive</div>
<div class="flexrow" style="gap: 0.5rem; align-items: center; justify-content: center;">
<label style="font-size: 0.75rem; color: #999;">Masquée</label>
<input type="text" class="item-field-label-short" name="system.combat.esquive.masquee"
value="{{system.combat.esquive.masquee}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
<label style="font-size: 0.75rem; color: #999; margin-left: 0.3rem;">Démasquée</label>
<input type="text" class="item-field-label-short" name="system.combat.esquive.demasquee"
value="{{system.combat.esquive.demasquee}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
</div>
</div>
<!-- Parade -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.5rem;">
<div style="text-align: center; font-weight: bold; margin-bottom: 0.25rem; color: #8b6914; font-size: 0.85rem;">Parade</div>
<div class="flexrow" style="gap: 0.5rem; align-items: center; justify-content: center;">
<label style="font-size: 0.75rem; color: #999;">Masquée</label>
<input type="text" class="item-field-label-short" name="system.combat.parade.masquee"
value="{{system.combat.parade.masquee}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
<label style="font-size: 0.75rem; color: #999; margin-left: 0.3rem;">Démasquée</label>
<input type="text" class="item-field-label-short" name="system.combat.parade.demasquee"
value="{{system.combat.parade.demasquee}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
</div>
</div>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem;">
<!-- Résistance Physique -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.5rem;">
<div class="flexrow" style="align-items: center; justify-content: center; gap: 0.4rem;">
<label style="font-size: 0.75rem; font-weight: bold; color: #d4a574;">Rés. physique</label>
<input type="text" class="item-field-label-short" name="system.combat.resistancephysique.value"
value="{{system.combat.resistancephysique.value}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
</div>
</div>
<!-- Résistance Psychique -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.5rem;">
<div class="flexrow" style="align-items: center; justify-content: center; gap: 0.4rem;">
<label style="font-size: 0.75rem; font-weight: bold; color: #d4a574;">Rés. psychique</label>
<input type="text" class="item-field-label-short" name="system.combat.resistancepsychique.value"
value="{{system.combat.resistancepsychique.value}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
</div>
</div>
<!-- Protection -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.5rem;">
<div class="flexrow" style="align-items: center; justify-content: center; gap: 0.4rem;">
<label style="font-size: 0.75rem; font-weight: bold; color: #d4a574;">Protection</label>
<input type="text" class="item-field-label-short" name="system.combat.protection.value"
value="{{system.combat.protection.value}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
</div>
</div>
</div>
<div style="display: grid; grid-template-columns: 2fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem;">
<!-- Effets secondaires -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.4rem;">
<div class="flexcol" style="gap: 0.2rem;">
<label style="font-size: 0.75rem; font-weight: bold; color: #d4a574; text-align: center;">Effets secondaires</label>
<input type="text" name="system.combat.effetssecondaires"
value="{{system.combat.effetssecondaires}}" data-dtype="String" style="text-align: center; width: 100%; padding: 0.15rem;" />
</div>
</div>
<!-- Dissimulation -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.25rem; padding: 0.3rem 0.5rem;">
<div class="flexrow" style="align-items: center; justify-content: center; gap: 0.4rem;">
<label style="font-size: 0.75rem; font-weight: bold; color: #d4a574;">Dissimulation</label>
<input type="text" class="item-field-label-short" name="system.combat.dissimulation.value"
value="{{system.combat.dissimulation.value}}" data-dtype="Number" style="text-align: center; max-width: 3rem; padding: 0.15rem;" />
</div>
</div>
</div>
<div class="flexcol">
<div class="sheet-box color-bg-archetype">
@@ -224,7 +266,7 @@
</div>
</li>
{{#each armes as |arme key|}}
<li class="item flexrow " data-item-id="{{arme._id}}" data-item-type="arme">
<li class="item flexrow " data-item-id="{{arme._id}}" data-item-type="arme" style="gap: 0.3rem;">
<img class="item-name-img" src="{{arme.img}}" />
<span class="item-name-label competence-name">{{arme.name}}</span>
@@ -232,21 +274,20 @@
{{arme.system.degats}}
</span>
<span class="item-field-label-short">
<span style="min-width: 4.5rem;">
<button class="roll-attaque-arme" data-action="rollAttaqueArme" button-sheet-roll">Attaque</button>
</span>
<span class="item-field-label-short">
<span style="min-width: 4.5rem;">
<button class="roll-assomer-arme" data-action="rollAssomerArme" button-sheet-roll">Assommer</button>
</span>
{{#if arme.system.isMelee}}
<span class="item-field-label-short">
<span style="min-width: 4.5rem;">
<button class="roll-attaque-charge-arme" data-action="rollAttaqueChargeArme" button-sheet-roll">Charger</button>
</span>
<span class="item-field-label-short">
<button class="roll-attaque-brutale-arme" data-action="rollAttaqueBrutaleArme" button-sheet-roll button-sheet-roll-long1">Attaque
brutale</button>
<span style="min-width: 6.1rem;">
<button class="roll-attaque-brutale-arme" data-action="rollAttaqueBrutaleArme" button-sheet-roll button-sheet-roll-long1">Att. brutale</button>
</span>
{{/if}}
@@ -282,7 +323,7 @@
<img class="item-name-img" src="{{protection.img}}" />
<span class="item-name-label competence-name">{{protection.name}}</span>
<span class="item-field-label-short arme-defensif"><label
class="arme-defensif">{{protection.system.protection}}</label>
class="arme-defensif">{{protection.system.points}}</label>
</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
@@ -313,24 +354,48 @@
</div>
<div class="flexrow">
<ul>
<li class="flexrow item">
<label class="item-field-label-medium roll-style"><a class="roll-rang" data-action="rollRang" item-field-label-short"
data-rang-key="feerie">Féerie</a></label>
<input type="text" class="item-field-label-short" name="system.rang.feerie.value"
value="{{system.rang.feerie.value}}" data-dtype="Number" />
<input type="text" class="item-field-label-short" name="system.rang.feerie.max"
value="{{system.rang.feerie.max}}" data-dtype="Number" />
<span class="item-field-label-medium"></span>
<label class="item-field-label-medium roll-style"><a class="roll-rang" data-action="rollRang" item-field-label-short"
data-rang-key="masque">Masque</a></label>
<input type="text" class="item-field-label-short" name="system.rang.masque.value"
value="{{system.rang.masque.value}}" data-dtype="Number" />
<input type="text" class="item-field-label-short" name="system.rang.masque.max"
value="{{system.rang.masque.max}}" data-dtype="Number" />
<span class="item-field-label-medium"></span>
<label class="item-field-label-long roll-style"><a class="dialog-recup-usage" data-action="dialogRecupUsage" item-field-label-long">Récup.
P. d'Usage</a></label>
<ul style="width: 100%;">
<li class="flexrow item" style="gap: 0.5rem; align-items: flex-end;">
<div class="flexcol" style="gap: 0.1rem;">
<label style="font-size: 0.7rem; color: #999; text-align: center;">Rang</label>
<label class="item-field-label-medium roll-style"><a class="roll-rang" data-action="rollRang"
data-rang-key="feerie">Féerie</a></label>
</div>
<div class="flexcol" style="align-items: center; gap: 0.1rem;">
<label style="font-size: 0.7rem; color: #999;">Valeur</label>
<input type="text" class="item-field-label-short" name="system.rang.feerie.value"
value="{{system.rang.feerie.value}}" data-dtype="Number" style="text-align: center;" />
</div>
<div class="flexcol" style="align-items: center; gap: 0.1rem;">
<label style="font-size: 0.7rem; color: #999;">Max</label>
<input type="text" class="item-field-label-short" name="system.rang.feerie.max"
value="{{system.rang.feerie.max}}" data-dtype="Number" style="text-align: center;" />
</div>
<span style="width: 1.5rem;"></span>
<div class="flexcol" style="gap: 0.1rem;">
<label style="font-size: 0.7rem; color: #999; text-align: center;">Rang</label>
<label class="item-field-label-medium roll-style"><a class="roll-rang" data-action="rollRang"
data-rang-key="masque">Masque</a></label>
</div>
<div class="flexcol" style="align-items: center; gap: 0.1rem;">
<label style="font-size: 0.7rem; color: #999;">Valeur</label>
<input type="text" class="item-field-label-short" name="system.rang.masque.value"
value="{{system.rang.masque.value}}" data-dtype="Number" style="text-align: center;" />
</div>
<div class="flexcol" style="align-items: center; gap: 0.1rem;">
<label style="font-size: 0.7rem; color: #999;">Max</label>
<input type="text" class="item-field-label-short" name="system.rang.masque.max"
value="{{system.rang.masque.max}}" data-dtype="Number" style="text-align: center;" />
</div>
<span style="flex: 1;"></span>
<div class="flexcol" style="gap: 0.1rem;">
<label style="font-size: 0.7rem; color: transparent;">Action</label>
<label class="item-field-label-long roll-style"><a class="dialog-recup-usage" data-action="dialogRecupUsage">Récup. P. d'Usage</a></label>
</div>
</li>
</ul>
</div>
@@ -506,16 +571,20 @@
</div>
{{#each magieList as |magie idx|}}
<li class="item flexrow " data-item-id="{{magie.competence._id}}" data-item-type="competence">
<h3 class="flexrow"><label class="items-title-text "><a class="roll-competence" data-action="rollRootCompetence" item-field-label-short"
data-attr-key="tochoose">{{magie.name}} {{magie.competence.system.niveau}} </a> </label>
<!-- <span>Rang : {{magie.rang}}</span> -->
<span>{{magie.rangSpecificName}}</span>
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" data-action="editItem" title="Editer l'item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" data-action="deleteItem" title="Supprimer l'item"><i class="fas fa-trash"></i></a>
</div>
</h3>
<li class="item flexrow magie-section-header" data-item-id="{{magie.competence._id}}" data-item-type="competence">
<div class="magie-section-title">
<label class="items-title-text">
<a class="roll-competence" data-action="rollRootCompetence" data-attr-key="tochoose">
{{magie.name}} {{magie.competence.system.niveau}}
</a>
</label>
<span class="magie-rang-name">{{magie.rangSpecificName}}</span>
</div>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" data-action="editItem" title="Editer l'item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" data-action="deleteItem" title="Supprimer l'item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{#if (eq magie.name "Magie du Clan")}}
@@ -667,9 +736,16 @@
<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">
<span class="item-name-img" style="visibility: hidden;"></span>
<span class="item-field-label-long2">
<h3><label class="items-title-text">Equipements</label></h3>
</span>
<span class="item-field-label-short" style="text-align: center;">
<label class="short-label">Quantité</label>
</span>
<span class="item-field-label-short" style="text-align: center;">
<label class="short-label">Rareté</label>
</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-add" data-action="createItem" data-type="equipement" title="Créer un équipement"><i
@@ -677,9 +753,18 @@
</div>
</li>
{{#each equipements as |equip key|}}
<li class="item flexrow " data-item-id="{{equip._id}}" data-item-type="equipement">
<li class="item flexrow " data-item-id="{{equip._id}}" data-item-type="equipement" style="align-items: center;">
<img class="item-name-img" src="{{equip.img}}" />
<span class="item-field-label-long2">{{equip.name}}</span>
<span class="item-field-label-short" style="display: flex; align-items: center; justify-content: center; gap: 0.2rem;">
<button type="button" data-action="quantityDecrease" title="Diminuer" style="cursor: pointer; padding: 0 0.3rem; font-size: 1rem; background: none; border: 1px solid #666; border-radius: 3px; color: #fff;"></button>
<input type="text" name="system.quantite" value="{{equip.system.quantite}}" data-dtype="Number"
style="text-align: center; width: 2.5rem; padding: 0.1rem;" readonly />
<button type="button" data-action="quantityIncrease" title="Augmenter" style="cursor: pointer; padding: 0 0.3rem; font-size: 1rem; background: none; border: 1px solid #666; border-radius: 3px; color: #fff;">+</button>
</span>
<span class="item-field-label-short" style="text-align: center;">
{{equip.system.rarete}}
</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" data-action="editItem" title="Editer l'item"><i class="fas fa-edit"></i></a>
@@ -725,6 +810,7 @@
<li class="item flexrow " data-item-id="{{contact._id}}" data-item-type="contact">
<img class="item-name-img" src="{{contact.img}}" />
<span class="item-field-label-long2">{{contact.name}}</span>
<span class="item-field-label-medium" style="text-align: center; font-style: italic; color: #999;">{{contact.system.contacttype}}</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" data-action="editItem" title="Editer l'item"><i class="fas fa-edit"></i></a>
@@ -769,71 +855,73 @@
</ul>
</div>
<div class="flexrow">
<div class="grid-2col">
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.5rem;">
<!-- Colonne 1: Identité et Activités -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem;">
<div style="text-align: center; font-weight: bold; margin-bottom: 0.5rem; color: #8b6914; font-size: 0.9rem;">Identité</div>
<ul>
<li class="flexrow item">
<label class="item-field-label-long2">Nom humain</label> <input type="text" class=""
name="system.biodata.nomhumain" value="{{system.biodata.nomhumain}}" data-dtype="String" />
<label class="item-field-label-long2">Nom humain</label>
<input type="text" name="system.biodata.nomhumain" value="{{system.biodata.nomhumain}}" data-dtype="String" style="flex: 1;" />
</li>
<li class="flexrow item">
<label class="item-field-label-long2">Activités</label> <input type="text" class=""
name="system.biodata.activites" value="{{system.biodata.activites}}" data-dtype="String" />
<label class="item-field-label-long2">Activités</label>
<input type="text" name="system.biodata.activites" value="{{system.biodata.activites}}" data-dtype="String" style="flex: 1;" />
</li>
<li class="flexrow item">
<label class="item-field-label-long2">Apparence masquée</label> <input type="text" class=""
name="system.biodata.apparencemasquee" value="{{system.biodata.apparencemasquee}}"
data-dtype="String" />
<label class="item-field-label-long2">Titre et Famille</label>
<input type="text" name="system.biodata.titrefamille" value="{{system.biodata.titrefamille}}" data-dtype="String" style="flex: 1;" />
</li>
<li class="flexrow item">
<label class="item-field-label-long2">Apparence démasquée</label> <input type="text" class=""
name="system.biodata.apparencedemasquee" value="{{system.biodata.apparencedemasquee}}"
data-dtype="String" />
<label class="item-field-label-long2">Factions féériques</label>
<input type="text" name="system.biodata.factionfeerique" value="{{system.biodata.factionfeerique}}" data-dtype="String" style="flex: 1;" />
</li>
</ul>
</div>
<!-- Colonne 2: Traits -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem;">
<div style="text-align: center; font-weight: bold; margin-bottom: 0.5rem; color: #8b6914; font-size: 0.9rem;">Traits & Langues</div>
<ul>
<li class="flexrow item">
<label class="item-field-label-long2">Titre et Famille</label> <input type="text" class=""
name="system.biodata.titrefamille" value="{{system.biodata.titrefamille}}" data-dtype="String" />
<label class="item-field-label-long2">Traits de caractères</label>
<input type="text" name="system.biodata.traitscaracteres" value="{{system.biodata.traitscaracteres}}" data-dtype="String" style="flex: 1;" />
</li>
<li class="flexrow item">
<label class="item-field-label-long2">Factions féériques</label> <input type="text" class=""
name="system.biodata.factionfeerique" value="{{system.biodata.factionfeerique}}"
data-dtype="String" />
</li>
<li class="flexrow item">
<label class="item-field-label-long2">Traits de caractères dominants</label> <input type="text" class=""
name="system.biodata.traitscaracteres" value="{{system.biodata.traitscaracteres}}"
data-dtype="String" />
</li>
<li class="flexrow item">
<label class="item-field-label-long2">Langues</label> <input type="text" class=""
name="system.biodata.langues" value="{{system.biodata.langues}}" data-dtype="String" />
<label class="item-field-label-long2">Langues</label>
<input type="text" name="system.biodata.langues" value="{{system.biodata.langues}}" data-dtype="String" style="flex: 1;" />
</li>
</ul>
</div>
</div>
<div class="grid grid-3col">
<div>
<div style="display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-top: 0.5rem;">
<!-- Colonne 1: Informations générales -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem;">
<div style="text-align: center; font-weight: bold; margin-bottom: 0.5rem; color: #8b6914; font-size: 0.9rem;">Informations générales</div>
<ul>
<li class="flexrow item">
<label class="generic-label">Fortune</label>
<input type="text" class="" name="system.biodata.fortune" value="{{system.biodata.fortune}}"
data-dtype="String" />
data-dtype="String" style="flex: 1;" />
</li>
<li class="flexrow item">
<label class="generic-label">Genre</label>
<input type="text" class="" name="system.biodata.sex" value="{{system.biodata.sex}}"
data-dtype="String" />
data-dtype="String" style="flex: 1;" />
</li>
<li class="item flexrow">
<label class="generic-label">Age</label>
<input type="text" class="" name="system.biodata.age" value="{{system.biodata.age}}"
data-dtype="String" />
data-dtype="String" style="flex: 1;" />
</li>
<li class="item flexrow">
<label class="generic-label">Type de taille</label>
<input type="text" class="" name="system.experience.typetaille" value="{{system.experience.typetaille}}"
data-dtype="String" style="flex: 1;" />
</li>
{{#if isGM}}
<li class="item flexrow">
<li class="item flexrow" style="align-items: center;">
<label class="generic-label">Fiche de Magie ?</label>
<input type="checkbox" class="item-field-label-short edit-item-data" name="system.biodata.magie"
{{checked system.biodata.magie}} />
@@ -842,53 +930,86 @@
</ul>
</div>
<div>
<!-- Colonne 2: Apparence Masquée -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem;">
<div style="text-align: center; font-weight: bold; margin-bottom: 0.5rem; color: #8b6914; font-size: 0.9rem;">Apparence Masquée</div>
<ul>
<li class="flexrow item">
<label class="generic-label">Description</label>
<input type="text" name="system.biodata.apparencemasquee" value="{{system.biodata.apparencemasquee}}" data-dtype="String" style="flex: 1;" />
</li>
<li class="item flexrow">
<label class="generic-label">Taille Masquée</label>
<label class="generic-label">Taille</label>
<input type="text" class="" name="system.biodata.taillemasquee" value="{{system.biodata.taillemasquee}}"
data-dtype="String" />
data-dtype="String" style="flex: 1;" />
</li>
<li class="item flexrow">
<label class="generic-label">Taille Démasquée</label>
<input type="text" class="" name="system.biodata.tailledemasquee"
value="{{system.biodata.tailledemasquee}}" data-dtype="String" />
<label class="generic-label">Poids</label>
<input type="text" class="" name="system.biodata.poidsmasquee" value="{{system.biodata.poidsmasquee}}"
data-dtype="String" style="flex: 1;" />
</li>
<li class="flexrow item">
<label class="generic-label">Type de taille</label>
<input type="text" class="" name="system.experience.typetaille" value="{{system.experience.typetaille}}"
data-dtype="String" />
</li>
<li class="flexrow item">
<label class="generic-label">Points d'héritage</label>
<input type="text" class="" name="system.rang.heritage.value" value="{{system.rang.heritage.value}}"
data-dtype="String" />
</li>
</ul>
</div>
<div>
<!-- Colonne 3: Apparence Démasquée -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem;">
<div style="text-align: center; font-weight: bold; margin-bottom: 0.5rem; color: #8b6914; font-size: 0.9rem;">Apparence Démasquée</div>
<ul>
<li class="item flexrow">
<label class="generic-label">Poids Masqué</label>
<input type="text" class="" name="system.biodata.poidsmasquee" value="{{system.biodata.poidsmasquee}}"
data-dtype="String" />
<li class="flexrow item">
<label class="generic-label">Description</label>
<input type="text" name="system.biodata.apparencedemasquee" value="{{system.biodata.apparencedemasquee}}" data-dtype="String" style="flex: 1;" />
</li>
<li class="item flexrow">
<label class="generic-label">Poids Démasqué</label>
<label class="generic-label">Taille</label>
<input type="text" class="" name="system.biodata.tailledemasquee"
value="{{system.biodata.tailledemasquee}}" data-dtype="String" style="flex: 1;" />
</li>
<li class="item flexrow">
<label class="generic-label">Poids</label>
<input type="text" class="" name="system.biodata.poidsdemasquee"
value="{{system.biodata.poidsdemasquee}}" data-dtype="String" />
value="{{system.biodata.poidsdemasquee}}" data-dtype="String" style="flex: 1;" />
</li>
</ul>
</div>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.5rem;">
<!-- Expérience -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem;">
<div style="text-align: center; font-weight: bold; margin-bottom: 0.5rem; color: #8b6914; font-size: 0.9rem;">Expérience</div>
<ul>
<li class="item flexrow">
<label class="generic-label">XP</label>
<input type="text" class="" name="system.experience.value" value="{{system.experience.value}}"
data-dtype="String" />
data-dtype="String" style="flex: 1;" />
</li>
<li class="item flexrow">
<label class="generic-label">XP pour tricher</label>
<input type="text" class="" name="system.experience.pourtricher"
value="{{system.experience.pourtricher}}" data-dtype="String" />
value="{{system.experience.pourtricher}}" data-dtype="String" style="flex: 1;" />
</li>
</ul>
</div>
<!-- Points d'héritage -->
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem;">
<div style="text-align: center; font-weight: bold; margin-bottom: 0.5rem; color: #8b6914; font-size: 0.9rem;">Héritage</div>
<ul>
<li class="flexrow item">
<label class="generic-label">Points d'héritage</label>
<input type="text" class="" name="system.rang.heritage.value" value="{{system.rang.heritage.value}}"
data-dtype="String" style="flex: 1;" />
</li>
</ul>
</div>
</div>
<div style="display: none;">
<div>
<ul>
<li class="flexrow item" style="display: none;">
<label class="item-field-label-long2">Nom humain (old)</label> <input type="text" class=""
name="system.biodata.nomhumain_old" value="" data-dtype="String" />
</li>
</ul>
</div>
@@ -906,40 +1027,40 @@
</div>
<div class="tab notes" data-group="primary" data-tab="notes">
<span>
<h3>Historique</h3>
</span>
<div class="medium-editor item-text-long-line">
{{editor description target="system.biodata.description" button=true owner=owner editable=editable}}
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem; margin-bottom: 0.75rem;">
<h3 style="color: #8b6914; margin-bottom: 0.5rem;">Historique</h3>
<div class="medium-editor item-text-long-line">
{{formInput systemFields.biodata.fields.description enriched=enrichedDescription value=system.biodata.description name="system.biodata.description" toggled=true}}
</div>
</div>
<span>
<h3>Notes diverses</h3>
</span>
<div class="medium-editor item-text-long-line">
{{editor playernotes target="system.biodata.playernotes" button=true owner=owner editable=editable}}
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem; margin-bottom: 0.75rem;">
<h3 style="color: #8b6914; margin-bottom: 0.5rem;">Notes diverses</h3>
<div class="medium-editor item-text-long-line">
{{formInput systemFields.biodata.fields.playernotes enriched=enrichedPlayernotes value=system.biodata.playernotes name="system.biodata.playernotes" toggled=true}}
</div>
</div>
<span>
<h3>Rêves étranges</h3>
</span>
<div class="medium-editor item-text-long-line">
{{editor revesetranges target="system.biodata.revesetranges" button=true owner=owner editable=editable}}
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem; margin-bottom: 0.75rem;">
<h3 style="color: #8b6914; margin-bottom: 0.5rem;">Rêves étranges</h3>
<div class="medium-editor item-text-long-line">
{{formInput systemFields.biodata.fields.revesetranges enriched=enrichedRevesetranges value=system.biodata.revesetranges name="system.biodata.revesetranges" toggled=true}}
</div>
</div>
<span>
<h3>Secrets découverts</h3>
</span>
<div class="medium-editor item-text-long-line">
{{editor secretsdecouverts target="system.biodata.secretsdecouverts" button=true owner=owner
editable=editable}}
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem; margin-bottom: 0.75rem;">
<h3 style="color: #8b6914; margin-bottom: 0.5rem;">Secrets découverts</h3>
<div class="medium-editor item-text-long-line">
{{formInput systemFields.biodata.fields.secretsdecouverts enriched=enrichedSecretsdecouverts value=system.biodata.secretsdecouverts name="system.biodata.secretsdecouverts" toggled=true}}
</div>
</div>
<span>
<h3>Questions en suspens</h3>
</span>
<div class="medium-editor item-text-long-line">
{{editor questions target="system.biodata.questions" button=true owner=owner editable=editable}}
<div style="background: rgba(56, 32, 32, 0.3); border-radius: 0.3rem; padding: 0.5rem; margin-bottom: 0.75rem;">
<h3 style="color: #8b6914; margin-bottom: 0.5rem;">Questions en suspens</h3>
<div class="medium-editor item-text-long-line">
{{formInput systemFields.biodata.fields.questions enriched=enrichedQuestions value=system.biodata.questions name="system.biodata.questions" toggled=true}}
</div>
</div>
</div>

View File

@@ -0,0 +1,176 @@
{{!-- Chat Card for Roll Results --}}
<div class="heritiers-chat-card">
{{!-- Header --}}
<div class="chat-card-header">
{{#if actorImg}}
<img class="chat-actor-avatar" src="{{actorImg}}" alt="{{alias}}" />
{{/if}}
<div class="chat-actor-info">
<h4 class="chat-actor-name">{{alias}}</h4>
{{#if competence}}
<div class="chat-action-name">{{competence.name}}{{#if arme}} - {{arme.name}}{{/if}}</div>
{{else if pouvoir}}
<div class="chat-action-name">{{pouvoir.name}}</div>
{{else if sort}}
<div class="chat-action-name">{{sort.name}}</div>
{{else if rang}}
<div class="chat-action-name">{{rang.label}}</div>
{{else}}
<div class="chat-action-name">{{carac.label}}</div>
{{/if}}
</div>
{{#if actionImg}}
<img class="chat-action-icon" src="{{actionImg}}" alt="{{name}}" />
{{/if}}
</div>
{{!-- Attack Type Badge --}}
{{#if attackType}}
<div class="chat-attack-badge">{{attackType}}</div>
{{/if}}
{{!-- Roll Calculation Grid --}}
{{#unless noRoll}}
<div class="chat-roll-grid">
<div class="chat-roll-item">
<span class="chat-roll-label">Carac</span>
<span class="chat-roll-value">{{carac.label}} ({{carac.value}})</span>
</div>
{{#if rang}}
<div class="chat-roll-item">
<span class="chat-roll-label">Rang</span>
<span class="chat-roll-value">{{rang.value}}</span>
</div>
{{/if}}
{{#if competence}}
<div class="chat-roll-item">
<span class="chat-roll-label">Compétence</span>
<span class="chat-roll-value">{{competence.system.niveau}}</span>
</div>
{{/if}}
{{#if useSpecialite}}
<div class="chat-roll-item">
<span class="chat-roll-label">Spécialité</span>
<span class="chat-roll-value">+1</span>
</div>
{{/if}}
<div class="chat-roll-item">
<span class="chat-roll-label">Formule</span>
<span class="chat-roll-value">{{diceFormula}}</span>
</div>
<div class="chat-roll-item">
<span class="chat-roll-label">Dé</span>
<span class="chat-roll-value chat-dice-result">{{diceResult}}</span>
</div>
</div>
{{/unless}}
{{!-- Result Display --}}
{{#unless noRoll}}
<div class="chat-result-box {{#if isSuccess}}success{{else}}{{#if isCriticalFailure}}critical-failure{{else}}failure{{/if}}{{/if}}">
<div class="chat-result-total">
<span class="chat-result-label">Total</span>
<span class="chat-result-number">{{finalResult}}</span>
</div>
{{#if (gt sdValue "-1")}}
<div class="chat-result-details">
<span>SD: {{sdValue}}</span>
<span>Marge: {{marge}}</span>
</div>
<div class="chat-result-status">
{{#if isCriticalSuccess}}
<i class="fas fa-star"></i> RÉUSSITE CRITIQUE !
{{else if isCriticalFailure}}
<i class="fas fa-skull"></i> ÉCHEC CRITIQUE !
{{else if isSuccess}}
<i class="fas fa-check"></i> Succès
{{else}}
<i class="fas fa-times"></i> Échec
{{/if}}
</div>
{{/if}}
{{#if isBrelan}}
<div class="chat-special-result"><i class="fas fa-dice"></i> Brelan !</div>
{{/if}}
{{#if isSuite}}
<div class="chat-special-result"><i class="fas fa-dice"></i> Suite !</div>
{{/if}}
</div>
{{/unless}}
{{!-- Tricherie Adjacent Faces --}}
{{#if adjacentFaces}}
<div class="chat-tricherie-box">
<span class="chat-tricherie-label">Faces adjacentes (2 pts Tricherie) :</span>
<div class="chat-tricherie-faces">
{{#each adjacentFaces as |value key|}}
<a class="roll-tricherie-2 chat-tricherie-face" data-dice-value="{{value}}">{{value}}</a>
{{/each}}
</div>
</div>
{{/if}}
{{!-- Details Section (Collapsible) --}}
{{#if pouvoir}}
<details class="chat-details-section">
<summary class="chat-details-summary"><i class="fas fa-magic"></i> Détails du pouvoir</summary>
<div class="chat-details-content">
<div><strong>Effet :</strong> {{pouvoir.system.effet}}</div>
{{#if (ne pouvoir.system.duree "")}}
<div><strong>Durée :</strong> {{pouvoir.system.duree}}</div>
{{/if}}
{{#if (ne pouvoir.system.portee "")}}
<div><strong>Portée :</strong> {{pouvoir.system.portee}}</div>
{{/if}}
{{#if (ne pouvoir.system.resistance "")}}
<div><strong>Résistance :</strong> {{pouvoir.system.resistance}}</div>
{{/if}}
{{#if (ne pouvoir.system.zoneeffet "")}}
<div><strong>Zone d'effet :</strong> {{pouvoir.system.zoneeffet}}</div>
{{/if}}
{{#if (ne pouvoir.system.cibles "")}}
<div><strong>Cibles :</strong> {{pouvoir.system.cibles}}</div>
{{/if}}
<div><strong>Points d'usage :</strong> {{pouvoirPointsUsage}}</div>
</div>
</details>
{{/if}}
{{#if sort}}
<details class="chat-details-section">
<summary class="chat-details-summary"><i class="fas fa-hat-wizard"></i> Détails du sort</summary>
<div class="chat-details-content">
{{#if (ne sort.system.duree "")}}
<div><strong>Durée :</strong> {{sort.system.duree}}</div>
{{/if}}
{{#if (ne sort.system.portee "")}}
<div><strong>Portée :</strong> {{sort.system.portee}}</div>
{{/if}}
{{#if (ne sort.system.ingredients "")}}
<div><strong>Ingrédients :</strong> {{sort.system.ingredients}}</div>
{{/if}}
{{#if (ne sort.system.resistance "")}}
<div><strong>Résistance :</strong> {{sort.system.resistance}}</div>
{{/if}}
{{#if spendEsprit}}
<div><strong>Points d'Esprit :</strong> 1</div>
{{else}}
<div><strong>Points d'Âme :</strong> {{sortPointsAme}}</div>
{{#if (eq sort.system.competence "Magie du Clan")}}
<div><strong>Souffle :</strong> {{sort.system.souffle}}</div>
<div><strong>Coût PV :</strong> 2</div>
{{/if}}
{{/if}}
</div>
</details>
{{/if}}
</div>

View File

@@ -1,145 +1,190 @@
<div class="chat-message-header">
{{#if actorImg}}
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
{{!-- Chat Card for Roll Results --}}
<div class="heritiers-chat-card">
{{!-- Header --}}
<div class="chat-card-header">
{{#if actorImg}}
<img class="chat-actor-avatar" src="{{actorImg}}" alt="{{alias}}" />
{{/if}}
<div class="chat-actor-info">
<h4 class="chat-actor-name">{{alias}}</h4>
{{#if competence}}
<div class="chat-action-name">{{competence.name}}{{#if arme}} - {{arme.name}}{{/if}}</div>
{{else if pouvoir}}
<div class="chat-action-name">{{pouvoir.name}}</div>
{{else if sort}}
<div class="chat-action-name">{{sort.name}}</div>
{{else if rang}}
<div class="chat-action-name">{{rang.label}}</div>
{{else}}
<div class="chat-action-name">{{carac.label}}</div>
{{/if}}
</div>
{{#if actionImg}}
<img class="chat-action-icon" src="{{actionImg}}" alt="{{name}}" />
{{/if}}
</div>
{{!-- Attack Type Badge --}}
{{#if attackType}}
<div class="chat-attack-badge">{{attackType}}</div>
{{/if}}
<h4 class=chat-actor-name>{{alias}}</h4>
</div>
<hr>
{{#if actionImg}}
<div>
<img class="chat-icon" src="{{actionImg}}" alt="{{name}}" />
</div>
{{/if}}
<div class="flexcol">
</div>
<div>
<ul>
<li class="heritiers-roll"><strong>Caractéristique :</strong> {{carac.label}} ({{carac.value}})</li>
{{!-- Roll Calculation Grid --}}
{{#unless noRoll}}
<div class="chat-roll-grid">
<div class="chat-roll-item">
<span class="chat-roll-label">Carac</span>
<span class="chat-roll-value">{{carac.label}} {{carac.value}}</span>
</div>
{{#if rang}}
<li><strong>{{rang.label}} :</strong> {{rang.value}}</li>
<div class="chat-roll-item">
<span class="chat-roll-label">Rang</span>
<span class="chat-roll-value">{{rang.value}}</span>
</div>
{{/if}}
{{#if competence}}
<li><strong>Compétence :</strong> {{competence.name}} ({{competence.system.niveau}})</li>
<div class="chat-roll-item">
<span class="chat-roll-label">Compétence</span>
<span class="chat-roll-value">{{competence.name}} {{competence.system.niveau}}</span>
</div>
{{/if}}
{{#if useSpecialite}}
<li>Bonus de spécialité +1</li>
<div class="chat-roll-item">
<span class="chat-roll-label">Spécialité</span>
<span class="chat-roll-value">+1</span>
</div>
{{/if}}
{{/if}}
{{#if arme}}
<li><strong>Attaque avec : </strong>{{arme.name}}</li>
{{#if (eq mode "assommer")}}
<li>Attaque pour assommer</li>
{{/if}}
{{/if}}
{{#if pouvoir}}
<li><strong>Pouvoir</strong> : {{pouvoir.name}}</li>
<li><strong>Effet</strong> : {{pouvoir.system.effet}}</li>
{{#if (ne pouvoir.system.duree "")}}
<li><strong>Durée :</strong> {{pouvoir.system.duree}}</li>
{{/if}}
{{#if (ne pouvoir.system.portee "")}}
<li><strong>Portée :</strong> {{pouvoir.system.portee}}</li>
{{/if}}
{{#if (ne pouvoir.system.resistance "")}}
<li><strong>Résistance :</strong> {{pouvoir.system.resistance}}</li>
{{/if}}
{{#if (ne pouvoir.system.resistanceautre "")}}
<li><strong>Résistance autre :</strong> {{pouvoir.system.resistanceautre}}</li>
{{/if}}
{{#if (ne pouvoir.system.zoneeffet "")}}
<li><strong>Zone d'effet :</strong> {{pouvoir.system.zoneeffet}}</li>
{{/if}}
{{#if (ne pouvoir.system.cibles "")}}
<li><strong>Cibles :</strong> {{pouvoir.system.cibles}}</li>
{{/if}}
{{#if (ne pouvoir.system.virulence "")}}
<li><strong>Virulence :</strong> {{pouvoir.system.virulence}}</li>
{{/if}}
<li><strong>Points d'usage consommés :</strong> {{pouvoirPointsUsage}}</li>
{{/if}}
{{#if sort}}
<li><strong>Sort :</strong> {{sort.name}}</li>
{{#if (ne sort.system.resistance "")}}
<li><strong>Résistance :</strong> {{sort.system.resistance}}</li>
{{/if}}
{{#if (ne sort.system.concentration "")}}
<li><strong>Concentration :</strong> {{sort.system.concentration}}</li>
{{/if}}
{{#if (ne sort.system.duree "")}}
<li><strong>Durée :</strong> {{sort.system.duree}}</li>
{{/if}}
{{#if (ne sort.system.portee "")}}
<li><strong>Portée :</strong> {{sort.system.portee}}</li>
{{/if}}
{{#if (ne sort.system.ingredients "")}}
<li><strong>Ingrédients :</strong> {{sort.system.ingredients}}</li>
{{/if}}
{{#if (ne sort.system.coutactivation "")}}
<li><strong>Coût d'activation :</strong> {{sort.system.coutactivation}}</li>
{{/if}}
{{#if spendEsprit}}
<li><strong>Points d'Esprit dépensé :</strong> 1</li>
{{else}}
<li><strong>Coût en points d'Âme</strong> : {{sortPointsAme}}</li>
{{#if (eq sort.system.competence "Magie du Clan")}}
<li><strong>Souffle :</strong> {{sort.system.souffle}}</li>
<li><strong>Cout en PV :</strong> 2</li>
{{/if}}
{{/if}}
{{/if}}
<div class="chat-roll-item">
<span class="chat-roll-label">Formule</span>
<span class="chat-roll-value">{{diceFormula}}</span>
</div>
<div class="chat-roll-item">
<span class="chat-roll-label">Dé</span>
<span class="chat-roll-value chat-dice-result">{{mainDice}} ({{diceValue}})</span>
</div>
{{#if forcedValue}}
<li>Vous dépensez 2 points de Tricherie et utilisez une face adjacente du dé !</li>
<div class="chat-roll-item chat-tricherie-used">
<span class="chat-roll-label">Tricherie</span>
<span class="chat-roll-value">Face {{forcedValue}} utilisée (2 pts)</span>
</div>
{{/if}}
</div>
{{/unless}}
{{#if noRoll}}
{{else}}
<li><strong>Formule :</strong> {{diceFormula}}</li>
<li><strong>Résultat du dé :</strong> {{diceResult}} </li>
{{#if adjacentFaces}}
<li><strong>Faces adjacentes :</strong>
{{#each adjacentFaces as |value key|}}
<a class="roll-tricherie-2" data-dice-value="{{value}}">{{value}}</a>
{{/each}}
</li>
{{/if}}
<li><strong>Total : {{finalResult}} {{#if (gt sdValue "-1")}}(Marge : {{marge}}){{/if}}</strong></li>
{{!-- Result Display --}}
{{#unless noRoll}}
<div class="chat-result-box {{#if isSuccess}}success{{else}}{{#if isCriticalFailure}}critical-failure{{else}}failure{{/if}}{{/if}}">
<div class="chat-result-total">
<span class="chat-result-label">Total</span>
<span class="chat-result-number">{{finalResult}}</span>
</div>
{{#if (gt sdValue "-1")}}
<li><strong>Seuil de difficulté :</strong> {{sdValue}}</li>
{{#if isSuccess}}
<li class="chat-success">Succès...
</li>
{{else}}
<li class="chat-failure">Echec...</li>
<div class="chat-result-details">
<span>SD: {{sdValue}}</span>
<span>Marge: {{marge}}</span>
</div>
<div class="chat-result-status">
{{#if isCriticalSuccess}}
<i class="fas fa-star"></i> RÉUSSITE CRITIQUE !
{{else if isCriticalFailure}}
<i class="fas fa-skull"></i> ÉCHEC CRITIQUE !
{{else if isSuccess}}
<i class="fas fa-check"></i> Succès
{{else}}
<i class="fas fa-times"></i> Échec
{{/if}}
</div>
{{/if}}
{{/if}}
{{#if isBrelan}}
<li class="chat-success">Brelan sur 3 dés !</li>
<div class="chat-special-result"><i class="fas fa-dice"></i> Brelan !</div>
{{/if}}
{{#if isSuite}}
<li class="chat-success">Suite sur 3 dés !</li>
<div class="chat-special-result"><i class="fas fa-dice"></i> Suite !</div>
{{/if}}
{{!-- Damage display for successful weapon attacks --}}
{{#if (and arme isSuccess degatsArme)}}
<div class="chat-damage-display">
<i class="fas fa-heart-broken"></i> <strong>Dégâts : {{degatsArme}}</strong>
</div>
{{/if}}
</div>
{{/unless}}
{{#if isCriticalSuccess}}
<li class="chat-success">Réussite Critique !!!</li>
{{/if}}
{{#if isCriticalFailure}}
<li class="chat-failure">Echec Critique !!!</li>
{{/if}}
{{/if}}
{{!-- Tricherie Adjacent Faces --}}
{{#if (and adjacentFaces (not forcedValue))}}
<div class="chat-tricherie-box">
<span class="chat-tricherie-label">Faces adjacentes (2 pts Tricherie) :</span>
<div class="chat-tricherie-faces">
{{#each adjacentFaces as |value key|}}
<a class="roll-tricherie-2 chat-tricherie-face" data-dice-value="{{value}}">{{value}}</a>
{{/each}}
</div>
</div>
{{/if}}
</ul>
</div>
{{!-- Details Section (Collapsible) --}}
{{#if pouvoir}}
<details class="chat-details-section">
<summary class="chat-details-summary"><i class="fas fa-magic"></i> Détails du pouvoir</summary>
<div class="chat-details-content">
<div><strong>Effet :</strong> {{pouvoir.system.effet}}</div>
{{#if (ne pouvoir.system.duree "")}}
<div><strong>Durée :</strong> {{pouvoir.system.duree}}</div>
{{/if}}
{{#if (ne pouvoir.system.portee "")}}
<div><strong>Portée :</strong> {{pouvoir.system.portee}}</div>
{{/if}}
{{#if (ne pouvoir.system.resistance "")}}
<div><strong>Résistance :</strong> {{pouvoir.system.resistance}}</div>
{{/if}}
{{#if (ne pouvoir.system.zoneeffet "")}}
<div><strong>Zone d'effet :</strong> {{pouvoir.system.zoneeffet}}</div>
{{/if}}
{{#if (ne pouvoir.system.cibles "")}}
<div><strong>Cibles :</strong> {{pouvoir.system.cibles}}</div>
{{/if}}
<div><strong>Points d'usage :</strong> {{pouvoirPointsUsage}}</div>
</div>
</details>
{{/if}}
{{#if sort}}
<details class="chat-details-section">
<summary class="chat-details-summary"><i class="fas fa-hat-wizard"></i> Détails du sort</summary>
<div class="chat-details-content">
{{#if (ne sort.system.duree "")}}
<div><strong>Durée :</strong> {{sort.system.duree}}</div>
{{/if}}
{{#if (ne sort.system.portee "")}}
<div><strong>Portée :</strong> {{sort.system.portee}}</div>
{{/if}}
{{#if (ne sort.system.ingredients "")}}
<div><strong>Ingrédients :</strong> {{sort.system.ingredients}}</div>
{{/if}}
{{#if (ne sort.system.resistance "")}}
<div><strong>Résistance :</strong> {{sort.system.resistance}}</div>
{{/if}}
{{#if spendEsprit}}
<div><strong>Points d'Esprit :</strong> 1</div>
{{else}}
<div><strong>Points d'Âme :</strong> {{sortPointsAme}}</div>
{{#if (eq sort.system.competence "Magie du Clan")}}
<div><strong>Souffle :</strong> {{sort.system.souffle}}</div>
<div><strong>Coût PV :</strong> 2</div>
{{/if}}
{{/if}}
</div>
</details>
{{/if}}
</div>

View File

@@ -1,10 +1,10 @@
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.hbs this}}
{{> systems/fvtt-les-heritiers/templates/partial-item-header.hbs }}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.hbs this}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.hbs }}
{{> systems/fvtt-les-heritiers/templates/partial-item-description.hbs this}}
{{> systems/fvtt-les-heritiers/templates/partial-item-description.hbs }}
<div class="tab details" data-group="primary" data-tab="details">
<ul class="item-list alternate-list">

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -37,4 +37,4 @@
</div>
</section>
</form>
</section>

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -118,4 +118,4 @@
</div>
</section>
</form>
</section>

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -17,4 +17,4 @@
</div>
</section>
</form>
</section>

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -19,4 +19,4 @@
</div>
</section>
</form>
</section>

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -78,4 +78,4 @@
</div>
</section>
</form>
</section>

View File

@@ -73,7 +73,27 @@
{{/if}}
<li class="flexrow item">
<h3>Spécialités</h3>
<h3 class="specialites-title">Spécialités</h3>
</li>
<li class="flexrow item">
<ul>
{{#each system.specialites as |specialite key|}}
<li class="specialite-item item flexrow" data-specialite-index="{{key}}">
<input type="text" class="padd-right color-class-common edit-specialite" value="{{specialite.name}}"
data-dtype="String" data-action="editSpecialite" />
<a class="item-control delete-specialite" title="Supprimer une specialité" data-action="deleteSpecialite"><i
class="fas fa-trash"></i></a>
</li>
<li class="specialite-item item flexrow" data-specialite-index="{{key}}">
<textarea row="4" type="text" class="padd-right color-class-common edit-specialite-description"
data-dtype="String" data-action="editSpecialiteDescription">{{specialite.description}}</textarea>
</li>
<hr>
{{/each}}
</ul>
</li>
<li class="flexrow item">
<button id="add-specialite" class="chat-card-button" data-action="addSpecialite">Ajouter une Spécialité</button>
</li>
</ul>

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -101,4 +101,4 @@
</div>
</section>
</form>
</section>

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -37,4 +37,4 @@
</div>
</section>
</form>
</section>

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -19,4 +19,4 @@
</div>
</section>
</form>
</section>

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -37,4 +37,4 @@
</div>
</section>
</form>
</section>

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -76,4 +76,4 @@
</div>
</section>
</form>
</section>

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -156,4 +156,4 @@
</div>
</section>
</form>
</section>

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -23,4 +23,4 @@
</div>
</section>
</form>
</section>

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -61,4 +61,4 @@ c <li class="flexrow item">
</div>
</section>
</form>
</section>

View File

@@ -1,4 +1,4 @@
<form class="{{cssClass}}" autocomplete="off">
<section class="{{cssClass}}" autocomplete="off">
{{> systems/fvtt-les-heritiers/templates/partial-item-header.html}}
{{> systems/fvtt-les-heritiers/templates/partial-item-nav.html}}
@@ -133,4 +133,4 @@
</div>
</section>
</form>
</section>

View File

@@ -21,4 +21,3 @@
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
</section>

View File

@@ -1,23 +0,0 @@
<li class="item flexrow list-item list-item-shadow" data-item-id="{{equip._id}}">
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img" src="{{equip.img}}" /></a>
{{#if (eq level 1)}}
<span class="item-name-label">{{equip.name}}</span>
{{else}}
<span class="item-name-label-level2">{{equip.name}}</span>
{{/if}}
<span class="item-field-label-long"><label>
{{equip.system.quantity}}
(<a class="quantity-minus plus-minus-button"> -</a>/<a class="quantity-plus plus-minus-button">+</a>)
</label>
</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
{{#if (eq level 1)}}
<a class="item-control item-equip" title="Worn">{{#if equip.system.equipped}}<i
class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
{{/if}}
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>

View File

@@ -1,6 +1,3 @@
<div class="tab description" data-group="primary" data-tab="description">
<div class="editor">
{{editor description target="system.description" button=true owner=owner editable=editable}}
</div>
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</div>
</section>

View File

@@ -1,9 +1,18 @@
<header class="sheet-header">
<div class="flexrow background-sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}" />
<img class="item-sheet-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name" /></h1>
</div>
<div class="header-actions">
<button
type="button"
data-action="postItem"
class="chat-card-button"
data-tooltip="Poster dans le chat"
>
<i class="fas fa-comment"></i>
</button>
</div>
</div>
</header>
</section>

View File

@@ -3,4 +3,3 @@
<a class="item" data-tab="description">Description</a>
<a class="item" data-tab="details">Details</a>
</nav>
</section>

View File

@@ -3,7 +3,7 @@
<li class="item flexrow">
{{#if isPNJ}}
<span class="item-field-label-long roll-style">
<a class="roll-root-competence item-field-label-short" data-attr-key="{{keyProfil}}">
<a class="roll-root-competence item-field-label-short" data-action="rollRootCompetence" data-attr-key="{{keyProfil}}">
<h3><label class="items-title-text">{{upperFirst keyProfil}}</label></h3>
</a>
</span>
@@ -19,7 +19,7 @@
{{#if isPNJ}}
<span class="item-field-label-short">
<input type="text" data-dtype="Number" class="item-field-label-short"
name="system.competences.{{keyProfil}}.niveau" value="{{skillDef.niveau}}">
name="system.competences.{{keyProfil}}.niveau" value="{{skillDef.niveau}}" style="text-align: center;">
</span>
{{/if}}
<div class="item-filler">&nbsp;</div>
@@ -27,7 +27,7 @@
{{#each skillDef.skills as |skill key|}}
<li class="item flexrow " data-item-id="{{skill._id}}" data-item-type="competence">
<span class="item-field-label-long roll-style"><a class="roll-competence item-field-label-short"
data-attr-key="tochoose">{{skill.name}}</a></span>
data-action="rollCompetence" data-attr-key="tochoose">{{skill.name}}</a></span>
<select class="item-field-label-short edit-item-data" type="text" data-item-field="niveau"
value="{{skill.system.niveau}}" data-dtype="Number">
{{selectOptions @root.config.listNiveau selected=skill.system.niveau}}
@@ -35,8 +35,8 @@
<input type="checkbox" class="item-field-label-short edit-item-data" data-tooltip="Prédilection" data-item-field="predilection" {{checked
skill.system.predilection}} />
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
<a class="item-control item-edit" title="Edit Item" data-action="editItem"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item" data-action="deleteItem"><i class="fas fa-trash"></i></a>
</div>
</li>
{{#if (count skill.specList)}}
@@ -45,5 +45,4 @@
{{/each}}
</ul>
</div>
</section>
</div>

View File

@@ -1,48 +0,0 @@
<div class="sheet-box color-bg-archetype">
<ul class="item-list alternate-list">
<li class="item flexrow">
{{#if isPNJ}}
<span class="item-field-label-long roll-style">
<a class="roll-root-competence item-field-label-short" data-attr-key="{{keyProfil}}">
<h3><label class="items-title-text">{{upperFirst keyProfil}}</label></h3>
</a>
</span>
{{else}}
<span class="item-field-label-long">
<h3><label class="items-title-text">{{upperFirst keyProfil}}</label></h3>
</span>
{{/if}}
<span class="item-field-label-short">
<label class="short-label">Niveau</label>
</span>
{{#if isPNJ}}
<span class="item-field-label-short">
<input type="text" data-dtype="Number" class="item-field-label-short"
name="system.competences.{{keyProfil}}.niveau" value="{{skillDef.niveau}}">
</span>
{{/if}}
<div class="item-filler">&nbsp;</div>
</li>
{{#each skillDef.skills as |skill key|}}
<li class="item flexrow " data-item-id="{{skill._id}}" data-item-type="competence">
<span class="item-field-label-long roll-style"><a class="roll-competence item-field-label-short"
data-attr-key="tochoose">{{skill.name}}</a></span>
<select class="item-field-label-short edit-item-data" type="text" data-item-field="niveau"
value="{{skill.system.niveau}}" data-dtype="Number">
{{selectOptions @root.config.listNiveau selected=skill.system.niveau}}
</select>
<input type="checkbox" class="item-field-label-short edit-item-data" data-tooltip="Prédilection" data-item-field="predilection" {{checked
skill.system.predilection}} />
<div class="item-controls item-controls-fixed">
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
</li>
{{#if (count skill.specList)}}
<span class="specialisarion-margin specialisation-label item-field-label-long2">{{skill.specList}}</span>
{{/if}}
{{/each}}
</ul>
</div>

View File

@@ -1,168 +1,189 @@
<form class="skill-roll-dialog">
<header class="roll-dialog-header">
{{#if img}}
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
{{!-- Header --}}
<div class="dialog-header">
{{#if img}}
<img class="actor-icon" src="{{img}}" alt="{{name}}" />
{{/if}}
<div class="dialog-title">
<h3>{{name}}</h3>
{{#if competence}}
<div class="competence-name">
{{competence.name}}
{{#if arme}}
- {{arme.name}}
{{#if attackType}}
<span style="color: #8b6914; font-weight: bold;"> ({{attackType}})</span>
{{/if}}
{{/if}}
</div>
{{else if pouvoir}}
<div class="competence-name">
{{pouvoir.name}}
</div>
{{else if sort}}
<div class="competence-name">
{{sort.name}}
</div>
{{else if title}}
<div class="competence-name">
{{title}}
</div>
{{/if}}
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
</header>
</div>
</div>
<div class="flexcol">
{{!-- Main Content --}}
<div class="dialog-content">
{{#if (eq mode "rang")}}
<div class="flexrow">
<span class="roll-dialog-label">{{rang.label}}</span>
<span class="roll-dialog-label">{{rang.value}}</span>
</div>
{{/if}}
<div class="form-group">
<label>{{rang.label}}</label>
<input type="text" value="{{rang.value}}" disabled />
</div>
{{/if}}
{{#if (eq mode "carac")}}
<div class="flexrow">
<span class="roll-dialog-label">Caracteristique</span>
<span class="roll-dialog-label">{{carac.label}} ({{carac.value}})</span>
</div>
{{else}}
<div class="flexrow">
<span class="roll-dialog-label">Caracteristique</span>
<select class="status-small-label color-class-common" id="caracKey" type="text" name="caracKey" value="caracKey"
data-dtype="string">
{{selectOptions caracList selected=caracKey valueAttr="abbrev" nameAttr="abbrev" labelAttr="label"}}
</select>
</div>
{{/if}}
{{#if (eq mode "carac")}}
<div class="form-group">
<label>Caractéristique</label>
<input type="text" value="{{carac.label}} ({{carac.value}})" disabled />
</div>
{{else}}
<div class="form-group">
<label>Caractéristique</label>
<select id="caracKey" name="caracKey">
{{selectOptions caracList selected=caracKey valueAttr="abbrev" nameAttr="abbrev" labelAttr="label"}}
</select>
</div>
{{/if}}
{{#if caracMessage}}
<div class="flexrow">
<span class="roll-dialog-label">{{caracMessage}}</span>
</div>
{{/if}}
{{#if caracMessage}}
<div class="info-message">
{{caracMessage}}
</div>
{{/if}}
{{#if competence}}
<div class="flexrow">
<span class="roll-dialog-label">{{competence.name}}</span>
<span class="small-label roll-dialog-label">{{competence.system.niveau}}</span>
</div>
{{#if competence.nbSpec}}
<div class="flexrow">
<span class="roll-dialog-label">Spécialités : {{competence.specList}}</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Bonus de spécialité ?</span>
<input type="checkbox" class="item-field-label-short" id="useSpecialite" {{checked useSpecialite}} />
</div>
{{/if}}
{{/if}}
{{#if competence}}
<div class="form-group">
<label>{{competence.name}}</label>
<input type="text" value="{{competence.system.niveau}}" disabled />
</div>
{{#if competence.nbSpec}}
<div class="info-message">
Spécialités : {{competence.specList}}
</div>
<div class="form-group">
<label>Bonus de spécialité ?</label>
<input type="checkbox" id="useSpecialite" {{checked useSpecialite}} />
</div>
{{/if}}
{{/if}}
{{#if pouvoir}}
<div class="flexrow">
<span class="roll-dialog-label">Pouvoir : </span>
<span class="small-label roll-dialog-label">{{pouvoir.name}}</span>
{{#if pouvoir}}
<div class="form-group weapon-section">
<div class="form-group">
<label>Pouvoir</label>
<input type="text" value="{{pouvoir.name}}" disabled />
</div>
<div class="flexrow">
<span class="roll-dialog-label">Activation : </span>
<span class="small-label roll-dialog-label">{{pouvoir.system.activation}}</span>
<div class="form-group">
<label>Activation</label>
<input type="text" value="{{pouvoir.system.activation}}" disabled />
</div>
{{#if pouvoirBase}}
<div class="flexrow">
<span class="roll-dialog-label">{{pouvoirBase.label}} : </span>
<span class="small-label roll-dialog-label">{{pouvoirBase.value}}</span>
<div class="form-group">
<label>{{pouvoirBase.label}}</label>
<input type="text" value="{{pouvoirBase.value}}" disabled />
</div>
{{/if}}
<div class="flexrow">
<span class="roll-dialog-label">Points d'usage consommés : </span>
<select class="status-small-label color-class-common" id="pouvoirPointsUsage" type="Number"
name="pouvoirPointsUsage" value="pouvoirPointsUsage" data-dtype="Number">
<div class="form-group">
<label>Points d'usage consommés</label>
<select id="pouvoirPointsUsage" name="pouvoirPointsUsage">
{{selectOptions config.pointsUsageList selected=pouvoirPointsUsage}}
</select>
</div>
{{/if}}
</div>
{{/if}}
{{#each rulesMalus as |malus key|}}
<div class="flexrow">
<span class="roll-dialog-label">{{malus.name}}</span>
<span class="small-label roll-dialog-label">{{malus.value}}</span>
</div>
{{/each}}
{{#each rulesMalus as |malus key|}}
<div class="form-group">
<label>{{malus.name}}</label>
<input type="text" value="{{malus.value}}" disabled />
</div>
{{/each}}
{{#if (and arme arme.system.isMelee)}}
<div class="flexrow">
<span class="roll-dialog-label">Attaque à plusieurs </span>
<select class="roll-dialog-label" id="bonus-attaque-plusieurs" type="text" value="{{bonusAttaquePlusieurs}}"
data-dtype="Number">
{{selectOptions config.attaquePlusieursList selected=pouvoirPointsUsage}}
{{#if (and arme arme.system.isMelee)}}
<div class="combat-modifiers">
<div class="form-group">
<label>Attaque à plusieurs</label>
<select id="bonus-attaque-plusieurs" name="bonus-attaque-plusieurs">
{{selectOptions config.attaquePlusieursList selected=bonusAttaquePlusieurs}}
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Attaque dans le dos ?</span>
<input type="checkbox" class="item-field-label-short" id="attaqueDos" {{checked attaqueDos}} />
<div class="form-group">
<label>Attaque dans le dos ?</label>
<input type="checkbox" id="attaqueDos" {{checked attaqueDos}} />
</div>
<div class="flexrow">
<span class="roll-dialog-label">Attaque à deux armes </span>
<select class="roll-dialog-label" id="bonus-attaque-deux-armes" type="text" value="{{attaqueDeuxArmes}}"
data-dtype="Number">
{{selectOptions config.attaque2ArmesListe selected=attaqueDeuxArmes valueAttr="value" nameAttr="value"
labelAttr="label"}}
<div class="form-group">
<label>Attaque à deux armes</label>
<select id="bonus-attaque-deux-armes" name="bonus-attaque-deux-armes">
{{selectOptions config.attaque2ArmesListe selected=attaqueDeuxArmes valueAttr="value" nameAttr="value" labelAttr="label"}}
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Seconde arme</span>
<select class="roll-dialog-label" id="bonus-attaque-seconde-arme" type="text" value="{{secondeArme}}"
data-dtype="String">
<div class="form-group">
<label>Seconde arme</label>
<select id="bonus-attaque-seconde-arme" name="bonus-attaque-seconde-arme">
{{selectOptions armes selected=secondeArme valueAttr="id" nameAttr="id" labelAttr="name"}}
</select>
</div>
{{/if}}
</div>
{{/if}}
{{#if arme}}
<li class="flexrow item">
<label class="roll-dialog-label">Ataque ciblée : </label>
<select class="roll-dialog-label" type="text" id="attaque-cible" value="{{attaqueCible}}" data-dtype="String">
{{selectOptions config.attaqueCible selected=attaqueCible}}
</select>
</li>
{{/if}}
{{#if arme}}
<div class="form-group">
<label>Attaque ciblée</label>
<select id="attaque-cible" name="attaque-cible">
{{selectOptions config.attaqueCible selected=attaqueCible}}
</select>
</div>
{{/if}}
{{#if sort}}
<div class="flexrow">
<span class="roll-dialog-label">Sort : </span>
<span class="small-label roll-dialog-label">{{sort.name}} ({{sort.system.niveau}})</span>
{{#if sort}}
<div class="form-group weapon-section">
<div class="form-group">
<label>Sort</label>
<input type="text" value="{{sort.name}} ({{sort.system.niveau}})" disabled />
</div>
<div class="flexrow">
<span class="roll-dialog-label">Duree : </span>
<span class="small-label roll-dialog-label">{{sort.system.duree}}</span>
<div class="form-group">
<label>Durée</label>
<input type="text" value="{{sort.system.duree}}" disabled />
</div>
<div class="flexrow">
<span class="roll-dialog-label">Portee : </span>
<span class="small-label roll-dialog-label">{{sort.system.portee}}</span>
<div class="form-group">
<label>Portée</label>
<input type="text" value="{{sort.system.portee}}" disabled />
</div>
<div class="flexrow">
<span class="roll-dialog-label">Ingrédients : </span>
<span class="small-label roll-dialog-label">{{sort.system.ingredients}}</span>
<div class="form-group">
<label>Ingrédients</label>
<input type="text" value="{{sort.system.ingredients}}" disabled />
</div>
{{/if}}
<div class="flexrow">
<span class="roll-dialog-label">Bonus/Malus </span>
<select class="roll-dialog-label" id="bonus-malus-context" type="text" value="{{bonusMalusContext}}"
data-dtype="Number">
{{selectOptions config.bonusMalusContext selected=bonusMalusContext valueAttr="value" nameAttr="value"
labelAttr="label"}}
</select>
</div>
{{#if cacheDifficulte}}
<div class="flexrow">
<span class="roll-dialog-label">Difficulté Cachée/Inconnue</span>
</div>
{{else}}
<div class="flexrow">
<span class="roll-dialog-label">Difficulté</span>
<select class="status-small-label color-class-common" id="sdValue" type="text" name="sdValue" value="sdValue"
data-dtype="string">
{{selectOptions sdList selected=sdValue}}
</select>
</div>
{{/if}}
</div>
{{/if}}
<div class="form-group">
<label>Bonus/Malus</label>
<select id="bonus-malus-context" name="bonus-malus-context">
{{selectOptions config.bonusMalusContext selected=bonusMalusContext valueAttr="value" nameAttr="value" labelAttr="label"}}
</select>
</div>
</form>
{{#if cacheDifficulte}}
<div class="info-message">
Difficulté Cachée/Inconnue
</div>
{{else}}
<div class="form-group">
<label>Difficulté</label>
<select id="sdValue" name="sdValue">
{{selectOptions sdList selected=sdValue}}
</select>
</div>
{{/if}}
</div>