First round of changes

This commit is contained in:
2026-04-23 14:27:33 +02:00
parent f72230dd39
commit abe35cb537
45 changed files with 1860 additions and 56 deletions

View File

@@ -28,6 +28,9 @@
{{> 'systems/l5r5e/templates/actors/character/attributes.html'}}
</div>
</div>
<div class="header-fields chiaroscuro-aspects-wrapper">
{{> 'systems/l5r5e/templates/actors/character/aspects.html'}}
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
@@ -38,9 +41,11 @@
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="skills">{{localize 'l5r5e.skills.title'}}</a>
<a class="item" data-tab="narrative">{{localize 'l5r5e.sheets.narrative'}}</a>
<a class="item" data-tab="invocations">{{localize 'chiaroscuro.tabs.invocations'}}</a>
<a class="item" data-tab="conflict">{{localize 'l5r5e.conflict.title'}}</a>
<a class="item" data-tab="inventory">{{localize 'l5r5e.sheets.inventory'}}</a>
<a class="item" data-tab="experience">{{localize 'l5r5e.sheets.experience'}}</a>
<a class="item" data-tab="identity">{{localize 'chiaroscuro.tabs.identity'}}</a>
</nav>
{{!-- Skills Tab --}}
@@ -72,5 +77,15 @@
<article class="tab experience" data-group="primary" data-tab="experience">
{{> 'systems/l5r5e/templates/actors/character/experience.html'}}
</article>
{{!-- Invocations Tab --}}
<article class="tab invocations" data-group="primary" data-tab="invocations">
{{> 'systems/l5r5e/templates/actors/character/invocations.html'}}
</article>
{{!-- Identity Tab --}}
<article class="tab identity" data-group="primary" data-tab="identity">
{{> 'systems/l5r5e/templates/actors/character/identity-text.html'}}
</article>
</section>
</form>

View File

@@ -0,0 +1,30 @@
<div class="aspects-section">
<div class="aspect-fields">
<label class="attribute-label">
{{localize 'chiaroscuro.aspects.solar'}}
<input type="number" name="system.aspects.aspects.solar" value="{{data.system.aspects.aspects.solar}}" class="select-on-focus" data-dtype="Number" min="0" max="100" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
</label>
<label class="attribute-label">
{{localize 'chiaroscuro.aspects.lunar'}}
<input type="number" name="system.aspects.aspects.lunar" value="{{data.system.aspects.aspects.lunar}}" class="select-on-focus" data-dtype="Number" min="0" max="100" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
</label>
<label class="attribute-label">
{{localize 'chiaroscuro.aspects.gauge'}}
<input type="number" name="system.aspects.aspects.gauge" value="{{data.system.aspects.aspects.gauge}}" class="select-on-focus" data-dtype="Number" min="-10" max="10" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
</label>
<div class="gauge-bar-wrapper">
<div class="gauge-bar" style="width: {{data.aspectsData.gaugePercent}}%; background-color: {{data.aspectsData.gaugeColor}};"></div>
</div>
</div>
{{#if data.etatItems.length}}
<div class="etat-summary">
<span class="etat-summary-label">{{localize 'chiaroscuro.etat.title'}}</span>
{{#each data.etatItems as |etat|}}
<span class="etat-badge l5r5e-tooltip" title="{{etat.system.effect}}">
<img src="{{etat.img}}" width="16" height="16" />
{{etat.name}}
</span>
{{/each}}
</div>
{{/if}}
</div>

View File

@@ -0,0 +1,10 @@
<div class="identity-text-wrapper flexrow">
<fieldset class="identity-text-block">
<legend class="text-block-header">{{localize 'chiaroscuro.tabs.identity_text1'}}</legend>
{{editor data.enrichedHtml.identity_text1 target="system.identity_text1" button=true editable=options.editable engine="prosemirror" collaborate=false}}
</fieldset>
<fieldset class="identity-text-block">
<legend class="text-block-header">{{localize 'chiaroscuro.tabs.identity_text2'}}</legend>
{{editor data.enrichedHtml.identity_text2 target="system.identity_text2" button=true editable=options.editable engine="prosemirror" collaborate=false}}
</fieldset>
</div>

View File

@@ -1,21 +1,27 @@
<ul class="identity-content">
<li>
<label class="attribute-label is-samurai-label">
{{localize 'chiaroscuro.character.is_samurai'}}
<input type="checkbox" name="system.is_samurai" {{checked data.system.is_samurai}} {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
</label>
</li>
<li>
<label class="attribute-label">
{{#ifCond data.system.template '==' 'pow'}}
{{localize 'l5r5e.sheets.region'}}
{{else}}
{{#if data.system.is_samurai}}
{{localize 'l5r5e.clans.label'}}
{{/ifCond}}
{{else}}
{{localize 'chiaroscuro.character.region'}}
{{/if}}
<input type="text" name="system.identity.clan" value="{{data.system.identity.clan}}" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
</label>
</li>
<li>
<label class="attribute-label">
{{#ifCond data.system.template '==' 'pow'}}
{{localize 'l5r5e.sheets.upbringing'}}
{{else}}
{{#if data.system.is_samurai}}
{{localize 'l5r5e.sheets.family'}}
{{/ifCond}}
{{else}}
{{localize 'chiaroscuro.character.education'}}
{{/if}}
<input type="text" name="system.identity.family" value="{{data.system.identity.family}}" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
</label>
</li>
@@ -37,4 +43,10 @@
<input type="text" name="system.identity.roles" value="{{data.system.identity.roles}}" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
</label>
</li>
<li>
<label class="attribute-label quick-info-label">
{{localize 'chiaroscuro.character.quick_info'}}
<input type="text" name="system.quick_info" value="{{data.system.quick_info}}" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
</label>
</li>
</ul>

View File

@@ -0,0 +1,17 @@
<div class="invocations-wrapper">
{{#each data.splitInvocationsList as |list type|}}
<fieldset class="section-header flexrow">
<legend class="technique-controls">
<span>{{localize (concat 'chiaroscuro.technique.invocation_types.' type)}}</span>
{{#if ../data.editable_not_soft_locked}}
<a data-item-type="technique" class="technique-control item-add" data-tech-type="mot_invocation" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each list as |item|}}
{{> 'systems/l5r5e/templates/items/technique/technique-entry.html' technique=item editable=../../data.editable_not_soft_locked}}
{{/each}}
</ul>
</fieldset>
{{/each}}
</div>

View File

@@ -7,12 +7,16 @@
<textarea type="text" name="system.social.ninjo" {{^if data.editable_not_soft_locked}}disabled{{/if}}>{{data.system.social.ninjo}}</textarea>
</label>
<label class="attribute-label">
{{#ifCond data.system.template '==' 'pow'}}
{{localize 'l5r5e.social.past'}}
{{else}}
{{#if data.system.is_samurai}}
{{localize 'l5r5e.social.giri'}}
{{/ifCond}}
<textarea type="text" name="system.social.giri" {{^if data.editable_not_soft_locked}}disabled{{/if}}>{{data.system.social.giri}}</textarea>
{{else}}
{{localize 'chiaroscuro.character.past_problems'}}
{{/if}}
{{#if data.system.is_samurai}}
<textarea type="text" name="system.social.giri" {{^if data.editable_not_soft_locked}}disabled{{/if}}>{{data.system.social.giri}}</textarea>
{{else}}
<textarea type="text" name="system.social.past_problems" {{^if data.editable_not_soft_locked}}disabled{{/if}}>{{data.system.social.past_problems}}</textarea>
{{/if}}
</label>
</fieldset>
{{!-- Bushido Tenets --}}

View File

@@ -2,35 +2,35 @@
<li id="earth">
<label class="earth {{#ifCond 'earth' '==' data.system.stance}}stance-active{{/ifCond}}">
<i class="i_earth dice-picker rollable" data-ring="earth"></i>
<strong>{{localizeRing 'earth'}}</strong>
<strong class="ring-set-default {{#ifCond 'earth' '==' data.system.default_ring}}default-ring{{/ifCond}}" data-ring="earth" title="{{localize 'chiaroscuro.character.default_ring'}}">{{localizeRing 'earth'}}</strong>
<input class="centered-input select-on-focus" type="number" name="system.rings.earth" value="{{data.system.rings.earth}}" data-dtype="Number" min="1" max="9" placeholder="0" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
</label>
</li>
<li id="air">
<label class="air {{#ifCond 'air' '==' data.system.stance}}stance-active{{/ifCond}}">
<i class="i_air dice-picker rollable" data-ring="air"></i>
<strong>{{localizeRing 'air'}}</strong>
<strong class="ring-set-default {{#ifCond 'air' '==' data.system.default_ring}}default-ring{{/ifCond}}" data-ring="air" title="{{localize 'chiaroscuro.character.default_ring'}}">{{localizeRing 'air'}}</strong>
<input class="centered-input select-on-focus" type="number" name="system.rings.air" value="{{data.system.rings.air}}" data-dtype="Number" min="1" max="9" placeholder="0" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
</label>
</li>
<li id="water">
<label class="water {{#ifCond 'water' '==' data.system.stance}}stance-active{{/ifCond}}">
<i class="i_water dice-picker rollable" data-ring="water"></i>
<strong>{{localizeRing 'water'}}</strong>
<strong class="ring-set-default {{#ifCond 'water' '==' data.system.default_ring}}default-ring{{/ifCond}}" data-ring="water" title="{{localize 'chiaroscuro.character.default_ring'}}">{{localizeRing 'water'}}</strong>
<input class="centered-input select-on-focus" type="number" name="system.rings.water" value="{{data.system.rings.water}}" data-dtype="Number" min="1" max="9" placeholder="0" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
</label>
</li>
<li id="fire">
<label class="fire {{#ifCond 'fire' '==' data.system.stance}}stance-active{{/ifCond}}">
<i class="i_fire dice-picker rollable" data-ring="fire"></i>
<strong>{{localizeRing 'fire'}}</strong>
<strong class="ring-set-default {{#ifCond 'fire' '==' data.system.default_ring}}default-ring{{/ifCond}}" data-ring="fire" title="{{localize 'chiaroscuro.character.default_ring'}}">{{localizeRing 'fire'}}</strong>
<input class="centered-input select-on-focus" type="number" name="system.rings.fire" value="{{data.system.rings.fire}}" data-dtype="Number" min="1" max="9" placeholder="0" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
</label>
</li>
<li id="void">
<label class="void {{#ifCond 'void' '==' data.system.stance}}stance-active{{/ifCond}}">
<i class="i_void dice-picker rollable" data-ring="void"></i>
<strong>{{localizeRing 'void'}}</strong>
<strong class="ring-set-default {{#ifCond 'void' '==' data.system.default_ring}}default-ring{{/ifCond}}" data-ring="void" title="{{localize 'chiaroscuro.character.default_ring'}}">{{localizeRing 'void'}}</strong>
<input class="centered-input select-on-focus" type="number" name="system.rings.void" value="{{data.system.rings.void}}" data-dtype="Number" min="1" max="9" placeholder="0" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
</label>
</li>

View File

@@ -1,16 +1,9 @@
<li class="skill skill-wrapper">
<label class="skill-content">
<span class="dice-picker attribute-label rollable" data-skill="{{skillId}}">{{localizeSkill categoryId skillId}}</span>
<input
class="centered-input select-on-focus"
type="number"
name="system.skills.{{categoryId}}.{{skillId}}"
value="{{skill}}"
data-dtype="Number"
min="0"
max="9"
placeholder="0"
{{^if data.editable_not_soft_locked}}disabled{{/if}}
/>
<select name="system.skills.{{categoryId}}.{{skillId}}" {{^if data.editable_not_soft_locked}}disabled{{/if}}>
{{selectOptions data.skillRanksList selected=skill valueAttr='id' labelAttr='label'}}
</select>
{{#ifCond skill '!=' '0'}}<span class="skill-bonus">+{{skillRankBonus skill}}</span>{{/ifCond}}
</label>
</li>

View File

@@ -45,4 +45,27 @@
{{/each}}
</ul>
</fieldset>
{{!-- Arcane items list --}}
<fieldset class="section-header flexrow">
<legend class="text-block-header">
{{localize 'chiaroscuro.arcane.title'}}
{{#if data.editable_not_soft_locked}}
<a data-item-type="arcane" class="arcane-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each data.arcaneItems as |item|}}
<li class="item technique flexcol" data-item-id="{{item._id}}">
<ul class="item-header technique-controls">
<li class="item-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li>
<li class="item-name l5r5e-tooltip" data-item-id="{{item._id}}">{{item.name}}</li>
{{#if ../data.editable_not_soft_locked}}
<li data-item-id="{{item._id}}" class="item-control item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
<li data-item-id="{{item._id}}" class="item-control item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
{{/if}}
</ul>
</li>
{{/each}}
</ul>
</fieldset>
</div>

View File

@@ -41,6 +41,7 @@
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="skills">{{localize 'l5r5e.skills.title'}}</a>
<a class="item" data-tab="narrative">{{localize 'l5r5e.sheets.narrative'}}</a>
<a class="item" data-tab="invocations">{{localize 'chiaroscuro.tabs.invocations'}}</a>
<a class="item" data-tab="conflict">{{localize 'l5r5e.conflict.title'}}</a>
<a class="item" data-tab="inventory">{{localize 'l5r5e.sheets.inventory'}}</a>
</nav>
@@ -55,6 +56,11 @@
{{> 'systems/l5r5e/templates/actors/npc/narrative.html'}}
</article>
{{!-- Invocations Tab --}}
<article class="tab invocations" data-group="primary" data-tab="invocations">
{{> 'systems/l5r5e/templates/actors/character/invocations.html'}}
</article>
{{!-- Conflict Tab --}}
<article class="tab conflict" data-group="primary" data-tab="conflict">
{{> 'systems/l5r5e/templates/actors/npc/conflict.html'}} {{>

View File

@@ -5,14 +5,34 @@
{{selectOptions data.types selected=data.system.type valueAttr='id' labelAttr='label'}}
</select>
</li>
{{!-- Martial --}}
<li>
{{!-- Martial Danger --}}
<li class="danger-row">
<i class="i_bushi" title="{{localize 'l5r5e.social.npc.combat'}}"></i>
<input class="centered-input select-on-focus" type="number" name="system.conflict_rank.martial" value="{{data.system.conflict_rank.martial}}" data-dtype="Number" min="0" placeholder="0" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
<div class="danger-wrapper">
<select name="system.martial_danger" {{^if data.editable_not_soft_locked}}disabled{{/if}}>
{{selectOptions data.dangerList selected=data.system.martial_danger valueAttr='id' labelAttr='label'}}
</select>
<div class="danger-icons">
<i class="fas fa-skull danger-icon"></i>
{{#ifCond '["moyenne","assez_difficile","difficile"]' 'includes' data.system.martial_danger}}<i class="fas fa-skull danger-icon"></i>{{/ifCond}}
{{#ifCond '["assez_difficile","difficile"]' 'includes' data.system.martial_danger}}<i class="fas fa-skull danger-icon"></i>{{/ifCond}}
{{#ifCond data.system.martial_danger '==' 'difficile'}}<i class="fas fa-skull danger-icon"></i>{{/ifCond}}
</div>
</div>
</li>
{{!-- Social --}}
<li>
{{!-- Social Danger --}}
<li class="danger-row">
<i class="i_courtier" title="{{localize 'l5r5e.social.npc.intrigue'}}"></i>
<input class="centered-input select-on-focus" type="number" name="system.conflict_rank.social" value="{{data.system.conflict_rank.social}}" data-dtype="Number" min="0" placeholder="0" {{^if data.editable_not_soft_locked}}disabled{{/if}}/>
<div class="danger-wrapper">
<select name="system.social_danger" {{^if data.editable_not_soft_locked}}disabled{{/if}}>
{{selectOptions data.dangerList selected=data.system.social_danger valueAttr='id' labelAttr='label'}}
</select>
<div class="danger-icons">
<i class="fas fa-star danger-icon"></i>
{{#ifCond '["moyenne","assez_difficile","difficile"]' 'includes' data.system.social_danger}}<i class="fas fa-star danger-icon"></i>{{/ifCond}}
{{#ifCond '["assez_difficile","difficile"]' 'includes' data.system.social_danger}}<i class="fas fa-star danger-icon"></i>{{/ifCond}}
{{#ifCond data.system.social_danger '==' 'difficile'}}<i class="fas fa-star danger-icon"></i>{{/ifCond}}
</div>
</div>
</li>
</ul>

View File

@@ -0,0 +1,52 @@
<div class="l5r5e chat-roll chiaroscuro-chat-roll">
{{!-- Header --}}
<div class="chi-chat-header">
<img class="profile-img" src="{{profileImg}}" alt="{{actor.name}}" />
<div class="chi-chat-actor">
<strong>{{actor.name}}</strong>
{{#if quickInfo}}<div class="chi-chat-quick-info">{{quickInfo}}</div>{{/if}}
</div>
<div class="chi-chat-badges">
<span class="ring-icon {{ring.id}}" title="{{ring.label}}"><i class="i_{{ring.id}}"></i></span>
{{#if useAspectPoint}}<span class="chi-aspect-badge {{aspectType}}" title="{{localize 'chiaroscuro.dice.aspect_point'}}">
{{#ifCond aspectType '==' 'solar'}}☀{{else}}☽{{/ifCond}}
</span>{{/if}}
{{#if useAssistance}}<span class="chi-assistance-badge" title="{{localize 'chiaroscuro.dice.assistance'}}"></span>{{/if}}
</div>
</div>
{{!-- Roll description line --}}
<div class="chi-chat-desc">
{{#if skill.name}}<span class="chi-chat-skill">{{skill.name}}</span>{{/if}}
<span class="chi-chat-vs"></span>
<span class="chi-chat-diff">{{localize (concat 'chiaroscuro.difficulties.' difficulty.id)}} ({{difficulty.value}})</span>
</div>
{{!-- Dice results --}}
<div class="chi-chat-dice-pool">
{{#each adjustedResults}}
<span class="chi-die {{#ifCond this '<' 3}}die-low{{else}}{{#ifCond this '>' 4}}die-high{{/ifCond}}{{/ifCond}}">
{{this}}
{{#if (lookup ../diceAdjustedFlags @index)}}<i class="fas fa-caret-up die-adj-icon" title="{{localize 'chiaroscuro.dice.adjusted'}}"></i>{{/if}}
</span>
{{/each}}
</div>
{{!-- Breakdown --}}
<div class="chi-chat-breakdown">
<span>{{localize 'chiaroscuro.dice.dice_result'}} : {{rawSum}}</span>
{{#if skill.bonus}}<span> + {{skill.bonus}} ({{localize 'chiaroscuro.dice.bonus'}})</span>{{/if}}
{{#if modifier}}<span> {{#ifCond modifier '>' 0}}+{{/ifCond}}{{modifier}} ({{localize 'chiaroscuro.dice.modifier_label'}})</span>{{/if}}
<strong> = {{total}}</strong>
</div>
{{!-- Result --}}
<div class="chi-chat-result {{#if success}}chi-success{{else}}chi-failure{{/if}}">
{{#if success}}
<i class="fas fa-check"></i> {{localize 'chiaroscuro.dice.success'}}
{{#if bonus}}<span class="chi-bonus-successes">(+{{bonus}})</span>{{/if}}
{{else}}
<i class="fas fa-times"></i> {{localize 'chiaroscuro.dice.failure'}}
{{/if}}
</div>
</div>

View File

@@ -0,0 +1,97 @@
<form class="l5r5e chiaroscuro-dice-dialog" autocomplete="off">
{{!-- Header: portrait + quick info --}}
<div class="chi-dice-header">
<img class="profile-img" src="{{#if actor.img}}{{actor.img}}{{else}}icons/svg/mystery-man.svg{{/if}}" alt="{{actor.name}}" />
<div class="chi-dice-actor-info">
<strong>{{actor.name}}</strong>
{{#if quickInfo}}<div class="chi-dice-quick-info">{{quickInfo}}</div>{{/if}}
</div>
</div>
{{!-- Ring selector --}}
<fieldset class="chi-dice-section">
<legend>{{localize 'l5r5e.rings.title'}}</legend>
<ul class="rings chi-rings">
{{#each ringsList}}
<li>
<label class="attribute-label {{this.id}} centered-input ring-selection-chi pointer-choice {{#ifCond ../data.ring.id '==' this.id}}ring-selected{{/ifCond}}" data-ringid="{{this.id}}">
<i class="i_{{this.id}}"></i>
<strong>{{this.label}}</strong>
<span class="ring-value">{{this.value}}</span>
</label>
</li>
{{/each}}
</ul>
</fieldset>
{{!-- Skill info --}}
{{#if data.skill.name}}
<fieldset class="chi-dice-section">
<legend>{{localize 'l5r5e.skills.title'}}</legend>
<div class="chi-skill-row">
<span class="chi-skill-name">{{data.skill.name}}</span>
<span class="chi-skill-rank">{{localize (concat 'chiaroscuro.skill_ranks.' data.skill.rank)}}</span>
{{#ifCond data.skill.bonus '>' 0}}<span class="chi-skill-bonus skill-bonus">+{{data.skill.bonus}}</span>{{/ifCond}}
</div>
</fieldset>
{{/if}}
{{!-- Difficulty + Modifier --}}
<fieldset class="chi-dice-section">
<legend>{{localize 'chiaroscuro.dice.difficulty_label'}}</legend>
<div class="chi-difficulty-row">
<select name="difficulty.id">
{{selectOptions difficultiesList selected=data.difficulty.id valueAttr='id' labelAttr='label'}}
</select>
<label class="chi-modifier-label">
{{localize 'chiaroscuro.dice.modifier_label'}}
<input type="number" name="modifier" value="{{data.modifier}}" class="centered-input select-on-focus" style="width: 3em;" />
</label>
</div>
</fieldset>
{{!-- Aspect Point + Assistance --}}
<fieldset class="chi-dice-section">
<legend>{{localize 'chiaroscuro.dice.options'}}</legend>
<div class="chi-options-row">
<label>
<input type="checkbox" id="use_aspect_point" {{checked data.useAspectPoint}} />
{{localize 'chiaroscuro.dice.aspect_point'}}
{{#if isVoidRing}}
<select name="aspectType">
{{selectOptions aspectsList selected=data.aspectType valueAttr='id' labelAttr='label'}}
</select>
{{else}}
<em class="chi-auto-aspect">
{{#ifCond '["fire","earth"]' 'includes' data.ring.id}}
({{localize 'chiaroscuro.aspects.solar'}})
{{else}}
({{localize 'chiaroscuro.aspects.lunar'}})
{{/ifCond}}
</em>
{{/if}}
</label>
</div>
<div class="chi-options-row">
<label>
<input type="checkbox" id="use_assistance" {{checked data.useAssistance}} />
{{localize 'chiaroscuro.dice.assistance'}}
</label>
</div>
</fieldset>
{{!-- Total dice summary --}}
<div class="chi-dice-total-summary">
<span>{{localize 'chiaroscuro.dice.total_dice'}} :</span>
<strong class="chi-total-dice">{{totalDice}}d6</strong>
{{#if data.skill.bonus}}<span> + {{data.skill.bonus}} ({{localize 'chiaroscuro.dice.bonus'}})</span>{{/if}}
{{#if data.modifier}}<span> {{#ifCond data.modifier '>' 0}}+{{/ifCond}}{{data.modifier}} ({{localize 'chiaroscuro.dice.modifier_label'}})</span>{{/if}}
</div>
{{!-- Submit --}}
<div class="chi-dice-submit">
<button name="roll" type="submit">
{{localize 'chiaroscuro.dice.roll'}} <i class="fas fa-dice"></i>
</button>
</div>
</form>

View File

@@ -0,0 +1,35 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{data.img}}" data-edit="img" title="{{data.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{data.name}}" placeholder="Name"/></h1>
</header>
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item active" data-group="primary" data-tab="attributes">{{localize 'l5r5e.sheets.attributes'}}</a>
<a class="item" data-group="primary" data-tab="description">{{localize 'l5r5e.sheets.infos'}}</a>
</nav>
<section class="sheet-body">
<article class="attributes" data-group="primary" data-tab="attributes">
<label class="attribute">
{{localize 'chiaroscuro.arcane.arcane_type'}}
<input type="text" name="system.arcane_type" value="{{data.system.arcane_type}}" />
</label>
<label class="attribute">
{{localize 'chiaroscuro.arcane.application'}}
<input type="text" name="system.applicationDisplay" value="{{data.system.applicationDisplay}}" placeholder="compétence1, compétence2" />
</label>
<label class="attribute">
{{localize 'chiaroscuro.arcane.bonus'}}
<input class="select-on-focus" type="number" name="system.bonus" value="{{data.system.bonus}}" data-dtype="Number" min="0" placeholder="2"/>
</label>
<label class="attribute">
{{localize 'chiaroscuro.arcane.progression'}}
<input type="text" name="system.progression" value="{{data.system.progression}}" />
</label>
<label class="attribute">
{{localize 'chiaroscuro.arcane.xp_cost'}}
<input class="select-on-focus" type="number" name="system.xp_cost" value="{{data.system.xp_cost}}" data-dtype="Number" min="0" placeholder="1"/>
</label>
</article>
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
</section>
</form>

View File

@@ -11,6 +11,13 @@
<input type="checkbox" name="system.equipped" {{checked data.system.equipped}} />
{{ localize 'l5r5e.armors.equipped' }}
</label>
<label class="attribute">
{{localize 'l5r5e.armors.type'}}
<select name="system.armor_category">
<option value=""></option>
{{selectOptions data.armorCategories selected=data.system.armor_category valueAttr='id' labelAttr='label'}}
</select>
</label>
{{> 'systems/l5r5e/templates/items/item/item-value.html' }}
<fieldset class="attribute type">
<legend class="text-header">{{localize 'l5r5e.armors.type'}}</legend>

View File

@@ -0,0 +1,31 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{data.img}}" data-edit="img" title="{{data.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{data.name}}" placeholder="Name"/></h1>
</header>
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item active" data-group="primary" data-tab="attributes">{{localize 'l5r5e.sheets.attributes'}}</a>
<a class="item" data-group="primary" data-tab="description">{{localize 'l5r5e.sheets.infos'}}</a>
</nav>
<section class="sheet-body">
<article class="attributes" data-group="primary" data-tab="attributes">
<label class="attribute">
{{localize 'chiaroscuro.etat.application'}}
<input type="text" name="system.application" value="{{data.system.application}}" />
</label>
<label class="attribute">
{{localize 'chiaroscuro.etat.mod'}}
<input class="select-on-focus" type="number" name="system.mod" value="{{data.system.mod}}" data-dtype="Number" placeholder="0"/>
</label>
<label class="attribute">
{{localize 'chiaroscuro.etat.effect'}}
<input type="text" name="system.effect" value="{{data.system.effect}}" />
</label>
<label class="attribute">
{{localize 'chiaroscuro.etat.elimination'}}
<input type="text" name="system.elimination" value="{{data.system.elimination}}" />
</label>
</article>
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
</section>
</form>

View File

@@ -0,0 +1,29 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{data.img}}" data-edit="img" title="{{data.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{data.name}}" placeholder="Name"/></h1>
</header>
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item active" data-group="primary" data-tab="attributes">{{localize 'l5r5e.sheets.attributes'}}</a>
<a class="item" data-group="primary" data-tab="description">{{localize 'l5r5e.sheets.infos'}}</a>
</nav>
<section class="sheet-body">
<article class="attributes" data-group="primary" data-tab="attributes">
<label class="attribute">
{{localize 'chiaroscuro.mystere.mystere_type'}}
<select name="system.mystere_type">
{{selectOptions data.mystereTypes selected=data.system.mystere_type valueAttr='id' labelAttr='label'}}
</select>
</label>
<label class="attribute">
{{localize 'chiaroscuro.mystere.prerequisite_skill'}}
<input type="text" name="system.prerequisite_skill" value="{{data.system.prerequisite_skill}}" />
</label>
<label class="attribute">
{{localize 'chiaroscuro.mystere.prerequisite_condition'}}
<input type="text" name="system.prerequisite_condition" value="{{data.system.prerequisite_condition}}" />
</label>
</article>
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
</section>
</form>

View File

@@ -42,6 +42,20 @@
{{localize 'l5r5e.dice.dicepicker.difficulty_title'}}
<input class="select-on-focus" type="text" name="system.difficulty" value="{{data.system.difficulty}}" data-dtype="String"/>
</label>
{{#if data.isMotInvocation}}
<label class="attribute">
{{localize 'chiaroscuro.technique.invocation_type'}}
<select name="system.invocation_type">
{{selectOptions data.invocationTypes selected=data.system.invocation_type valueAttr='id' labelAttr='label'}}
</select>
</label>
<label class="attribute">
{{localize 'chiaroscuro.technique.mode_invocation'}}
<select name="system.mode_invocation_str">
{{selectOptions data.modeInvocationValues selected=data.system.mode_invocation_str valueAttr='id' labelAttr='label'}}
</select>
</label>
{{/if}}
</article>
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
</section>

View File

@@ -18,7 +18,13 @@
{{> 'systems/l5r5e/templates/items/item/item-value.html'}}
<label class="category">
{{localize 'l5r5e.weapons.category'}}
<input type="text" name="system.category" value="{{data.system.category}}" />
<select name="system.category">
{{selectOptions data.weaponCategories selected=data.system.category valueAttr='id' labelAttr='label'}}
</select>
</label>
<label class="attribute">
{{localize 'chiaroscuro.weapon.bonus'}}
<input class="select-on-focus" type="number" name="system.bonus" value="{{data.system.bonus}}" data-dtype="Number" placeholder="0"/>
</label>
<label class="skillType">
{{localize 'l5r5e.skills.label'}}