Initial release for FoundryVTT
This commit is contained in:
416
templates/actors/employe-sheet.hbs
Normal file
416
templates/actors/employe-sheet.hbs
Normal file
@@ -0,0 +1,416 @@
|
||||
<div class="dnc-sheet dnc-actor-sheet dnc-employe-sheet">
|
||||
<header class="sheet-header compact">
|
||||
<div class="portrait">
|
||||
<img src="{{actor.img}}" alt="{{actor.name}}">
|
||||
<button type="button" class="icon-button" data-action="editImage" aria-label="Modifier l'image" title="Modifier l'image"><i class="fa-solid fa-image"></i></button>
|
||||
</div>
|
||||
<div class="identity-grid">
|
||||
<label>
|
||||
<span>Nom</span>
|
||||
<input type="text" name="name" value="{{actor.name}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Concept</span>
|
||||
<input type="text" name="system.concept" value="{{system.concept}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Anciennete</span>
|
||||
<input type="number" name="system.anciennete.rang" value="{{system.anciennete.rang}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Libelle</span>
|
||||
<input type="text" name="system.anciennete.libelle" value="{{system.anciennete.libelle}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>DV</span>
|
||||
<div class="counter-field">
|
||||
<input type="text" name="system.sante.dv" value="{{system.sante.dv}}">
|
||||
<button type="button" data-action="rollHitDice" aria-label="Lancer le de de vie" title="Lancer le de de vie"><i class="fa-solid fa-dice-d20"></i></button>
|
||||
</div>
|
||||
</label>
|
||||
<label class="with-controls">
|
||||
<span>PV</span>
|
||||
<div class="counter-field">
|
||||
<button type="button" data-action="adjustCounter" data-path="system.sante.pv.value" data-delta="-1">-</button>
|
||||
<input type="number" name="system.sante.pv.value" value="{{system.sante.pv.value}}">
|
||||
<span>/</span>
|
||||
<input type="number" name="system.sante.pv.max" value="{{system.sante.pv.max}}">
|
||||
<button type="button" data-action="adjustCounter" data-path="system.sante.pv.value" data-delta="1">+</button>
|
||||
</div>
|
||||
</label>
|
||||
<label>
|
||||
<span>Attaques melee</span>
|
||||
<input type="number" name="system.combat.attaquesCorpsACorps" value="{{system.combat.attaquesCorpsACorps}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Attaques distance</span>
|
||||
<input type="number" name="system.combat.attaquesDistance" value="{{system.combat.attaquesDistance}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Bonus degats</span>
|
||||
<input type="number" name="system.combat.degatsBonus" value="{{system.combat.degatsBonus}}">
|
||||
</label>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<nav class="sheet-tabs" aria-label="Onglets de la fiche">
|
||||
<button type="button" class="sheet-tab" data-action="setTab" data-tab="combat" data-tab-button>Combat & materiel</button>
|
||||
<button type="button" class="sheet-tab" data-action="setTab" data-tab="magie" data-tab-button>Magie & capacites</button>
|
||||
<button type="button" class="sheet-tab" data-action="setTab" data-tab="profil" data-tab-button>Profil & langues</button>
|
||||
</nav>
|
||||
|
||||
<section class="sheet-tab-panel" data-tab-panel="combat">
|
||||
<section class="sheet-columns">
|
||||
<section class="sheet-card characteristics-card">
|
||||
<h2>Caracteristiques</h2>
|
||||
<div class="characteristic-list">
|
||||
{{#each characteristics}}
|
||||
<div class="characteristic-row">
|
||||
<button type="button" class="roll-button" data-action="rollCharacteristic" data-characteristic="{{this.key}}" aria-label="Lancer {{this.label}}" title="Lancer {{this.label}}">
|
||||
<i class="fa-solid fa-dice-d20"></i>
|
||||
</button>
|
||||
<span class="characteristic-label">{{this.label}}</span>
|
||||
<input type="number" name="system.caracteristiques.{{this.key}}.value" value="{{this.value}}" aria-label="{{this.label}}">
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="sheet-card item-section traits-card">
|
||||
<header class="section-header">
|
||||
<h2>{{traitsSection.label}}</h2>
|
||||
<button type="button" class="text-button" data-action="createItem" data-type="{{traitsSection.createType}}">+ Ajouter</button>
|
||||
</header>
|
||||
<div class="item-list">
|
||||
{{#if traitsSection.items.length}}
|
||||
{{#each traitsSection.items}}
|
||||
<article class="item" data-item-id="{{this.id}}">
|
||||
<img src="{{this.img}}" alt="{{this.name}}">
|
||||
<div class="item-main">
|
||||
<div class="item-title-row">
|
||||
<strong>{{this.name}}</strong>
|
||||
{{#if this.usageLabel}}<span class="item-meta">{{this.usageLabel}}</span>{{/if}}
|
||||
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
|
||||
</div>
|
||||
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
|
||||
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="item-actions">
|
||||
{{#if this.canRoll}}
|
||||
<button type="button" data-action="{{this.rollAction}}" aria-label="Lancer {{this.name}}" title="Lancer {{this.name}}"><i class="fa-solid fa-dice-d20"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canRollDamage}}
|
||||
<button type="button" data-action="rollDamage" aria-label="Lancer les degats de {{this.name}}" title="Lancer les degats"><i class="fa-solid fa-burst"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</article>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
<div class="item-dropzone {{#if traitsSection.items.length}}has-items{{/if}}" data-item-type="{{traitsSection.createType}}">
|
||||
Glissez-deposez ici les {{traitsSection.label}}.
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section class="sheet-sections">
|
||||
{{#each combatSections}}
|
||||
<section class="sheet-card item-section">
|
||||
<header class="section-header">
|
||||
<h2>{{this.label}}</h2>
|
||||
<button type="button" class="text-button" data-action="createItem" data-type="{{this.createType}}">+ Ajouter</button>
|
||||
</header>
|
||||
<div class="item-list">
|
||||
{{#if this.items.length}}
|
||||
{{#each this.items}}
|
||||
<article class="item" data-item-id="{{this.id}}">
|
||||
<img src="{{this.img}}" alt="{{this.name}}">
|
||||
<div class="item-main">
|
||||
<div class="item-title-row">
|
||||
<strong>{{this.name}}</strong>
|
||||
{{#if this.usageLabel}}<span class="item-meta">{{this.usageLabel}}</span>{{/if}}
|
||||
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
|
||||
</div>
|
||||
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
|
||||
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="item-actions">
|
||||
{{#if this.canRoll}}
|
||||
<button type="button" data-action="{{this.rollAction}}" aria-label="Lancer {{this.name}}" title="Lancer {{this.name}}"><i class="fa-solid fa-dice-d20"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canRollDamage}}
|
||||
<button type="button" data-action="rollDamage" aria-label="Lancer les degats de {{this.name}}" title="Lancer les degats"><i class="fa-solid fa-burst"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</article>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
<div class="item-dropzone {{#if this.items.length}}has-items{{/if}}" data-item-type="{{this.createType}}">
|
||||
Glissez-deposez ici les {{this.label}}.
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{/each}}
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section class="sheet-tab-panel" data-tab-panel="magie">
|
||||
<section class="sheet-columns magic-layout">
|
||||
<section class="sheet-column">
|
||||
<section class="sheet-card magic-resource-card">
|
||||
<h2>Ressources magiques</h2>
|
||||
<div class="magic-resource-grid">
|
||||
<div class="readonly-field">
|
||||
<span>Rang</span>
|
||||
<p>{{magicResources.rank}}</p>
|
||||
</div>
|
||||
<label>
|
||||
<span>Focus</span>
|
||||
<select name="system.magie.focus.delta">{{selectOptions config.usageDieOptions selected=system.magie.focus.delta localize=false}}</select>
|
||||
</label>
|
||||
<div class="readonly-field">
|
||||
<span>Focus actif</span>
|
||||
<p>{{magicResources.focusDisplay}}</p>
|
||||
</div>
|
||||
<label>
|
||||
<span>Chaos</span>
|
||||
<select name="system.magie.chaos.delta">{{selectOptions config.usageDieOptions selected=system.magie.chaos.delta localize=false}}</select>
|
||||
</label>
|
||||
</div>
|
||||
<div class="chaos-table-wrapper">
|
||||
<h3>Table du Chaos</h3>
|
||||
<p class="chaos-table-caption">Aberration magique</p>
|
||||
<table class="chaos-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Δ</th>
|
||||
<th>Resultat</th>
|
||||
<th>Effet</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{#each chaosTable}}
|
||||
<tr>
|
||||
<td>{{this.value}}</td>
|
||||
<td>{{this.title}}</td>
|
||||
<td>{{this.effect}}</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<section class="sheet-card item-section">
|
||||
<header class="section-header">
|
||||
<h2>{{capacitySection.label}}</h2>
|
||||
<button type="button" class="text-button" data-action="createItem" data-type="{{capacitySection.createType}}">+ Ajouter</button>
|
||||
</header>
|
||||
<div class="item-list">
|
||||
{{#if capacitySection.items.length}}
|
||||
{{#each capacitySection.items}}
|
||||
<article class="item" data-item-id="{{this.id}}">
|
||||
<img src="{{this.img}}" alt="{{this.name}}">
|
||||
<div class="item-main">
|
||||
<div class="item-title-row">
|
||||
<strong>{{this.name}}</strong>
|
||||
{{#if this.usageLabel}}<span class="item-meta">{{this.usageLabel}}</span>{{/if}}
|
||||
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
|
||||
</div>
|
||||
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
|
||||
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="item-actions">
|
||||
{{#if this.canRoll}}
|
||||
<button type="button" data-action="{{this.rollAction}}" aria-label="Lancer {{this.name}}" title="Lancer {{this.name}}"><i class="fa-solid fa-dice-d20"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canRollDamage}}
|
||||
<button type="button" data-action="rollDamage" aria-label="Lancer les degats de {{this.name}}" title="Lancer les degats"><i class="fa-solid fa-burst"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</article>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
<div class="item-dropzone {{#if capacitySection.items.length}}has-items{{/if}}" data-item-type="{{capacitySection.createType}}">
|
||||
Glissez-deposez ici les {{capacitySection.label}}.
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section class="sheet-column">
|
||||
<section class="sheet-card item-section">
|
||||
<header class="section-header">
|
||||
<h2>{{spellSection.label}}</h2>
|
||||
<button type="button" class="text-button" data-action="createItem" data-type="{{spellSection.createType}}">+ Ajouter</button>
|
||||
</header>
|
||||
<div class="item-list">
|
||||
{{#if spellSection.items.length}}
|
||||
{{#each spellSection.items}}
|
||||
<article class="item" data-item-id="{{this.id}}">
|
||||
<img src="{{this.img}}" alt="{{this.name}}">
|
||||
<div class="item-main">
|
||||
<div class="item-title-row">
|
||||
<strong>{{this.name}}</strong>
|
||||
{{#if this.usageLabel}}<span class="item-meta">{{this.usageLabel}}</span>{{/if}}
|
||||
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
|
||||
</div>
|
||||
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
|
||||
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="item-actions">
|
||||
{{#if this.canRoll}}
|
||||
<button type="button" data-action="{{this.rollAction}}" aria-label="Lancer {{this.name}}" title="Lancer {{this.name}}"><i class="fa-solid fa-dice-d20"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canRollDamage}}
|
||||
<button type="button" data-action="rollDamage" aria-label="Lancer les degats de {{this.name}}" title="Lancer les degats"><i class="fa-solid fa-burst"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</article>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
<div class="item-dropzone {{#if spellSection.items.length}}has-items{{/if}}" data-item-type="{{spellSection.createType}}">
|
||||
Glissez-deposez ici les {{spellSection.label}}.
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section class="sheet-tab-panel" data-tab-panel="profil">
|
||||
<section class="sheet-card profile-card profile-card-wide">
|
||||
<h2>Profil</h2>
|
||||
<div class="profile-layout">
|
||||
<div class="profile-column">
|
||||
<label>
|
||||
<span>Objectif personnel</span>
|
||||
<textarea name="system.profil.objectifPersonnel" rows="5">{{system.profil.objectifPersonnel}}</textarea>
|
||||
</label>
|
||||
<label>
|
||||
<span>Notes</span>
|
||||
<textarea name="system.notes" rows="10">{{system.notes}}</textarea>
|
||||
</label>
|
||||
</div>
|
||||
<div class="profile-column">
|
||||
<div class="profile-counters">
|
||||
<label class="with-controls">
|
||||
<span>Suspicion</span>
|
||||
<div class="counter-field">
|
||||
<button type="button" data-action="adjustCounter" data-path="system.profil.suspicion" data-delta="-1">-</button>
|
||||
<input type="number" name="system.profil.suspicion" value="{{system.profil.suspicion}}">
|
||||
<button type="button" data-action="adjustCounter" data-path="system.profil.suspicion" data-delta="1">+</button>
|
||||
</div>
|
||||
</label>
|
||||
<label class="with-controls">
|
||||
<span>Avertissements</span>
|
||||
<div class="counter-field">
|
||||
<button type="button" data-action="adjustCounter" data-path="system.profil.avertissements" data-delta="-1">-</button>
|
||||
<input type="number" name="system.profil.avertissements" value="{{system.profil.avertissements}}">
|
||||
<button type="button" data-action="adjustCounter" data-path="system.profil.avertissements" data-delta="1">+</button>
|
||||
</div>
|
||||
</label>
|
||||
<label class="with-controls">
|
||||
<span>Missions reussies</span>
|
||||
<div class="counter-field">
|
||||
<button type="button" data-action="adjustCounter" data-path="system.profil.missionsReussies" data-delta="-1">-</button>
|
||||
<input type="number" name="system.profil.missionsReussies" value="{{system.profil.missionsReussies}}">
|
||||
<button type="button" data-action="adjustCounter" data-path="system.profil.missionsReussies" data-delta="1">+</button>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<section class="favor-card">
|
||||
<div class="section-header favor-header">
|
||||
<h2>Faveurs</h2>
|
||||
</div>
|
||||
<p class="favor-help">Les coups de pouce se choisissent dans les fenetres de jet. Les services brulent automatiquement une faveur.</p>
|
||||
<div class="favor-list">
|
||||
{{#each favorEntries}}
|
||||
<div class="favor-row">
|
||||
<label>
|
||||
<span>{{this.label}}</span>
|
||||
<select name="system.faveurs.{{this.key}}.delta">{{selectOptions ../config.usageDieOptions selected=this.delta localize=false}}</select>
|
||||
</label>
|
||||
<div class="favor-meta">{{this.deltaLabel}}</div>
|
||||
<button type="button" class="text-button" data-action="useFavorService" data-department="{{this.key}}" {{#unless this.hasFavor}}disabled{{/unless}}>Service</button>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</section>
|
||||
<label>
|
||||
<span>Notes MJ</span>
|
||||
<textarea name="system.gmnotes" rows="6">{{system.gmnotes}}</textarea>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="sheet-sections compact-sections">
|
||||
{{#each profileSections}}
|
||||
<section class="sheet-card item-section">
|
||||
<header class="section-header">
|
||||
<h2>{{this.label}}</h2>
|
||||
<button type="button" class="text-button" data-action="createItem" data-type="{{this.createType}}">+ Ajouter</button>
|
||||
</header>
|
||||
<div class="item-list">
|
||||
{{#if this.items.length}}
|
||||
{{#each this.items}}
|
||||
<article class="item" data-item-id="{{this.id}}">
|
||||
<img src="{{this.img}}" alt="{{this.name}}">
|
||||
<div class="item-main">
|
||||
<div class="item-title-row">
|
||||
<strong>{{this.name}}</strong>
|
||||
{{#if this.usageLabel}}<span class="item-meta">{{this.usageLabel}}</span>{{/if}}
|
||||
{{#if this.protectionLabel}}<span class="item-meta">{{this.protectionLabel}}</span>{{/if}}
|
||||
</div>
|
||||
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
|
||||
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="item-actions">
|
||||
{{#if this.canRoll}}
|
||||
<button type="button" data-action="{{this.rollAction}}" aria-label="Lancer {{this.name}}" title="Lancer {{this.name}}"><i class="fa-solid fa-dice-d20"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canRollDamage}}
|
||||
<button type="button" data-action="rollDamage" aria-label="Lancer les degats de {{this.name}}" title="Lancer les degats"><i class="fa-solid fa-burst"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</article>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
<div class="item-dropzone {{#if this.items.length}}has-items{{/if}}" data-item-type="{{this.createType}}">
|
||||
Glissez-deposez ici les {{this.label}}.
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{/each}}
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
184
templates/actors/pnj-sheet.hbs
Normal file
184
templates/actors/pnj-sheet.hbs
Normal file
@@ -0,0 +1,184 @@
|
||||
<div class="dnc-sheet dnc-actor-sheet dnc-pnj-sheet">
|
||||
<header class="sheet-header compact">
|
||||
<div class="portrait">
|
||||
<img src="{{actor.img}}" alt="{{actor.name}}">
|
||||
<button type="button" class="icon-button" data-action="editImage" aria-label="Modifier l'image" title="Modifier l'image"><i class="fa-solid fa-image"></i></button>
|
||||
</div>
|
||||
<div class="identity-grid two-columns">
|
||||
<label>
|
||||
<span>Nom</span>
|
||||
<input type="text" name="name" value="{{actor.name}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Espece</span>
|
||||
<input type="text" name="system.espece" value="{{system.espece}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Categorie</span>
|
||||
<input type="text" name="system.categorie" value="{{system.categorie}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Role</span>
|
||||
<input type="text" name="system.role" value="{{system.role}}">
|
||||
</label>
|
||||
<label class="span-two">
|
||||
<span>Resume</span>
|
||||
<input type="text" name="system.resume" value="{{system.resume}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>DV</span>
|
||||
<div class="counter-field">
|
||||
<input type="text" name="system.sante.dv" value="{{system.sante.dv}}">
|
||||
<button type="button" data-action="rollHitDice" aria-label="Lancer le de de vie" title="Lancer le de de vie"><i class="fa-solid fa-dice-d20"></i></button>
|
||||
</div>
|
||||
</label>
|
||||
<label class="with-controls">
|
||||
<span>PV</span>
|
||||
<div class="counter-field">
|
||||
<button type="button" data-action="adjustCounter" data-path="system.sante.pv.value" data-delta="-1">-</button>
|
||||
<input type="number" name="system.sante.pv.value" value="{{system.sante.pv.value}}">
|
||||
<span>/</span>
|
||||
<input type="number" name="system.sante.pv.max" value="{{system.sante.pv.max}}">
|
||||
<button type="button" data-action="adjustCounter" data-path="system.sante.pv.value" data-delta="1">+</button>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section class="sheet-columns pnj-layout">
|
||||
<section class="sheet-column">
|
||||
<section class="sheet-card pnj-combat-card">
|
||||
<h2>Combat</h2>
|
||||
<div class="pnj-combat-grid">
|
||||
<label>
|
||||
<span>ARM</span>
|
||||
<div class="counter-field">
|
||||
<select name="system.defense.armure.delta">{{selectOptions config.usageDieOptions selected=system.defense.armure.delta localize=false}}</select>
|
||||
<button type="button" data-action="rollPnjArmor" aria-label="Lancer l'armure" title="Lancer l'armure"><i class="fa-solid fa-shield-halved"></i></button>
|
||||
</div>
|
||||
</label>
|
||||
<div class="readonly-field">
|
||||
<span>Protection stockee</span>
|
||||
<p>{{storedArmor}}</p>
|
||||
</div>
|
||||
<label>
|
||||
<span>COU</span>
|
||||
<div class="counter-field">
|
||||
<select name="system.defense.courage.delta">{{selectOptions config.usageDieOptions selected=system.defense.courage.delta localize=false}}</select>
|
||||
<button type="button" data-action="rollPnjCourage" aria-label="Lancer le courage" title="Lancer le courage"><i class="fa-solid fa-heart"></i></button>
|
||||
</div>
|
||||
</label>
|
||||
<div class="readonly-field">
|
||||
<span>Valeurs</span>
|
||||
<p>ARM {{armorDisplay}} · COU {{courageDisplay}}</p>
|
||||
</div>
|
||||
<label>
|
||||
<span>ATT</span>
|
||||
<input type="text" name="system.attaque.nom" value="{{system.attaque.nom}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Degats</span>
|
||||
<div class="counter-field">
|
||||
<input type="text" name="system.attaque.degats" value="{{system.attaque.degats}}">
|
||||
{{#if hasAttackDamage}}
|
||||
<button type="button" data-action="rollPnjAttackDamage" aria-label="Lancer les degats de l'attaque" title="Lancer les degats"><i class="fa-solid fa-burst"></i></button>
|
||||
{{/if}}
|
||||
</div>
|
||||
</label>
|
||||
<label class="span-two">
|
||||
<span>Notes d'attaque</span>
|
||||
<input type="text" name="system.attaque.notes" value="{{system.attaque.notes}}">
|
||||
</label>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="sheet-card">
|
||||
<h2>Description</h2>
|
||||
<textarea name="system.description" rows="8" aria-label="Description">{{system.description}}</textarea>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section class="sheet-column">
|
||||
<section class="sheet-card item-section">
|
||||
<header class="section-header">
|
||||
<h2>{{spellSection.label}}</h2>
|
||||
<button type="button" class="text-button" data-action="createItem" data-type="{{spellSection.createType}}">+ Ajouter</button>
|
||||
</header>
|
||||
<div class="item-list">
|
||||
{{#if spellSection.items.length}}
|
||||
{{#each spellSection.items}}
|
||||
<article class="item" data-item-id="{{this.id}}">
|
||||
<img src="{{this.img}}" alt="{{this.name}}">
|
||||
<div class="item-main">
|
||||
<div class="item-title-row">
|
||||
<strong>{{this.name}}</strong>
|
||||
{{#if this.usageLabel}}<span class="item-meta">{{this.usageLabel}}</span>{{/if}}
|
||||
</div>
|
||||
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
|
||||
{{#if this.system.degats}}<p>Degats : {{this.system.degats}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="item-actions">
|
||||
{{#if this.canRoll}}
|
||||
<button type="button" data-action="{{this.rollAction}}" aria-label="Lancer {{this.name}}" title="Lancer {{this.name}}"><i class="fa-solid fa-dice-d20"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canRollDamage}}
|
||||
<button type="button" data-action="rollDamage" aria-label="Lancer les degats de {{this.name}}" title="Lancer les degats"><i class="fa-solid fa-burst"></i></button>
|
||||
{{/if}}
|
||||
{{#if this.canUse}}
|
||||
<button type="button" data-action="rollUsage" aria-label="Utiliser {{this.name}}" title="Utiliser {{this.name}}"><i class="fa-solid fa-hourglass-half"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</article>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
<div class="item-dropzone {{#if spellSection.items.length}}has-items{{/if}}" data-item-type="{{spellSection.createType}}">
|
||||
Glissez-deposez ici les {{spellSection.label}}.
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="sheet-card item-section">
|
||||
<header class="section-header">
|
||||
<h2>{{capacitySection.label}}</h2>
|
||||
<button type="button" class="text-button" data-action="createItem" data-type="{{capacitySection.createType}}">+ Ajouter</button>
|
||||
</header>
|
||||
<div class="item-list">
|
||||
{{#if capacitySection.items.length}}
|
||||
{{#each capacitySection.items}}
|
||||
<article class="item" data-item-id="{{this.id}}">
|
||||
<img src="{{this.img}}" alt="{{this.name}}">
|
||||
<div class="item-main">
|
||||
<div class="item-title-row">
|
||||
<strong>{{this.name}}</strong>
|
||||
{{#if this.usageLabel}}<span class="item-meta">{{this.usageLabel}}</span>{{/if}}
|
||||
</div>
|
||||
{{#if this.system.effet}}<p>{{this.system.effet}}</p>{{/if}}
|
||||
{{#if this.system.description}}<p>{{this.system.description}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="item-actions">
|
||||
{{#if this.canRoll}}
|
||||
<button type="button" data-action="{{this.rollAction}}" aria-label="Lancer {{this.name}}" title="Lancer {{this.name}}"><i class="fa-solid fa-dice-d20"></i></button>
|
||||
{{/if}}
|
||||
<button type="button" data-action="postItem" aria-label="Poster {{this.name}} dans le chat" title="Poster dans le chat"><i class="fa-solid fa-message"></i></button>
|
||||
<button type="button" data-action="editItem" aria-label="Editer {{this.name}}" title="Editer"><i class="fa-solid fa-pen"></i></button>
|
||||
<button type="button" data-action="deleteItem" aria-label="Supprimer {{this.name}}" title="Supprimer"><i class="fa-solid fa-trash"></i></button>
|
||||
</div>
|
||||
</article>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
<div class="item-dropzone {{#if capacitySection.items.length}}has-items{{/if}}" data-item-type="{{capacitySection.createType}}">
|
||||
Glissez-deposez ici les {{capacitySection.label}}.
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="sheet-card">
|
||||
<h2>Notes</h2>
|
||||
<textarea name="system.notes" rows="8" aria-label="Notes">{{system.notes}}</textarea>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
30
templates/chat/chaos-card.hbs
Normal file
30
templates/chat/chaos-card.hbs
Normal file
@@ -0,0 +1,30 @@
|
||||
<section class="dnc-chat-card dnc-chat-card-chaos">
|
||||
<header class="chat-card-header">
|
||||
<div class="chat-card-heading">
|
||||
<p class="chat-card-kicker">Chaos</p>
|
||||
<h2>{{title}}</h2>
|
||||
<p class="chat-card-subtitle">La magie opere malgre l'echec ; le MJ determine les consequences.</p>
|
||||
</div>
|
||||
<div class="chat-card-total">
|
||||
<span>Jet</span>
|
||||
<strong>{{value}}</strong>
|
||||
</div>
|
||||
</header>
|
||||
<div class="chat-pill-row">
|
||||
<span class="chat-pill success">Sort maintenu</span>
|
||||
<span class="chat-pill">Avant {{before}}</span>
|
||||
<span class="chat-pill">Apres {{after}}</span>
|
||||
</div>
|
||||
{{#if chaosEntry}}
|
||||
<div class="chat-chaos-result">
|
||||
<p class="chat-chaos-result-title">{{value}} · {{chaosEntry.title}}</p>
|
||||
<p class="chat-note">{{chaosEntry.effect}}</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if degraded}}
|
||||
<p class="chat-note warning">Le de du Chaos descend d'un cran.</p>
|
||||
{{/if}}
|
||||
{{#if exhausted}}
|
||||
<p class="chat-note warning">Le de du Chaos est trop faible pour etre reutilise dans le Donjon.</p>
|
||||
{{/if}}
|
||||
</section>
|
||||
29
templates/chat/damage-application-card.hbs
Normal file
29
templates/chat/damage-application-card.hbs
Normal file
@@ -0,0 +1,29 @@
|
||||
<section class="dnc-chat-card dnc-chat-card-damage dnc-chat-card-damage-application">
|
||||
<header class="chat-card-header">
|
||||
<div class="chat-card-heading">
|
||||
<p class="chat-card-kicker">Application</p>
|
||||
<h2>{{title}}</h2>
|
||||
<p class="chat-card-subtitle">{{subtitle}}</p>
|
||||
</div>
|
||||
<div class="chat-card-total">
|
||||
<span>PV</span>
|
||||
<strong>{{total}}</strong>
|
||||
</div>
|
||||
</header>
|
||||
<div class="chat-pill-row">
|
||||
<span class="chat-pill">Brut {{incoming}}</span>
|
||||
{{#if useArmor}}<span class="chat-pill {{#if armorAbsorbed}}success{{else}}failure{{/if}}">{{armorLabel}} {{armorAbsorbed}}</span>{{/if}}
|
||||
<span class="chat-pill success">Encaisse {{total}}</span>
|
||||
</div>
|
||||
{{#if sourceLabel}}<p class="chat-note"><strong>Source</strong> : {{sourceLabel}}</p>{{/if}}
|
||||
{{#if useArmor}}
|
||||
<p class="chat-note">
|
||||
{{#if armorAvailable}}
|
||||
<strong>{{armorLabel}}</strong> : {{armorBefore}} -> {{armorAfter}}
|
||||
{{else}}
|
||||
<strong>Armure</strong> : aucune protection enregistrée
|
||||
{{/if}}
|
||||
</p>
|
||||
{{/if}}
|
||||
<p class="chat-note"><strong>PV</strong> : {{pvBefore}} -> {{pvAfter}} / {{pvMax}}</p>
|
||||
</section>
|
||||
48
templates/chat/damage-card.hbs
Normal file
48
templates/chat/damage-card.hbs
Normal file
@@ -0,0 +1,48 @@
|
||||
<section class="dnc-chat-card dnc-chat-card-damage">
|
||||
<header class="chat-card-header">
|
||||
<div class="chat-card-heading">
|
||||
<p class="chat-card-kicker">Impact</p>
|
||||
<h2>{{title}}</h2>
|
||||
{{#if subtitle}}<p class="chat-card-subtitle">{{subtitle}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="chat-card-total">
|
||||
<span>Total</span>
|
||||
<strong>{{total}}</strong>
|
||||
</div>
|
||||
</header>
|
||||
<div class="chat-pill-row">
|
||||
{{#if modeLabel}}<span class="chat-pill">{{modeLabel}}</span>{{/if}}
|
||||
<span class="chat-pill success">Dé {{keptDieLabel}}</span>
|
||||
{{#if bonus}}<span class="chat-pill">Bonus +{{bonus}}</span>{{/if}}
|
||||
</div>
|
||||
<p class="chat-formula">{{formula}}</p>
|
||||
{{#if rollDieLabels.[1]}}
|
||||
<div class="chat-keyline">
|
||||
<span class="chat-keyline-label">Dés</span>
|
||||
<p class="roll-values">{{#each rollDieLabels}}<span>{{this}}</span>{{/each}}</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
<p class="chat-note"><strong>Base</strong> : {{baseDamage}}{{#if bonus}} · <strong>Bonus</strong> : +{{bonus}}{{/if}}</p>
|
||||
<div class="chat-targeting">
|
||||
<label class="chat-control">
|
||||
<span class="chat-keyline-label">Cible</span>
|
||||
<select class="chat-select" data-role="damage-target" {{#unless hasTargets}}disabled{{/unless}}>
|
||||
{{#if hasTargets}}
|
||||
{{#each targets}}
|
||||
<option value="{{this.tokenUuid}}">{{this.label}}</option>
|
||||
{{/each}}
|
||||
{{else}}
|
||||
<option value="">Aucune cible sur la scène</option>
|
||||
{{/if}}
|
||||
</select>
|
||||
</label>
|
||||
<div class="chat-actions chat-actions-inline">
|
||||
<button type="button" class="chat-action-button" data-action="applyDamage" data-damage="{{total}}" data-use-armor="false" data-source-label="{{sourceLabel}}" {{#unless hasTargets}}disabled{{/unless}}>
|
||||
<i class="fa-solid fa-heart-crack"></i> Appliquer
|
||||
</button>
|
||||
<button type="button" class="chat-action-button" data-action="applyDamage" data-damage="{{total}}" data-use-armor="true" data-source-label="{{sourceLabel}}" {{#unless hasTargets}}disabled{{/unless}}>
|
||||
<i class="fa-solid fa-shield-halved"></i> Avec armure
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
17
templates/chat/favor-card.hbs
Normal file
17
templates/chat/favor-card.hbs
Normal file
@@ -0,0 +1,17 @@
|
||||
<section class="dnc-chat-card dnc-chat-card-favor">
|
||||
<header class="chat-card-header">
|
||||
<div class="chat-card-heading">
|
||||
<p class="chat-card-kicker">Reseau</p>
|
||||
<h2>{{title}}</h2>
|
||||
{{#if subtitle}}<p class="chat-card-subtitle">{{subtitle}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="chat-card-seal {{#if autoSpent}}failure{{else}}success{{/if}}">
|
||||
{{kindLabel}}
|
||||
</div>
|
||||
</header>
|
||||
<div class="chat-pill-row">
|
||||
<span class="chat-pill">Avant {{before}}</span>
|
||||
<span class="chat-pill">Apres {{after}}</span>
|
||||
</div>
|
||||
<p class="chat-note">{{note}}</p>
|
||||
</section>
|
||||
23
templates/chat/hit-dice-card.hbs
Normal file
23
templates/chat/hit-dice-card.hbs
Normal file
@@ -0,0 +1,23 @@
|
||||
<section class="dnc-chat-card dnc-chat-card-hit-dice">
|
||||
<header class="chat-card-header">
|
||||
<div class="chat-card-heading">
|
||||
<p class="chat-card-kicker">Vitalite</p>
|
||||
<h2>{{title}}</h2>
|
||||
<p class="chat-card-subtitle">{{actorName}}</p>
|
||||
</div>
|
||||
<div class="chat-card-total">
|
||||
<span>Total</span>
|
||||
<strong>{{total}}</strong>
|
||||
</div>
|
||||
</header>
|
||||
<div class="chat-pill-row">
|
||||
<span class="chat-pill">DV {{formula}}</span>
|
||||
</div>
|
||||
<p class="chat-formula">{{formula}}</p>
|
||||
{{#if dieValues.length}}
|
||||
<div class="chat-keyline">
|
||||
<span class="chat-keyline-label">Des</span>
|
||||
<p class="roll-values">{{#each dieValues}}<span>{{this}}</span>{{/each}}</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
</section>
|
||||
43
templates/chat/initiative-card.hbs
Normal file
43
templates/chat/initiative-card.hbs
Normal file
@@ -0,0 +1,43 @@
|
||||
<section class="dnc-chat-card dnc-chat-card-initiative">
|
||||
<header class="initiative-header">
|
||||
<div class="chat-card-heading">
|
||||
<p class="chat-card-kicker">Ordre de marche</p>
|
||||
<h2>{{title}}</h2>
|
||||
<p class="chat-card-subtitle">{{actorName}}</p>
|
||||
{{#if modeLabel}}<p class="chat-card-subtitle">{{modeLabel}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="initiative-total">
|
||||
<span class="initiative-total-label">Total</span>
|
||||
<strong>{{total}}</strong>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="initiative-breakdown">
|
||||
<div class="initiative-part">
|
||||
<span class="initiative-part-label">d20</span>
|
||||
<strong>{{die}}</strong>
|
||||
</div>
|
||||
<div class="initiative-operator">+</div>
|
||||
<div class="initiative-part">
|
||||
<span class="initiative-part-label">DEX</span>
|
||||
<strong>{{dex}}</strong>
|
||||
</div>
|
||||
<div class="initiative-operator">+</div>
|
||||
<div class="initiative-part">
|
||||
<span class="initiative-part-label">Bonus</span>
|
||||
<strong>{{bonus}}</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="initiative-formula">{{formula}}</p>
|
||||
{{#if dieValues.[1]}}
|
||||
<p class="roll-values">Lancers : {{#each dieValues}}<span>{{this}}</span>{{/each}}</p>
|
||||
{{/if}}
|
||||
|
||||
{{#if syncedCombat}}
|
||||
<div class="initiative-sync">
|
||||
<span class="chat-pill success">Combat synchronise</span>
|
||||
<p>{{syncedCombat.name}} · rang {{syncedCombat.rank}} / {{syncedCombat.total}}</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
</section>
|
||||
20
templates/chat/item-card.hbs
Normal file
20
templates/chat/item-card.hbs
Normal file
@@ -0,0 +1,20 @@
|
||||
<section class="dnc-chat-card dnc-chat-card-item">
|
||||
<header class="chat-card-header">
|
||||
<div class="chat-card-heading">
|
||||
<p class="chat-card-kicker">Objet</p>
|
||||
<h2>{{item.name}}</h2>
|
||||
<p class="chat-card-subtitle">{{item.type}}</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="chat-item-body">
|
||||
{{#if item.img}}<img class="chat-item-image" src="{{item.img}}" alt="{{item.name}}">{{/if}}
|
||||
<div class="chat-item-content">
|
||||
<div class="chat-pill-row">
|
||||
{{#if usageLabel}}<span class="chat-pill">De d'usage {{usageLabel}}</span>{{/if}}
|
||||
{{#if item.system.degats}}<span class="chat-pill">Degats {{item.system.degats}}</span>{{/if}}
|
||||
</div>
|
||||
{{#if item.system.effet}}<p class="chat-note"><strong>Effet</strong> : {{item.system.effet}}</p>{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{#if item.system.description}}<div class="chat-description">{{{item.system.description}}}</div>{{/if}}
|
||||
</section>
|
||||
38
templates/chat/roll-card.hbs
Normal file
38
templates/chat/roll-card.hbs
Normal file
@@ -0,0 +1,38 @@
|
||||
<section class="dnc-chat-card dnc-chat-card-roll">
|
||||
<header class="chat-card-header">
|
||||
<div class="chat-card-heading">
|
||||
<p class="chat-card-kicker">Resolution</p>
|
||||
<h2>{{title}}</h2>
|
||||
{{#if subtitle}}<p class="chat-card-subtitle">{{subtitle}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="chat-card-seal {{#if success}}success{{else}}failure{{/if}}">
|
||||
{{#if success}}OK{{else}}KO{{/if}}
|
||||
</div>
|
||||
</header>
|
||||
<div class="chat-pill-row">
|
||||
<span class="chat-pill {{#if success}}success{{else}}failure{{/if}}">{{#if success}}Reussite{{else}}Echec{{/if}}</span>
|
||||
{{#if modeLabel}}<span class="chat-pill">{{modeLabel}}</span>{{/if}}
|
||||
{{#if favorLabel}}<span class="chat-pill">Faveur {{favorLabel}}</span>{{/if}}
|
||||
{{#if targetPillLabel}}<span class="chat-pill">{{targetPillLabel}} {{targetPillValue}}</span>{{else}}<span class="chat-pill">Cible {{target}}</span>{{/if}}
|
||||
{{#if keptPillLabel}}<span class="chat-pill">{{keptPillLabel}} {{keptPillValue}}</span>{{else}}<span class="chat-pill">Garde {{kept}}</span>{{/if}}
|
||||
</div>
|
||||
<div class="chat-keyline">
|
||||
<span class="chat-keyline-label">Lancers</span>
|
||||
<p class="roll-values">{{#each values}}<span>{{this}}</span>{{/each}}</p>
|
||||
</div>
|
||||
{{#if favorNote}}
|
||||
<p class="chat-note"><strong>Faveur</strong> : {{favorNote}}</p>
|
||||
{{/if}}
|
||||
{{#if showDamageButton}}
|
||||
<div class="chat-actions">
|
||||
<button type="button" class="chat-action-button" data-action="rollChatDamage" data-item-uuid="{{itemUuid}}">
|
||||
<i class="fa-solid fa-burst"></i> Lancer les degats
|
||||
</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
<ul class="chat-details chat-details-ornate">
|
||||
{{#each details}}
|
||||
<li><strong>{{this.label}}</strong> : {{this.value}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</section>
|
||||
72
templates/chat/spell-card.hbs
Normal file
72
templates/chat/spell-card.hbs
Normal file
@@ -0,0 +1,72 @@
|
||||
<section class="dnc-chat-card dnc-chat-card-spell">
|
||||
<header class="chat-card-header">
|
||||
<div class="chat-card-heading">
|
||||
<p class="chat-card-kicker">Magie</p>
|
||||
<h2>{{title}}</h2>
|
||||
{{#if subtitle}}<p class="chat-card-subtitle">{{subtitle}}</p>{{/if}}
|
||||
</div>
|
||||
<div class="chat-card-seal {{#if success}}success{{else}}failure{{/if}}">
|
||||
{{#if success}}OK{{else}}KO{{/if}}
|
||||
</div>
|
||||
</header>
|
||||
<div class="chat-pill-row">
|
||||
<span class="chat-pill {{#if success}}success{{else}}failure{{/if}}">{{#if success}}Reussite{{else}}Echec{{/if}}</span>
|
||||
{{#if modeLabel}}<span class="chat-pill">{{modeLabel}}</span>{{/if}}
|
||||
{{#if favorLabel}}<span class="chat-pill">Faveur {{favorLabel}}</span>{{/if}}
|
||||
<span class="chat-pill">{{targetPillLabel}} {{targetPillValue}}</span>
|
||||
<span class="chat-pill">Jet {{keptPillValue}}</span>
|
||||
</div>
|
||||
<div class="chat-keyline">
|
||||
<span class="chat-keyline-label">Lancers</span>
|
||||
<p class="roll-values">{{#each values}}<span>{{this}}</span>{{/each}}</p>
|
||||
</div>
|
||||
{{#if autoDisadvantage}}
|
||||
<p class="chat-note">
|
||||
<strong>Desavantage automatique</strong> :
|
||||
{{#if autoDisadvantageCanceled}}
|
||||
le cout du sort depasse le rang du lanceur, mais une faveur l'a annule.
|
||||
{{else}}
|
||||
le cout du sort depasse le rang du lanceur.
|
||||
{{/if}}
|
||||
</p>
|
||||
{{/if}}
|
||||
{{#if favorNote}}
|
||||
<p class="chat-note"><strong>Faveur</strong> : {{favorNote}}</p>
|
||||
{{/if}}
|
||||
{{#if focusValue}}
|
||||
<p class="chat-note">
|
||||
<strong>Focus</strong> : {{focusValue}} depuis {{focusBeforeLabel}}
|
||||
{{#if focusSpent}} · {{focusSpent}} utilise{{/if}}
|
||||
· {{focusRemaining}} restant
|
||||
{{#if focusDegraded}} · le focus descend a {{focusAfterLabel}}{{/if}}
|
||||
{{#if focusRolled}} · premier sort de la scene{{/if}}
|
||||
</p>
|
||||
{{else}}
|
||||
{{#if focusRolled}}
|
||||
<p class="chat-note"><strong>Focus</strong> : aucun apport pour cette scene.</p>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<p class="chat-note"><strong>PV depenses</strong> : {{spentPv}} · <strong>PV restants</strong> : {{remainingPv}}</p>
|
||||
{{#if specialNote}}
|
||||
<p class="chat-note warning">{{specialNote}}</p>
|
||||
{{/if}}
|
||||
{{#if showDamageButton}}
|
||||
<div class="chat-actions">
|
||||
<button type="button" class="chat-action-button" data-action="rollChatDamage" data-item-uuid="{{itemUuid}}">
|
||||
<i class="fa-solid fa-burst"></i> Lancer les degats
|
||||
</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if showChaosButton}}
|
||||
<div class="chat-actions">
|
||||
<button type="button" class="chat-action-button" data-action="rollSpellChaos" data-actor-uuid="{{actorUuid}}" data-item-uuid="{{itemUuid}}">
|
||||
<i class="fa-solid fa-dice-d20"></i> Risquer le Chaos
|
||||
</button>
|
||||
</div>
|
||||
{{/if}}
|
||||
<ul class="chat-details chat-details-ornate">
|
||||
{{#each details}}
|
||||
<li><strong>{{this.label}}</strong> : {{this.value}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</section>
|
||||
26
templates/chat/usage-card.hbs
Normal file
26
templates/chat/usage-card.hbs
Normal file
@@ -0,0 +1,26 @@
|
||||
<section class="dnc-chat-card dnc-chat-card-usage">
|
||||
<header class="chat-card-header">
|
||||
<div class="chat-card-heading">
|
||||
<p class="chat-card-kicker">Usure</p>
|
||||
<h2>{{title}}</h2>
|
||||
</div>
|
||||
<div class="chat-card-seal {{#if degraded}}failure{{else}}success{{/if}}">
|
||||
{{#if degraded}}-1{{else}}STABLE{{/if}}
|
||||
</div>
|
||||
</header>
|
||||
<div class="chat-pill-row">
|
||||
{{#if modeLabel}}<span class="chat-pill">{{modeLabel}}</span>{{/if}}
|
||||
<span class="chat-pill">Resultat {{value}}</span>
|
||||
<span class="chat-pill">Avant {{before}}</span>
|
||||
<span class="chat-pill">Apres {{after}}</span>
|
||||
</div>
|
||||
{{#if values.[1]}}
|
||||
<div class="chat-keyline">
|
||||
<span class="chat-keyline-label">Lancers</span>
|
||||
<p class="roll-values">{{#each values}}<span>{{this}}</span>{{/each}}</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if protectionStored}}<p class="chat-note">Protection stockee pour ce combat : <strong>{{protectionStored}}</strong>.</p>{{/if}}
|
||||
{{#if degraded}}<p class="chat-note">La ressource s'amenuise.</p>{{else}}<p class="chat-note">La ressource tient bon.</p>{{/if}}
|
||||
{{#if exhausted}}<p class="warning">La ressource est epuisee.</p>{{/if}}
|
||||
</section>
|
||||
20
templates/dialogs/characteristic-roll.hbs
Normal file
20
templates/dialogs/characteristic-roll.hbs
Normal file
@@ -0,0 +1,20 @@
|
||||
<div class="dnc-dialog-form">
|
||||
<p><strong>{{actorName}}</strong> effectue un jet de <strong>{{characteristic.label}}</strong>.</p>
|
||||
<label>
|
||||
<span>Mode</span>
|
||||
<select name="mode">
|
||||
<option value="normal">Normal</option>
|
||||
<option value="avantage">Avantage</option>
|
||||
<option value="desavantage">Desavantage</option>
|
||||
</select>
|
||||
</label>
|
||||
{{#if hasFavorOptions}}
|
||||
<label>
|
||||
<span>Coup de pouce</span>
|
||||
<select name="favorDepartment">
|
||||
<option value="">Aucune faveur</option>
|
||||
{{selectOptions favorOptions selected="" labelAttr="label" valueAttr="value" localize=false}}
|
||||
</select>
|
||||
</label>
|
||||
{{/if}}
|
||||
</div>
|
||||
12
templates/dialogs/damage-roll.hbs
Normal file
12
templates/dialogs/damage-roll.hbs
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="dnc-dialog-form">
|
||||
<p><strong>{{item.name}}</strong> inflige <strong>{{item.system.degats}}</strong>.</p>
|
||||
<p>Bonus de degats de l'acteur : <strong>{{actorBonus}}</strong></p>
|
||||
<label>
|
||||
<span>Mode</span>
|
||||
<select name="mode">
|
||||
<option value="normal">Normal</option>
|
||||
<option value="avantage">Avantage</option>
|
||||
<option value="desavantage">Desavantage</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
12
templates/dialogs/initiative-roll.hbs
Normal file
12
templates/dialogs/initiative-roll.hbs
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="dnc-dialog-form">
|
||||
<p><strong>{{actorName}}</strong> lance l'initiative.</p>
|
||||
<p>DEX actuelle : <strong>{{dex}}</strong>, bonus de fiche : <strong>{{initiativeBonus}}</strong></p>
|
||||
<label>
|
||||
<span>Mode</span>
|
||||
<select name="mode">
|
||||
<option value="normal">Normal</option>
|
||||
<option value="avantage">Avantage</option>
|
||||
<option value="desavantage">Desavantage</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
47
templates/dialogs/spell-roll.hbs
Normal file
47
templates/dialogs/spell-roll.hbs
Normal file
@@ -0,0 +1,47 @@
|
||||
<div class="dnc-dialog-form">
|
||||
<p><strong>{{actorName}}</strong> lance <strong>{{item.name}}</strong>.</p>
|
||||
<label>
|
||||
<span>Caracteristique</span>
|
||||
<input type="text" value="{{characteristic.label}} ({{characteristic.value}})" readonly>
|
||||
</label>
|
||||
<label>
|
||||
<span>Cout</span>
|
||||
<input type="text" value="{{item.system.coutPv}} PV" readonly>
|
||||
</label>
|
||||
<label>
|
||||
<span>PV actuels</span>
|
||||
<input type="text" value="{{currentPv}}" readonly>
|
||||
</label>
|
||||
<label>
|
||||
<span>Rang</span>
|
||||
<input type="text" value="{{rank}}" readonly>
|
||||
</label>
|
||||
<label>
|
||||
<span>Focus</span>
|
||||
<input type="text" value="{{#if focusIsActive}}{{focusDisplay}}{{else}}{{focusLabel}}{{/if}}" readonly>
|
||||
</label>
|
||||
<label>
|
||||
<span>Chaos</span>
|
||||
<input type="text" value="{{chaosLabel}}" readonly>
|
||||
</label>
|
||||
<label>
|
||||
<span>Mode</span>
|
||||
<select name="mode">
|
||||
<option value="normal">Normal</option>
|
||||
<option value="avantage">Avantage</option>
|
||||
<option value="desavantage">Desavantage</option>
|
||||
</select>
|
||||
</label>
|
||||
{{#if hasFavorOptions}}
|
||||
<label>
|
||||
<span>Coup de pouce</span>
|
||||
<select name="favorDepartment">
|
||||
<option value="">Aucune faveur</option>
|
||||
{{selectOptions favorOptions selected="" labelAttr="label" valueAttr="value" localize=false}}
|
||||
</select>
|
||||
</label>
|
||||
{{/if}}
|
||||
{{#if autoDisadvantage}}
|
||||
<p class="dialog-help warning">Le cout depasse le rang du lanceur : le jet se fera automatiquement avec desavantage.</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
12
templates/dialogs/usage-roll.hbs
Normal file
12
templates/dialogs/usage-roll.hbs
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="dnc-dialog-form">
|
||||
<p>Utiliser <strong>{{item.name}}</strong> et lancer son de d'usage actuel.</p>
|
||||
<p>Valeur actuelle : <strong>Δ{{item.system.delta}}</strong></p>
|
||||
<label>
|
||||
<span>Mode</span>
|
||||
<select name="mode">
|
||||
<option value="normal">Normal</option>
|
||||
<option value="avantage">Avantage</option>
|
||||
<option value="desavantage">Desavantage</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
21
templates/dialogs/weapon-roll.hbs
Normal file
21
templates/dialogs/weapon-roll.hbs
Normal file
@@ -0,0 +1,21 @@
|
||||
<div class="dnc-dialog-form">
|
||||
<p><strong>{{actorName}}</strong> attaque avec <strong>{{item.name}}</strong>.</p>
|
||||
<p>Caracteristique utilisee : <strong>{{characteristicLabel}}</strong> (<strong>{{characteristicValue}}</strong>).</p>
|
||||
<label>
|
||||
<span>Mode</span>
|
||||
<select name="mode">
|
||||
<option value="normal">Normal</option>
|
||||
<option value="avantage">Avantage</option>
|
||||
<option value="desavantage">Desavantage</option>
|
||||
</select>
|
||||
</label>
|
||||
{{#if hasFavorOptions}}
|
||||
<label>
|
||||
<span>Coup de pouce</span>
|
||||
<select name="favorDepartment">
|
||||
<option value="">Aucune faveur</option>
|
||||
{{selectOptions favorOptions selected="" labelAttr="label" valueAttr="value" localize=false}}
|
||||
</select>
|
||||
</label>
|
||||
{{/if}}
|
||||
</div>
|
||||
151
templates/items/item-sheet.hbs
Normal file
151
templates/items/item-sheet.hbs
Normal file
@@ -0,0 +1,151 @@
|
||||
<div class="dnc-sheet dnc-item-sheet">
|
||||
<header class="sheet-header compact">
|
||||
<div class="portrait">
|
||||
<img src="{{item.img}}" alt="{{item.name}}">
|
||||
<button type="button" class="icon-button" data-action="editImage" aria-label="Modifier l'image" title="Modifier l'image"><i class="fa-solid fa-image"></i></button>
|
||||
</div>
|
||||
<div class="identity-grid two-columns">
|
||||
<label>
|
||||
<span>Nom</span>
|
||||
<input type="text" name="name" value="{{item.name}}">
|
||||
</label>
|
||||
{{#if isWeapon}}
|
||||
<label>
|
||||
<span>Categorie</span>
|
||||
<select name="system.categorie">{{selectOptions config.weaponCategoryOptions selected=system.categorie localize=false}}</select>
|
||||
</label>
|
||||
<div class="readonly-field">
|
||||
<span>Caracteristique</span>
|
||||
<p>{{weaponCharacteristicLabel}}</p>
|
||||
</div>
|
||||
<label>
|
||||
<span>Degats</span>
|
||||
<input type="text" name="system.degats" value="{{system.degats}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Portee</span>
|
||||
<input type="text" name="system.portee" value="{{system.portee}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Mains</span>
|
||||
<input type="number" name="system.mains" value="{{system.mains}}">
|
||||
</label>
|
||||
{{/if}}
|
||||
|
||||
{{#if isArmor}}
|
||||
<label>
|
||||
<span>Protection</span>
|
||||
<select name="system.delta">{{selectOptions config.usageDieOptions selected=system.delta localize=false}}</select>
|
||||
</label>
|
||||
<div class="readonly-field">
|
||||
<span>Protection stockee</span>
|
||||
<p>{{armorProtectionDisplay}}</p>
|
||||
</div>
|
||||
<label>
|
||||
<span>Encombrement</span>
|
||||
<input type="text" name="system.encombrement" value="{{system.encombrement}}">
|
||||
</label>
|
||||
{{/if}}
|
||||
|
||||
{{#if isConsumable}}
|
||||
<label>
|
||||
<span>Quantite</span>
|
||||
<input type="number" name="system.quantite" value="{{system.quantite}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Delta</span>
|
||||
<select name="system.delta">{{selectOptions config.usageDieOptions selected=system.delta localize=false}}</select>
|
||||
</label>
|
||||
<label class="span-two">
|
||||
<span>Effet</span>
|
||||
<input type="text" name="system.effet" value="{{system.effet}}">
|
||||
</label>
|
||||
{{/if}}
|
||||
|
||||
{{#if isEquipment}}
|
||||
<label>
|
||||
<span>Quantite</span>
|
||||
<input type="number" name="system.quantite" value="{{system.quantite}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Emplacement</span>
|
||||
<input type="text" name="system.emplacement" value="{{system.emplacement}}">
|
||||
</label>
|
||||
{{/if}}
|
||||
|
||||
{{#if isSpell}}
|
||||
<label>
|
||||
<span>Caracteristique</span>
|
||||
<select name="system.caracteristique">{{selectOptions config.characteristicOptions selected=system.caracteristique localize=false}}</select>
|
||||
</label>
|
||||
<label>
|
||||
<span>Difficulte</span>
|
||||
<input type="number" name="system.difficulte" value="{{system.difficulte}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Cout en PV</span>
|
||||
<input type="number" name="system.coutPv" value="{{system.coutPv}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Portee</span>
|
||||
<input type="text" name="system.portee" value="{{system.portee}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Duree</span>
|
||||
<input type="text" name="system.duree" value="{{system.duree}}">
|
||||
</label>
|
||||
<label>
|
||||
<span>Degats</span>
|
||||
<input type="text" name="system.degats" value="{{system.degats}}">
|
||||
</label>
|
||||
<label class="span-two">
|
||||
<span>Effet</span>
|
||||
<input type="text" name="system.effet" value="{{system.effet}}">
|
||||
</label>
|
||||
{{/if}}
|
||||
|
||||
{{#if isCapacity}}
|
||||
<label>
|
||||
<span>Cout</span>
|
||||
<input type="text" name="system.cout" value="{{system.cout}}">
|
||||
</label>
|
||||
<label class="span-two">
|
||||
<span>Effet</span>
|
||||
<input type="text" name="system.effet" value="{{system.effet}}">
|
||||
</label>
|
||||
{{/if}}
|
||||
|
||||
{{#if isLanguage}}
|
||||
<label class="span-two">
|
||||
<span>Niveau</span>
|
||||
<input type="text" name="system.niveau" value="{{system.niveau}}">
|
||||
</label>
|
||||
{{/if}}
|
||||
|
||||
{{#if isTrait}}
|
||||
<label class="span-two">
|
||||
<span>Etiquette</span>
|
||||
<input type="text" name="system.etiquette" value="{{system.etiquette}}">
|
||||
</label>
|
||||
{{/if}}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section class="sheet-card">
|
||||
<h2>Description</h2>
|
||||
<textarea name="system.description" rows="8" aria-label="Description">{{system.description}}</textarea>
|
||||
</section>
|
||||
|
||||
<section class="sheet-card">
|
||||
<h2>Notes</h2>
|
||||
<textarea name="system.notes" rows="6" aria-label="Notes">{{system.notes}}</textarea>
|
||||
</section>
|
||||
|
||||
<footer class="sheet-footer">
|
||||
<button type="button" data-action="postItem" aria-label="Poster dans le chat"><i class="fa-solid fa-message"></i> Poster dans le chat</button>
|
||||
<button type="button" data-action="rollItem" aria-label="Utiliser ou lancer l'objet"><i class="fa-solid fa-dice-d20"></i> Utiliser / lancer</button>
|
||||
{{#if canRollDamage}}
|
||||
<button type="button" data-action="rollDamageItem" aria-label="Lancer les degats"><i class="fa-solid fa-burst"></i> Lancer les degats</button>
|
||||
{{/if}}
|
||||
</footer>
|
||||
</div>
|
||||
Reference in New Issue
Block a user