Working on 0.8.x - Character sheets related

This commit is contained in:
Vlyan
2021-04-24 17:16:52 +02:00
parent 80907c8a01
commit b6f3d42fa2
61 changed files with 1569 additions and 470 deletions

View File

@@ -4,45 +4,45 @@
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}"/>
<div class="header-fields identity-wrapper">
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
{{> 'systems/l5r5e/templates/actors/character/identity.html' }}
{{> 'systems/l5r5e/templates/actors/character/identity.html'}}
</div>
<div class="header-fields">
<h2>{{ localize 'l5r5e.social.title' }}</h2>
<h2 class="right">{{ localize 'l5r5e.attributes.title' }}</h2>
{{> 'systems/l5r5e/templates/actors/character/social.html' }}
{{> 'systems/l5r5e/templates/actors/character/rings.html' }}
{{> 'systems/l5r5e/templates/actors/character/attributes.html' }}
<h2>{{localize 'l5r5e.social.title'}}</h2>
<h2 class="right">{{localize 'l5r5e.attributes.title'}}</h2>
{{> 'systems/l5r5e/templates/actors/character/social.html'}}
{{> 'systems/l5r5e/templates/actors/character/rings.html'}}
{{> 'systems/l5r5e/templates/actors/character/attributes.html'}}
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Sheet Tab Navigation --}}
<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.narrative' }}</a>
<a class="item" data-tab="conflict">{{ localize 'l5r5e.conflict.title' }}</a>
<a class="item" data-tab="inventory">{{ localize 'l5r5e.inventory' }}</a>
<a class="item" data-tab="experience">{{ localize 'l5r5e.experience' }}</a>
<a class="item" data-tab="skills">{{localize 'l5r5e.skills.title'}}</a>
<a class="item" data-tab="narrative">{{localize 'l5r5e.narrative'}}</a>
<a class="item" data-tab="conflict">{{localize 'l5r5e.conflict.title'}}</a>
<a class="item" data-tab="inventory">{{localize 'l5r5e.inventory'}}</a>
<a class="item" data-tab="experience">{{localize 'l5r5e.experience'}}</a>
</nav>
{{!-- Skills Tab --}}
<article class="tab skills" data-group="primary" data-tab="skills">
<ul class="skills-wrapper">
{{#each data.skills as |category id|}}
{{#each actor.data.data.skills as |category id|}}
{{> 'systems/l5r5e/templates/actors/character/category.html' category=category categoryId=id}}
{{/each}}
</ul>
{{> 'systems/l5r5e/templates/actors/character/techniques.html' }}
{{> 'systems/l5r5e/templates/actors/character/techniques.html'}}
</article>
{{!-- Narrative Tab --}}
<article class="tab narrative" data-group="primary" data-tab="narrative">
{{> 'systems/l5r5e/templates/actors/character/narrative.html' }}
{{> 'systems/l5r5e/templates/actors/character/narrative.html'}}
</article>
{{!-- Conflict Tab --}}
<article class="tab conflict" data-group="primary" data-tab="conflict">
{{> 'systems/l5r5e/templates/actors/character/conflict.html' }}
{{> 'systems/l5r5e/templates/actors/character/conflict.html'}}
</article>
{{!-- Inventory Tab --}}
@@ -51,26 +51,26 @@
<legend class="section-header">{{localize 'l5r5e.money.title'}}</legend>
<label>
{{localize 'l5r5e.money.koku'}}
<input name="data.money.koku" type="number" value="{{actor.data.money.koku}}" data-dtype="Number" min="0" placeholder="0"/>
<input name="data.money.koku" type="number" value="{{data.data.money.koku}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label>
{{localize 'l5r5e.money.bu'}}
<input name="data.money.bu" type="number" value="{{actor.data.money.bu}}" data-dtype="Number" min="0" placeholder="0"/>
<input name="data.money.bu" type="number" value="{{data.data.money.bu}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label>
{{localize 'l5r5e.money.zeni'}}
<input name="data.money.zeni" type="number" value="{{actor.data.money.zeni}}" data-dtype="Number" min="0" placeholder="0"/>
<input name="data.money.zeni" type="number" value="{{data.data.money.zeni}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
</fieldset>
<fieldset class="items-wrapper">
<legend>{{localize 'l5r5e.equipment' }}</legend>
{{> 'systems/l5r5e/templates/items/item/items.html' }}
<legend>{{localize 'l5r5e.equipment'}}</legend>
{{> 'systems/l5r5e/templates/items/item/items.html'}}
</fieldset>
</article>
{{!-- Experience Tab --}}
<article class="tab experience" data-group="primary" data-tab="experience">
{{> 'systems/l5r5e/templates/actors/character/experience.html' }}
{{> 'systems/l5r5e/templates/actors/character/experience.html'}}
</article>
</section>
</form>

View File

@@ -1,8 +1,8 @@
<tr data-group="advancements" data-tab="advancement_rank_{{rank}}" class="flexrow row advancement tab">
<td class="curriculum" name="curriculum">{{#if advancement.data.in_curriculum}}<i class="fas fa-graduation-cap"></i> {{/if}}</td>
<td class="name" name="advancement.name"><img src="{{ advancement.img }}" title="{{ advancement.name }}"> {{ advancement.name }}</td>
<td class="xp" name="advancement.xp">{{ advancement.data.xp_used }}</td>
<td class="rank" name="advancement.rank">{{ advancement.data.rank }}</td>
<td class="name" name="advancement.name"><img src="{{ advancement.img }}" title="{{advancement.name}}"> {{advancement.name}}</td>
<td class="xp" name="advancement.xp">{{advancement.data.xp_used}}</td>
<td class="rank" name="advancement.rank">{{advancement.data.rank}}</td>
{{#if editable}}
<td class="actions">
<ul>

View File

@@ -1,49 +1,49 @@
<ul class="attributes-wrapper">
<li class="endurance-content">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.endurance' }}</strong>
<input class="centered-input" type="number" name="data.endurance" value="{{data.endurance}}" data-dtype="Number" disabled/>
<strong>{{localize 'l5r5e.attributes.endurance'}}</strong>
<input class="centered-input" type="number" name="data.endurance" value="{{data.data.endurance}}" data-dtype="Number" disabled/>
</label>
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.fatigue' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.fatigue.value" value="{{data.fatigue.value}}" data-dtype="Number" min="0" placeholder="0"/>
<strong>{{localize 'l5r5e.attributes.fatigue'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.fatigue.value" value="{{data.data.fatigue.value}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<p class="item-description"> {{ localize 'l5r5e.attributes.endurancetip' }}</p>
<p class="item-description"> {{localize 'l5r5e.attributes.endurancetip'}}</p>
</li>
<li class="composure-content">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.composure' }}</strong>
<input class="centered-input" type="number" name="data.composure" value="{{data.composure}}" data-dtype="Number" disabled/>
<strong>{{localize 'l5r5e.attributes.composure'}}</strong>
<input class="centered-input" type="number" name="data.composure" value="{{data.data.composure}}" data-dtype="Number" disabled/>
</label>
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.strife' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.strife.value" value="{{data.strife.value}}" data-dtype="Number" min="0" placeholder="0"/>
<strong>{{localize 'l5r5e.attributes.strife'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.strife.value" value="{{data.data.strife.value}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<p class="item-description"> {{ localize 'l5r5e.attributes.composuretip' }}</p>
<p class="item-description"> {{localize 'l5r5e.attributes.composuretip'}}</p>
</li>
<li class="focus-content">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.focus' }}</strong>
<input class="centered-input" type="number" name="data.focus" value="{{data.focus}}" data-dtype="Number" disabled/>
<strong>{{localize 'l5r5e.attributes.focus' }}</strong>
<input class="centered-input" type="number" name="data.focus" value="{{data.data.focus}}" data-dtype="Number" disabled/>
</label>
<p class="item-description"> {{ localize 'l5r5e.attributes.focustip' }}</p>
<p class="item-description"> {{localize 'l5r5e.attributes.focustip'}}</p>
</li>
<li class="vigilance-content {{#if data.is_compromised}}compromised{{/if}}">
<li class="vigilance-content {{#if data.data.is_compromised}}compromised{{/if}}">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.vigilance' }}</strong>
{{#if data.is_compromised}}
<strong>{{localize 'l5r5e.attributes.vigilance'}}</strong>
{{#if data.data.is_compromised}}
<input class="centered-input" type="number" value="1" disabled/>
{{else}}
<input class="centered-input" type="number" name="data.vigilance" value="{{data.vigilance}}" data-dtype="Number" disabled/>
<input class="centered-input" type="number" name="data.vigilance" value="{{data.data.vigilance}}" data-dtype="Number" disabled/>
{{/if}}
</label>
<p class="item-description"> {{ localize 'l5r5e.attributes.vigilancetip' }}</p>
<p class="item-description"> {{localize 'l5r5e.attributes.vigilancetip'}}</p>
</li>
<li class="void-content">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.voidpoints' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.void_points.value" value="{{data.void_points.value}}" data-dtype="Number" placeholder="0" min="0" max="{{data.void_points.max}}"/>
<input class="centered-input" type="number" name="data.void_points.max" value="{{data.void_points.max}}" data-dtype="Number" disabled/>
<strong>{{localize 'l5r5e.attributes.voidpoints'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.void_points.value" value="{{data.data.void_points.value}}" data-dtype="Number" placeholder="0" min="0" max="{{data.data.void_points.max}}"/>
<input class="centered-input" type="number" name="data.void_points.max" value="{{data.data.void_points.max}}" data-dtype="Number" disabled/>
</label>
</li>
</ul>

View File

@@ -1,20 +1,20 @@
<fieldset class="initiative initiative-wrapper">
<legend class="section-header">
{{ localize 'l5r5e.conflict.initiative.title' }}
{{localize 'l5r5e.conflict.initiative.title'}}
<a class="encounter prepared-control" data-id="{{entity.type}}">
<i class="fa fas prepared-icon prepared-icon-{{data.prepared}} prepared-{{entity.type}}" title="{{localize (localize 'l5r5e.conflict.initiative.prepared_{value}' value=data.prepared)}}"></i>
<i class="fa fas prepared-icon prepared-icon-{{data.data.prepared}} prepared-{{entity.type}}" title="{{localize (localize 'l5r5e.conflict.initiative.prepared_{value}' value=data.data.prepared)}}"></i>
</a>
</legend>
<button class="initiative dice-picker" data-initiative="true" data-skill="sentiment">{{ localize 'l5r5e.conflict.initiative.intrigue'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="meditation">{{ localize 'l5r5e.conflict.initiative.duel'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="tactics">{{ localize 'l5r5e.conflict.initiative.skirmish'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="command">{{ localize 'l5r5e.conflict.initiative.mass_battle'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="sentiment">{{localize 'l5r5e.conflict.initiative.intrigue'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="meditation">{{localize 'l5r5e.conflict.initiative.duel'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="tactics">{{localize 'l5r5e.conflict.initiative.skirmish'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="command">{{localize 'l5r5e.conflict.initiative.mass_battle'}}</button>
</fieldset>
<fieldset class="stances-content flexrow">
<legend class="section-header">{{ localize 'l5r5e.conflict.stance' }}</legend>
<legend class="section-header">{{localize 'l5r5e.conflict.stance'}}</legend>
<ul class="item-list">
{{#each data.rings as |ringValue ringId|}}
{{> 'systems/l5r5e/templates/actors/character/stance.html' stance=../data.stance ringId=ringId }}
{{#each data.data.rings as |ringValue ringId|}}
{{> 'systems/l5r5e/templates/actors/character/stance.html' stance=../data.data.stance ringId=ringId}}
{{/each}}
</ul>
</fieldset>

View File

@@ -1,23 +1,23 @@
<fieldset class="xp">
<legend>{{ localize 'l5r5e.experience'}}</legend>
<legend>{{localize 'l5r5e.experience'}}</legend>
<label class="attribute-label">
{{ localize 'l5r5e.advancements.total' }}
<input class="centered-input select-on-focus" type="number" name="data.xp_total" value="{{ data.xp_total }}" data-dtype="Number" min="0" placeholder="0"/>
{{localize 'l5r5e.advancements.total'}}
<input class="centered-input select-on-focus" type="number" name="data.xp_total" value="{{data.data.xp_total}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="attribute-label">
{{ localize 'l5r5e.advancements.spent' }}
<input class="centered-input select-on-focus" type="number" name="data.xp_spent" value="{{ data.xp_spent }}" data-dtype="Number" min="0" placeholder="0" disabled/>
{{localize 'l5r5e.advancements.spent'}}
<input class="centered-input select-on-focus" type="number" name="data.xp_spent" value="{{data.data.xp_spent}}" data-dtype="Number" min="0" placeholder="0" disabled/>
</label>
<label class="attribute-label">
{{ localize 'l5r5e.advancements.saved' }}
<input class="centered-input select-on-focus" type="number" name="data.xp_saved" value="{{ data.xp_saved }}" data-dtype="Number" min="0" placeholder="0" disabled/>
{{localize 'l5r5e.advancements.saved'}}
<input class="centered-input select-on-focus" type="number" name="data.xp_saved" value="{{data.data.xp_saved}}" data-dtype="Number" min="0" placeholder="0" disabled/>
</label>
</fieldset>
<fieldset class="advancement advancements-body">
<legend class="tools">{{ localize 'l5r5e.advancements.title'}} <a data-item-type="advancement" class="advancement-control item-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a></legend>
<legend class="tools">{{localize 'l5r5e.advancements.title'}} <a data-item-type="advancement" class="advancement-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a></legend>
<nav class="advancements-tabs tabs" data-group="advancements">
<a class="item advancements-tab" data-tab="advancement_rank_0">{{localize 'l5r5e.advancements.school_rank_0'}}</a>
{{#each advancementsListByRank as |rankObject|}}
{{#each data.advancementsListByRank as |rankObject|}}
{{#ifCond rank '>' 0}}
<a class="item advancements-tab" data-tab="advancement_rank_{{rank}}" title="{{localize 'l5r5e.advancements.school_rank'}} {{rankObject.rank}}">{{rankObject.rank}}</a>
{{/ifCond}}
@@ -27,34 +27,32 @@
<thead class="flex">
<tr class="flexrow row">
<th class="curriculum"></th>
<th class="name">{{ localize 'l5r5e.name' }}</th>
<th class="xp">{{ localize 'l5r5e.advancements.spent' }}</th>
<th class="rank">{{ localize 'l5r5e.rank' }}</th>
<th class="name">{{localize 'l5r5e.name'}}</th>
<th class="xp">{{localize 'l5r5e.advancements.spent'}}</th>
<th class="rank">{{localize 'l5r5e.rank'}}</th>
{{#if editable}}
<th class="actions"></th>
{{/if}}
</tr>
</thead>
<tbody class="flex">
{{#each advancementsListByRank as |rankObject|}}
{{#each data.advancementsListByRank as |rankObject|}}
{{#each rankObject.list as |advancement advancementId|}}
{{> 'systems/l5r5e/templates/actors/character/advancement.html' advancement=advancement rank=rankObject.rank editable=../../editable }}
{{> 'systems/l5r5e/templates/actors/character/advancement.html' advancement=advancement rank=rankObject.rank editable=../../options.editable}}
{{/each}}
{{#ifCond rankObject.rank '>' 0}}
<tr data-group="advancements" data-tab="advancement_rank_{{rankObject.rank}}" class="flexrow row tab">
<th class="">
{{#ifCond ../data.identity.school_rank '<' 6}}
{{#ifCond (ifCond ../data.identity.school_rank '==' rankObject.rank) '&&' (ifCond rankObject.spent '>=' rankObject.goal)}}
{{#ifCond ../data.data.identity.school_rank '<' 6}}
{{#ifCond (ifCond ../data.data.identity.school_rank '==' rankObject.rank) '&&' (ifCond rankObject.spent '>=' rankObject.goal)}}
<button type="button" name="validate-curriculum">
<i class='fas fa-check-square'></i> {{ localize 'l5r5e.advancements.curriculum_validate' }}
<i class='fas fa-check-square'></i> {{ localize 'l5r5e.advancements.curriculum_validate'}}
</button>
{{/ifCond}}
{{/ifCond}}
</th>
<th class="">
{{ localize 'l5r5e.advancements.total_xp_rank' }} :
{{ rankObject.spent }}
{{#if rankObject.goal}}/{{rankObject.goal}}{{/if}}
{{localize 'l5r5e.advancements.total_xp_rank'}} : {{rankObject.spent}}{{#if rankObject.goal}} / {{rankObject.goal}}{{/if}}
</th>
</tr>
{{/ifCond}}

View File

@@ -1,32 +1,32 @@
<ul class="identity-content">
<li>
<label class="attribute-label">
{{ localize 'l5r5e.clan' }}
<input type="text" name="data.identity.clan" value="{{data.identity.clan}}"/>
{{localize 'l5r5e.clan'}}
<input type="text" name="data.identity.clan" value="{{data.data.identity.clan}}"/>
</label>
</li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.family' }}
<input type="text" name="data.identity.family" value="{{data.identity.family}}"/>
{{localize 'l5r5e.family'}}
<input type="text" name="data.identity.family" value="{{data.data.identity.family}}"/>
</label>
</li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.schoolrank' }}
<input type="number" name="data.identity.school_rank" value="{{data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="0" placeholder="1"/>
{{localize 'l5r5e.schoolrank'}}
<input type="number" name="data.identity.school_rank" value="{{data.data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="0" placeholder="1"/>
</label>
</li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.school' }}
<input type="text" name="data.identity.school" value="{{data.identity.school}}"/>
{{localize 'l5r5e.school'}}
<input type="text" name="data.identity.school" value="{{data.data.identity.school}}"/>
</label>
</li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.roles' }}
<input type="text" name="data.identity.roles" value="{{data.identity.roles}}"/>
{{localize 'l5r5e.roles'}}
<input type="text" name="data.identity.roles" value="{{data.data.identity.roles}}"/>
</label>
</li>
</ul>

View File

@@ -1,48 +1,48 @@
<div class="narrative-content">
<fieldset>
<legend class="text-block-header">{{ localize 'l5r5e.social.title' }}</legend>
<label class="attribute-label">{{ localize 'l5r5e.social.ninjo' }}
<textarea type="text" name="data.social.ninjo">{{data.social.ninjo}}</textarea>
<legend class="text-block-header">{{localize 'l5r5e.social.title'}}</legend>
<label class="attribute-label">{{localize 'l5r5e.social.ninjo'}}
<textarea type="text" name="data.social.ninjo">{{data.data.social.ninjo}}</textarea>
</label>
<label class="attribute-label">{{ localize 'l5r5e.social.giri' }}
<textarea type="text" name="data.social.giri">{{data.social.giri}}</textarea>
<label class="attribute-label">{{localize 'l5r5e.social.giri'}}
<textarea type="text" name="data.social.giri">{{data.data.social.giri}}</textarea>
</label>
<label class="attribute-label">{{ localize 'l5r5e.social.titles' }}
<input type="text" name="data.social.titles" value="{{data.social.titles}}" />
<label class="attribute-label">{{localize 'l5r5e.social.titles'}}
<input type="text" name="data.social.titles" value="{{data.data.social.titles}}" />
</label>
</fieldset>
<fieldset>
<legend class="text-block-header">
{{ localize 'l5r5e.social.advantages' }}
{{#if editable}}
<a data-item-type="peculiarity" class="peculiarity-control item-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{localize 'l5r5e.social.advantages'}}
{{#if options.editable}}
<a data-item-type="peculiarity" class="peculiarity-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each actor.items as |item id|}}
{{#ifCond '["distinction","passion"]' 'includes' item.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../editable }}
{{#ifCond '["distinction","passion"]' 'includes' item.data.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../options.editable}}
{{/ifCond}}
{{/each}}
</ul>
</fieldset>
<fieldset>
<legend class="text-block-header">
{{ localize 'l5r5e.social.disadvantages' }}
{{#if editable}}
<a data-item-type="peculiarity" class="peculiarity-control item-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{localize 'l5r5e.social.disadvantages' }}
{{#if options.editable}}
<a data-item-type="peculiarity" class="peculiarity-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each actor.items as |item id|}}
{{#ifCond '["adversity","anxiety"]' 'includes' item.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../editable }}
{{#ifCond '["adversity","anxiety"]' 'includes' item.data.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../options.editable}}
{{/ifCond}}
{{/each}}
</ul>
</fieldset>
</div>
<fieldset class="narrative-note">
<legend class="text-block-header">{{ localize 'l5r5e.notes' }}</legend>
{{ editor content=data.notes.value target="data.notes.value" button=true editable=editable }}
<legend class="text-block-header">{{localize 'l5r5e.notes' }}</legend>
{{editor content=data.data.notes.value target="data.notes.value" button=true editable=options.editable}}
</fieldset>

View File

@@ -2,36 +2,36 @@
<li id="earth">
<label class="earth">
<i class="i_earth dice-picker rollable" data-ring="earth"></i>
<strong>{{ localizeRing 'earth' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.earth" value="{{data.rings.earth}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'earth'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.earth" value="{{data.data.rings.earth}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
<li id="air">
<label class="air">
<i class="i_air dice-picker rollable" data-ring="air"></i>
<strong>{{ localizeRing 'air' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.air" value="{{data.rings.air}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'air'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.air" value="{{data.data.rings.air}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
<li id="water">
<label class="water">
<i class="i_water dice-picker rollable" data-ring="water"></i>
<strong>{{ localizeRing 'water' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.water" value="{{data.rings.water}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'water'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.water" value="{{data.data.rings.water}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
<li id="fire">
<label class="fire">
<i class="i_fire dice-picker rollable" data-ring="fire"></i>
<strong>{{ localizeRing 'fire' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.fire" value="{{data.rings.fire}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'fire'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.fire" value="{{data.data.rings.fire}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
<li id="void">
<label class="void">
<i class="i_void dice-picker rollable" data-ring="void"></i>
<strong>{{ localizeRing 'void' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.void" value="{{data.rings.void}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'void'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.void" value="{{data.data.rings.void}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
</ul>

View File

@@ -1,6 +1,6 @@
<li class="skill skill-wrapper">
<label class="skill-content">
<span class="dice-picker attribute-label rollable" data-skill="{{skillId}}">{{ localizeSkill categoryId skillId }}</span>
<span class="dice-picker attribute-label rollable" data-skill="{{skillId}}">{{localizeSkill categoryId skillId}}</span>
<input
class="centered-input select-on-focus"
type="number"

View File

@@ -1,20 +1,20 @@
<ul class="social-content">
<li>
<label class="attribute-label centered-input">
<strong>{{ localize 'l5r5e.social.honor' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.honor" value="{{data.social.honor}}" data-dtype="Number" placeholder="0"/>
<strong>{{localize 'l5r5e.social.honor'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.honor" value="{{data.data.social.honor}}" data-dtype="Number" placeholder="0"/>
</label>
</li>
<li>
<label class="attribute-label centered-input">
<strong>{{ localize 'l5r5e.social.glory' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.glory" value="{{data.social.glory}}" data-dtype="Number" placeholder="0"/>
<strong>{{localize 'l5r5e.social.glory'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.glory" value="{{data.data.social.glory}}" data-dtype="Number" placeholder="0"/>
</label>
</li>
<li>
<label class="attribute-label centered-input">
<strong>{{ localize 'l5r5e.social.status' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.status" value="{{data.social.status}}" data-dtype="Number" placeholder="0"/>
<strong>{{localize 'l5r5e.social.status'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.status" value="{{data.data.social.status}}" data-dtype="Number" placeholder="0"/>
</label>
</li>
</ul>

View File

@@ -1,7 +1,7 @@
<li class="stance-content">
<label class="stance-title {{ringId}}">
{{ localizeRing ringId }}
{{localizeRing ringId}}
<input id="stance_{{ringId}}" type="radio" name="data.stance" value="{{ringId}}" {{radioChecked ringId stance}}/>
</label>
<p class="item-description {{#ifCond ringId '==' stance}}toggle-active{{/ifCond}}">{{ localizeStanceTip ringId }}</p>
<p class="item-description {{#ifCond ringId '==' stance}}toggle-active{{/ifCond}}">{{localizeStanceTip ringId}}</p>
</li>

View File

@@ -1,24 +1,24 @@
<div class="techniques-wrapper">
<div class="checklist">
<i>{{ localize 'l5r5e.techniques.type'}}</i>
{{#each actor.data.techniquesList as |technique|}}
<i>{{localize 'l5r5e.techniques.type'}}</i>
{{#each data.techniquesList as |technique|}}
<label>
<input type="checkbox" name="data.techniques.{{technique}}" {{checked (lookup ../actor.data.techniques technique)}} />
<input type="checkbox" name="data.techniques.{{technique}}" {{checked (lookup ../data.data.techniques technique)}} />
{{localizeTechnique technique}}
</label>
{{/each}}
</div>
{{#each actor.data.splitTechniquesList as |list technique|}}
{{#each data.splitTechniquesList as |list technique|}}
<fieldset class="section-header flexrow">
<legend class="technique-controls">
{{localize (localize 'l5r5e.techniques.{technique}' technique=technique) }}
{{#ifCond ../editable '&&' (lookup ../actor.data.techniques technique)}}
<a data-item-type="technique" class="technique-control item-add" data-tech-type="{{technique}}" title="{{ localize 'l5r5e.global.add' }}"><i class="fas fa-plus"></i></a>
{{#ifCond ../options.editable '&&' (lookup ../data.data.techniques technique)}}
<a data-item-type="technique" class="technique-control item-add" data-tech-type="{{technique}}" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/ifCond}}
</legend>
<ul class="item-list">
{{#each list as |item id|}}
{{> 'systems/l5r5e/templates/items/technique/technique-entry.html' technique=item editable=../../editable }}
{{> 'systems/l5r5e/templates/items/technique/technique-entry.html' technique=item editable=../../options.editable}}
{{/each}}
</ul>
</fieldset>

View File

@@ -1,12 +1,12 @@
<fieldset data-step="{{stepName}}" class="tq-drag-n-drop">
<ul class="item-list">
{{#each itemsList as |item id|}}
{{> 'systems/l5r5e/templates/items/property/property-entry.html' item=item id=id editable=../options.editable }}
{{> 'systems/l5r5e/templates/items/property/property-entry.html' property=item id=id editable=../options.editable}}
{{/each}}
</ul>
</fieldset>
{{#ifCond itemsList.length '<' hideDndAt}}
<fieldset class="{{itemType}} dropbox" data-step="{{stepName}}">
<legend class="section-header"><i class="fa fa-arrow-down" aria-hidden="true"></i> {{ localize 'l5r5e.global.drop_here' }}</legend>
<legend class="section-header"><i class="fa fa-arrow-down" aria-hidden="true"></i> {{localize 'l5r5e.global.drop_here'}}</legend>
</fieldset>
{{/ifCond}}

View File

@@ -7,32 +7,32 @@
<ul class="identity-content">
<li>
<label class="attribute-label">
{{ localize 'l5r5e.clan' }}
<input type="text" name="data.identity.clan" value="{{data.identity.clan}}"/>
{{localize 'l5r5e.clan'}}
<input type="text" name="data.identity.clan" value="{{data.data.identity.clan}}"/>
</label>
</li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.family' }}
<input type="text" name="data.identity.family" value="{{data.identity.family}}"/>
{{localize 'l5r5e.family'}}
<input type="text" name="data.identity.family" value="{{data.data.identity.family}}"/>
</label>
</li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.schoolrank' }}
<input type="number" name="data.identity.school_rank" value="{{data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="1" placeholder="1"/>
{{localize 'l5r5e.schoolrank'}}
<input type="number" name="data.identity.school_rank" value="{{data.data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="1" placeholder="1"/>
</label>
</li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.school' }}
<input type="text" name="data.identity.school" value="{{data.identity.school}}"/>
{{localize 'l5r5e.school'}}
<input type="text" name="data.identity.school" value="{{data.data.identity.school}}"/>
</label>
</li>
<li>
<label class="attribute-label">
{{ localize 'l5r5e.roles' }}
<input type="text" name="data.identity.roles" value="{{data.identity.roles}}"/>
{{localize 'l5r5e.roles'}}
<input type="text" name="data.identity.roles" value="{{data.data.identity.roles}}"/>
</label>
</li>
</ul>

View File

@@ -4,46 +4,46 @@
<div class="header-fields identity-wrapper">
<img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{actor.name}}" placeholder="Name"/></h1>
{{> 'systems/l5r5e/templates/actors/npc/identity.html' }}
{{> 'systems/l5r5e/templates/actors/npc/identity.html'}}
</div>
<fieldset class="npc-note">
<legend class="text-block-header">{{ localize 'l5r5e.notes' }}</legend>
{{ editor content=data.notes.value target="data.notes.value" button=true editable=editable }}
<legend class="text-block-header">{{localize 'l5r5e.notes'}}</legend>
{{editor content=data.data.notes.value target="data.notes.value" button=true editable=options.editable}}
</fieldset>
<div class="header-fields">
<h2>{{ localize 'l5r5e.social.title' }}</h2>
<h2 class="right">{{ localize 'l5r5e.attributes.title' }}</h2>
{{> 'systems/l5r5e/templates/actors/npc/social.html' }}
{{> 'systems/l5r5e/templates/actors/npc/rings.html' }}
{{> 'systems/l5r5e/templates/actors/npc/attributes.html' }}
<h2>{{localize 'l5r5e.social.title'}}</h2>
<h2 class="right">{{localize 'l5r5e.attributes.title'}}</h2>
{{> 'systems/l5r5e/templates/actors/npc/social.html'}}
{{> 'systems/l5r5e/templates/actors/npc/rings.html'}}
{{> 'systems/l5r5e/templates/actors/npc/attributes.html'}}
</div>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Skills No Tab --}}
{{> 'systems/l5r5e/templates/actors/npc/skill.html' }}
{{> 'systems/l5r5e/templates/actors/npc/skill.html'}}
{{!-- Sheet Tab Navigation --}}
<nav class="sheet-tabs tabs" data-group="primary">
<a class="item" data-tab="skills">{{ localize 'l5r5e.skills.title' }}</a>
<a class="item" data-tab="conflict">{{ localize 'l5r5e.conflict.title' }}</a>
<a class="item" data-tab="inventory">{{ localize 'l5r5e.inventory' }}</a>
<a class="item" data-tab="skills">{{localize 'l5r5e.skills.title'}}</a>
<a class="item" data-tab="conflict">{{localize 'l5r5e.conflict.title'}}</a>
<a class="item" data-tab="inventory">{{localize 'l5r5e.inventory'}}</a>
</nav>
{{!-- Techniques Tab --}}
<article class="tab skills" data-group="primary" data-tab="skills">
{{> 'systems/l5r5e/templates/actors/npc/narrative.html' }}
{{> 'systems/l5r5e/templates/actors/npc/techniques.html' }}
{{> 'systems/l5r5e/templates/actors/npc/narrative.html'}}
{{> 'systems/l5r5e/templates/actors/npc/techniques.html'}}
</article>
{{!-- Conflict Tab --}}
<article class="tab conflict" data-group="primary" data-tab="conflict">
{{> 'systems/l5r5e/templates/actors/npc/conflict.html' }}
{{> 'systems/l5r5e/templates/items/weapon/weapons.html' }}
{{> 'systems/l5r5e/templates/items/armor/armors.html' }}
{{> 'systems/l5r5e/templates/actors/npc/conflict.html'}}
{{> 'systems/l5r5e/templates/items/weapon/weapons.html'}}
{{> 'systems/l5r5e/templates/items/armor/armors.html'}}
</article>
{{!-- Inventory Tab --}}
<article class="tab inventory" data-group="primary" data-tab="inventory">
<fieldset class="items-wrapper">
<legend>{{localize 'l5r5e.equipment' }}</legend>
{{> 'systems/l5r5e/templates/items/item/items.html' }}
<legend>{{localize 'l5r5e.equipment'}}</legend>
{{> 'systems/l5r5e/templates/items/item/items.html'}}
</fieldset>
</article>
</section>

View File

@@ -1,49 +1,49 @@
<ul class="attributes-wrapper">
<li class="endurance-content">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.endurance' }}</strong>
<input class="centered-input" type="number" name="data.endurance" value="{{data.endurance}}" data-dtype="Number" min="0" placeholder="0"/>
<strong>{{localize 'l5r5e.attributes.endurance'}}</strong>
<input class="centered-input" type="number" name="data.endurance" value="{{data.data.endurance}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.fatigue' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.fatigue.value" value="{{data.fatigue.value}}" data-dtype="Number" min="0" placeholder="0"/>
<strong>{{localize 'l5r5e.attributes.fatigue'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.fatigue.value" value="{{data.data.fatigue.value}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<p class="item-description"> {{ localize 'l5r5e.attributes.endurancetip' }}</p>
<p class="item-description"> {{localize 'l5r5e.attributes.endurancetip'}}</p>
</li>
<li class="composure-content">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.composure' }}</strong>
<input class="centered-input" type="number" name="data.composure" value="{{data.composure}}" data-dtype="Number" min="0" placeholder="0"/>
<strong>{{localize 'l5r5e.attributes.composure'}}</strong>
<input class="centered-input" type="number" name="data.composure" value="{{data.data.composure}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.strife' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.strife.value" value="{{data.strife.value}}" data-dtype="Number" min="0" placeholder="0"/>
<strong>{{localize 'l5r5e.attributes.strife'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.strife.value" value="{{data.data.strife.value}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<p class="item-description"> {{ localize 'l5r5e.attributes.composuretip' }}</p>
<p class="item-description"> {{localize 'l5r5e.attributes.composuretip'}}</p>
</li>
<li class="focus-content">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.focus' }}</strong>
<input class="centered-input" type="number" name="data.focus" value="{{data.focus}}" data-dtype="Number" min="0" placeholder="0"/>
<strong>{{localize 'l5r5e.attributes.focus' }}</strong>
<input class="centered-input" type="number" name="data.focus" value="{{data.data.focus}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<p class="item-description"> {{ localize 'l5r5e.attributes.focustip' }}</p>
<p class="item-description"> {{localize 'l5r5e.attributes.focustip'}}</p>
</li>
<li class="vigilance-content {{#if data.is_compromised}}compromised{{/if}}">
<li class="vigilance-content {{#if data.data.is_compromised}}compromised{{/if}}">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.vigilance' }}</strong>
{{#if data.is_compromised}}
<strong>{{localize 'l5r5e.attributes.vigilance'}}</strong>
{{#if data.data.is_compromised}}
<input class="centered-input" type="number" value="1" disabled/>
{{else}}
<input class="centered-input" type="number" name="data.vigilance" value="{{data.vigilance}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="centered-input" type="number" name="data.vigilance" value="{{data.data.vigilance}}" data-dtype="Number" min="0" placeholder="0"/>
{{/if}}
</label>
<p class="item-description"> {{ localize 'l5r5e.attributes.vigilancetip' }}</p>
<p class="item-description"> {{localize 'l5r5e.attributes.vigilancetip'}}</p>
</li>
<li class="void-content">
<label class="attribute-label">
<strong>{{ localize 'l5r5e.attributes.voidpoints' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.void_points.value" value="{{data.void_points.value}}" data-dtype="Number" placeholder="0" min="0" max="{{data.void_points.max}}"/>
<input class="centered-input" type="number" name="data.void_points.max" value="{{data.void_points.max}}" data-dtype="Number" disabled/>
<strong>{{localize 'l5r5e.attributes.voidpoints' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.void_points.value" value="{{data.data.void_points.value}}" data-dtype="Number" placeholder="0" min="0" max="{{data.data.void_points.max}}"/>
<input class="centered-input" type="number" name="data.void_points.max" value="{{data.data.void_points.max}}" data-dtype="Number" disabled/>
</label>
</li>
</ul>

View File

@@ -1,20 +1,20 @@
<fieldset class="initiative initiative-wrapper">
<legend class="section-header">
{{ localize 'l5r5e.conflict.initiative.title' }}
{{localize 'l5r5e.conflict.initiative.title'}}
<a class="encounter prepared-control" data-id="{{data.type}}">
<i class="fa fas prepared-icon prepared-icon-{{data.prepared}} prepared-{{data.type}}" title="{{localize (localize 'l5r5e.conflict.initiative.prepared_{value}' value=data.prepared)}}"></i>
<i class="fa fas prepared-icon prepared-icon-{{data.data.prepared}} prepared-{{data.data.type}}" title="{{localize (localize 'l5r5e.conflict.initiative.prepared_{value}' value=data.data.prepared)}}"></i>
</a>
</legend>
<button class="initiative dice-picker" data-initiative="true" data-skill="sentiment">{{ localize 'l5r5e.conflict.initiative.intrigue'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="meditation">{{ localize 'l5r5e.conflict.initiative.duel'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="tactics">{{ localize 'l5r5e.conflict.initiative.skirmish'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="command">{{ localize 'l5r5e.conflict.initiative.mass_battle'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="sentiment">{{localize 'l5r5e.conflict.initiative.intrigue'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="meditation">{{localize 'l5r5e.conflict.initiative.duel'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="tactics">{{localize 'l5r5e.conflict.initiative.skirmish'}}</button>
<button class="initiative dice-picker" data-initiative="true" data-skill="command">{{localize 'l5r5e.conflict.initiative.mass_battle'}}</button>
</fieldset>
<fieldset class="stances-content flexrow">
<legend class="section-header">{{ localize 'l5r5e.conflict.stance' }}</legend>
<legend class="section-header">{{localize 'l5r5e.conflict.stance'}}</legend>
<ul class="item-list">
{{#each data.rings as |ringValue ringId|}}
{{> 'systems/l5r5e/templates/actors/character/stance.html' stance=../data.stance ringId=ringId }}
{{#each data.data.rings as |ringValue ringId|}}
{{> 'systems/l5r5e/templates/actors/character/stance.html' stance=../data.data.stance ringId=ringId}}
{{/each}}
</ul>
</fieldset>

View File

@@ -2,8 +2,8 @@
{{!-- Npc Type (minion / adversary) --}}
<li>
<select class="attribute-dtype" name="data.type">
{{#select data.type}}
{{#each data.types as |t|}}
{{#select data.data.type}}
{{#each data.data.types as |t|}}
<option value="{{t.id}}">{{t.label}}</option>
{{/each}}
{{/select}}
@@ -12,11 +12,11 @@
{{!-- Martial --}}
<li>
<i class="i_bushi"></i>
<input class="centered-input select-on-focus" type="number" name="data.conflict_rank.martial" value="{{data.conflict_rank.martial}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="centered-input select-on-focus" type="number" name="data.conflict_rank.martial" value="{{data.data.conflict_rank.martial}}" data-dtype="Number" min="0" placeholder="0"/>
</li>
{{!-- Social --}}
<li>
<i class="i_courtier"></i>
<input class="centered-input select-on-focus" type="number" name="data.conflict_rank.social" value="{{data.conflict_rank.social}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="centered-input select-on-focus" type="number" name="data.conflict_rank.social" value="{{data.data.conflict_rank.social}}" data-dtype="Number" min="0" placeholder="0"/>
</li>
</ul>

View File

@@ -1,29 +1,29 @@
<fieldset class="narrative-content">
<legend class="text-block-header">
{{ localize 'l5r5e.social.npc.advantages' }}
{{#if editable}}
<a data-item-type="peculiarity" class="peculiarity-control item-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{localize 'l5r5e.social.npc.advantages'}}
{{#if options.editable}}
<a data-item-type="peculiarity" class="peculiarity-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each actor.items as |item id|}}
{{#ifCond '["distinction","passion"]' 'includes' item.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../editable }}
{{#ifCond '["distinction","passion"]' 'includes' item.data.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../options.editable}}
{{/ifCond}}
{{/each}}
</ul>
</fieldset>
<fieldset class="narrative-content">
<legend class="text-block-header">
{{ localize 'l5r5e.social.npc.disadvantages' }}
{{#if editable}}
<a data-item-type="peculiarity" class="peculiarity-control item-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{localize 'l5r5e.social.npc.disadvantages'}}
{{#if options.editable}}
<a data-item-type="peculiarity" class="peculiarity-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each actor.items as |item id|}}
{{#ifCond '["adversity","anxiety"]' 'includes' item.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../editable }}
{{#ifCond '["adversity","anxiety"]' 'includes' item.data.data.peculiarity_type}}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id editable=../options.editable}}
{{/ifCond}}
{{/each}}
</ul>

View File

@@ -2,36 +2,36 @@
<li id="earth">
<label class="earth">
<i class="i_earth dice-picker rollable" data-ring="earth"></i>
<strong>{{ localizeRing 'earth' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.earth" value="{{data.rings.earth}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'earth'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.earth" value="{{data.data.rings.earth}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
<li id="air">
<label class="air">
<i class="i_air dice-picker rollable" data-ring="air"></i>
<strong>{{ localizeRing 'air' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.air" value="{{data.rings.air}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'air'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.air" value="{{data.data.rings.air}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
<li id="water">
<label class="water">
<i class="i_water dice-picker rollable" data-ring="water"></i>
<strong>{{ localizeRing 'water' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.water" value="{{data.rings.water}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'water'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.water" value="{{data.data.rings.water}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
<li id="fire">
<label class="fire">
<i class="i_fire dice-picker rollable" data-ring="fire"></i>
<strong>{{ localizeRing 'fire' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.fire" value="{{data.rings.fire}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'fire'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.fire" value="{{data.data.rings.fire}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
<li id="void">
<label class="void">
<i class="i_void dice-picker rollable" data-ring="void"></i>
<strong>{{ localizeRing 'void' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.void" value="{{data.rings.void}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<strong>{{localizeRing 'void'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.rings.void" value="{{data.data.rings.void}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
</label>
</li>
</ul>

View File

@@ -1,5 +1,5 @@
<ul class="npc-skill">{{!-- Skills --}}
{{#each data.skills as |skillValue skillCatId|}}
<ul class="npc-skill">
{{#each data.data.skills as |skillValue skillCatId|}}
<li class="skill skill-wrapper">
<label class="dice-picker" data-skillcat="{{skillCatId}}">
{{localizeSkill skillCatId "title"}}

View File

@@ -1,45 +1,45 @@
<ul class="social-content">
<li>
<label class="attribute-label centered-input">
<strong>{{ localize 'l5r5e.social.honor' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.honor" value="{{data.social.honor}}" data-dtype="Number" placeholder="0"/>
<strong>{{localize 'l5r5e.social.honor'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.honor" value="{{data.data.social.honor}}" data-dtype="Number" placeholder="0"/>
</label>
</li>
<li>
<label class="attribute-label centered-input">
<strong>{{ localize 'l5r5e.social.glory' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.glory" value="{{data.social.glory}}" data-dtype="Number" placeholder="0"/>
<strong>{{localize 'l5r5e.social.glory'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.glory" value="{{data.data.social.glory}}" data-dtype="Number" placeholder="0"/>
</label>
</li>
<li>
<label class="attribute-label centered-input">
<strong>{{ localize 'l5r5e.social.status' }}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.status" value="{{data.social.status}}" data-dtype="Number" placeholder="0"/>
<strong>{{localize 'l5r5e.social.status'}}</strong>
<input class="centered-input select-on-focus" type="number" name="data.social.status" value="{{data.data.social.status}}" data-dtype="Number" placeholder="0"/>
</label>
</li>
<li class="affinities">
{{!-- Strength --}}
<select class="attribute-dtype" name="data.rings_affinities.strength.ring">
{{#select data.rings_affinities.strength.ring}}
{{#each data.stances as |stance|}}
{{#select data.data.rings_affinities.strength.ring}}
{{#each data.data.stances as |stance|}}
<option value="{{stance}}">{{localizeRing stance}}</option>
{{/each}}
{{/select}}
</select>
<input class="centered-input select-on-focus" type="number" name="data.rings_affinities.strength.value" value="{{data.rings_affinities.strength.value}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
<input class="centered-input select-on-focus" type="number" name="data.rings_affinities.strength.value" value="{{data.data.rings_affinities.strength.value}}" data-dtype="Number" min="1" max="9" placeholder="0"/>
{{!-- Weakness --}}
<select class="attribute-dtype" name="data.rings_affinities.weakness.ring">
{{#select data.rings_affinities.weakness.ring}}
{{#each data.stances as |stance|}}
{{#select data.data.rings_affinities.weakness.ring}}
{{#each data.data.stances as |stance|}}
<option value="{{stance}}">{{localizeRing stance}}</option>
{{/each}}
{{/select}}
</select>
<input class="centered-input select-on-focus" type="number" name="data.rings_affinities.weakness.value" value="{{data.rings_affinities.weakness.value}}" data-dtype="Number" min="-9" max="-1" placeholder="0"/>
<input class="centered-input select-on-focus" type="number" name="data.rings_affinities.weakness.value" value="{{data.data.rings_affinities.weakness.value}}" data-dtype="Number" min="-9" max="-1" placeholder="0"/>
{{!-- Attitude --}}
<label class="attitude">
<input type="text" name="data.attitude" value="{{data.attitude}}" data-dtype="String" placeholder=""/>
{{ localize 'l5r5e.social.attitude' }}
<input type="text" name="data.attitude" value="{{data.data.attitude}}" data-dtype="String" placeholder=""/>
{{localize 'l5r5e.social.attitude'}}
</label>
</li>
</ul>

View File

@@ -1,7 +1,7 @@
<li class="stance-content">
<label class="stance-title {{ringId}}">
{{ localizeRing ringId }}
{{localizeRing ringId}}
<input id="stance_{{ringId}}" type="radio" name="data.stance" value="{{ringId}}" {{radioChecked ringId stance}}/>
</label>
<p class="item-description">{{ localizeStanceTip ringId }}</p>
<p class="item-description">{{localizeStanceTip ringId}}</p>
</li>

View File

@@ -1,27 +1,27 @@
<fieldset class="techniques-wrapper section-header flexrow">
<legend class="technique-controls">
{{ localize 'l5r5e.techniques.title' }}
{{localize 'l5r5e.techniques.title'}}
</legend>
<div class="checklist">
<i>{{ localize 'l5r5e.techniques.type'}}</i>
{{#each actor.data.techniquesList as |technique|}}
<i>{{localize 'l5r5e.techniques.type'}}</i>
{{#each data.techniquesList as |technique|}}
<label>
<input type="checkbox" name="data.techniques.{{technique}}" {{checked (lookup ../actor.data.techniques technique)}} />
<input type="checkbox" name="data.techniques.{{technique}}" {{checked (lookup ../data.data.techniques technique)}} />
{{localizeTechnique technique}}
</label>
{{/each}}
</div>
{{#each actor.data.splitTechniquesList as |list technique|}}
{{#each data.splitTechniquesList as |list technique|}}
<fieldset class="section-header flexrow">
<legend class="technique-controls">
{{localize (localize 'l5r5e.techniques.{technique}' technique=technique) }}
{{#ifCond ../editable '&&' (lookup ../actor.data.techniques technique)}}
<a data-item-type="technique" class="technique-control item-add" data-tech-type="{{technique}}" title="{{ localize 'l5r5e.global.add' }}"><i class="fas fa-plus"></i></a>
{{localize (localize 'l5r5e.techniques.{technique}' technique=technique)}}
{{#ifCond ../options.editable '&&' (lookup ../data.data.techniques technique)}}
<a data-item-type="technique" class="technique-control item-add" data-tech-type="{{technique}}" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/ifCond}}
</legend>
<ul class="item-list">
{{#each list as |item id|}}
{{> 'systems/l5r5e/templates/items/technique/technique-entry.html' technique=item editable=../../editable }}
{{> 'systems/l5r5e/templates/items/technique/technique-entry.html' technique=item editable=../../options.editable}}
{{/each}}
</ul>
</fieldset>

View File

@@ -1,13 +1,14 @@
<li class="item advancement flexcol toggle-on-click" data-toggle="item-description-{{advancement._id}}">
dsfj,sdifjsjsdiojidfj
<ul class="item-header advancement-controls">
<li class="item-img"><img src="{{advancement.img}}" title="{{advancement.name}}" width="32px" height="32px"/></li>
<li class="item-name">{{ advancement.name }}</li>
<li class="item-name">{{advancement.name}}</li>
{{#if editable}}
<li data-item-id="{{advancement._id}}" class="item-control item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
<li data-item-id="{{advancement_id}}" class="item-control item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
<li data-item-id="{{advancement._id}}" class="item-control item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
{{/if}}
</ul>
{{#if advancement.data.description}}
<div class="item-description item-description-{{advancement._id}}">{{{ advancement.data.description }}}</div>
{{#if advancement.data.data.description}}
<div class="item-description item-description-{{advancement._id}}">{{{advancement.data.data.description}}}</div>
{{/if}}
</li>

View File

@@ -1,35 +1,35 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
<img class="profile-img" src="{{document.img}}" data-edit="img" title="{{document.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{document.name}}" placeholder="Name"/></h1>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Attributes Tab --}}
<article class="attributes" data-group="primary" data-tab="attributes">
<select name="data.advancement_type" id="advancement_type">
{{#select item.data.advancement_type}}
{{#each item.data.subTypesList as |type|}}
{{#select document.data.data.advancement_type}}
{{#each data.subTypesList as |type|}}
<option value="{{type}}">{{type}}</option>
{{/each}}
{{/select}}
</select>
{{#ifCond item.data.advancement_type '==' 'ring' }}
{{#ifCond document.data.data.advancement_type '==' 'ring' }}
<select name="data.ring" id="advancement_ring">
{{#select item.data.ring}}
{{#each item.data.ringsList as |obj|}}
{{#select document.data.data.ring}}
{{#each data.ringsList as |obj|}}
<option value="{{obj.id}}">{{obj.label}}</option>
{{/each}}
{{/select}}
</select>
{{/ifCond}}
{{#ifCond item.data.advancement_type '==' 'skill' }}
{{#ifCond document.data.data.advancement_type '==' 'skill' }}
<select name="data.skill" id="advancement_skill">
<option value="">{{localize 'l5r5e.twenty_questions.choose_one_skill'}}</option>
{{#select item.data.skill}}
{{#each item.data.skillsList as |skills catId|}}
{{#select document.data.data.skill}}
{{#each data.skillsList as |skills catId|}}
<optgroup label="{{localizeSkill catId 'title'}}">
{{#each skills as |obj|}}
<option value="{{obj.id}}">{{obj.label}}</option>
@@ -40,22 +40,22 @@
</select>
{{/ifCond}}
<label class="cursus attribute-value checkbox">
<input type="checkbox" name="data.in_curriculum" {{checked item.data.in_curriculum}} />
<input type="checkbox" name="data.in_curriculum" {{checked document.data.data.in_curriculum}} />
{{ localize 'l5r5e.advancements.curriculum' }}
</label>
<label class="attribute">
{{ localize 'l5r5e.advancements.spent' }}
<input class="select-on-focus" type="number" name="data.xp_used" value="{{data.xp_used}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="select-on-focus" type="number" name="data.xp_used" value="{{data.data.xp_used}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="attribute">
{{ localize 'l5r5e.rank' }}
<input class="select-on-focus" type="number" name="data.rank" value="{{data.rank}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="select-on-focus" type="number" name="data.rank" value="{{data.data.rank}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="attribute">
{{ localize 'l5r5e.bought_at_rank' }}
<input class="select-on-focus" type="number" name="data.bought_at_rank" value="{{data.bought_at_rank}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="select-on-focus" type="number" name="data.bought_at_rank" value="{{data.data.bought_at_rank}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
</article>
{{> 'systems/l5r5e/templates/items/item/item-infos.html' }}
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
</section>
</form>

View File

@@ -1,9 +1,9 @@
<fieldset class="weapons-content">
<legend class="section-header">{{ localize 'l5r5e.advancements.title' }}</legend>
<legend class="section-header">{{localize 'l5r5e.advancements.title'}}</legend>
<ul class="item-list">
{{#each actor.items as |item id|}}
{{#ifCond item.type '==' 'advancement'}}
{{> 'systems/l5r5e/templates/items/advancement/advancement-entry.html' advancement=item id=id }}
{{> 'systems/l5r5e/templates/items/advancement/advancement-entry.html' advancement=item id=id}}
{{/ifCond}}
{{/each}}
</ul>

View File

@@ -1,22 +1,22 @@
<li class="item armor flexcol toggle-on-click" data-toggle="item-description-{{item._id}}">
<li class="item armor flexcol toggle-on-click" data-toggle="item-description-{{armor.id}}">
<ul class="item-header item-control">
<li class="item-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li>
<li class="item-name">{{ item.name }}</li>
<li class="item-img"><img src="{{armor.img}}" title="{{armor.name}}" width="32px" height="32px"/></li>
<li class="item-name">{{armor.name}}</li>
<li class="icon-stat-container">
<i class="fas fa-tint" title="{{ localize 'l5r5e.armors.type' }} {{ localize 'l5r5e.armors.physical' }}"> {{item.data.armor.physical}}</i>
<i class="fas fa-bolt" title="{{ localize 'l5r5e.armors.type' }} {{ localize 'l5r5e.armors.supernatural' }}"> {{item.data.armor.supernatural}}</i>
<i class="fas fa-tint" title="{{localize 'l5r5e.armors.type'}} {{localize 'l5r5e.armors.physical'}}"> {{armor.data.data.armor.physical}}</i>
<i class="fas fa-bolt" title="{{ localize 'l5r5e.armors.type'}} {{localize 'l5r5e.armors.supernatural'}}"> {{armor.data.data.armor.supernatural}}</i>
</li>
{{#if editable}}
<li data-item-id="{{item._id}}" class="item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
<li data-item-id="{{item._id}}" class="item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
<li data-item-id="{{armor.id}}" class="item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
<li data-item-id="{{armor.id}}" class="item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
{{/if}}
</ul>
<ul class="item-properties">
{{#each item.data.properties as |property id|}}
{{#each armor.data.data.properties as |property id|}}
<li>{{{ property.name }}}</li>
{{/each}}
</ul>
{{#if item.data.description}}
<div class="item-description item-description-{{item._id}}">{{{ item.data.description }}}</div>
{{#if armor.data.data.description}}
<div class="item-description item-description-{{armor.id}}">{{{ armor.data.data.description }}}</div>
{{/if}}
</li>

View File

@@ -1,14 +1,14 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
<img class="profile-img" src="{{document.img}}" data-edit="img" title="{{document.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{document.name}}" placeholder="Name"/></h1>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- attributes --}}
<article class="attributes" data-group="primary" data-tab="description">
<label class="equipped checkbox">
<input type="checkbox" name="data.equipped" {{checked item.data.equipped}} />
<input type="checkbox" name="data.equipped" {{checked document.data.data.equipped}} />
{{ localize 'l5r5e.armors.equipped' }}
</label>
{{> 'systems/l5r5e/templates/items/item/item-value.html' }}
@@ -16,17 +16,17 @@
<legend class="text-header">{{ localize 'l5r5e.armors.type' }}</legend>
<label>
{{ localize 'l5r5e.armors.physical' }}
<input class="select-on-focus" type="number" name="data.armor.physical" value="{{data.armor.physical}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="select-on-focus" type="number" name="data.armor.physical" value="{{data.data.armor.physical}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label>
{{ localize 'l5r5e.armors.supernatural' }}
<input class="select-on-focus" type="number" name="data.armor.supernatural" value="{{data.armor.supernatural}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="select-on-focus" type="number" name="data.armor.supernatural" value="{{data.data.armor.supernatural}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
</fieldset>
</article>
<article class="properties" data-group="primary" data-tab="properties">
{{> 'systems/l5r5e/templates/items/property/properties.html' properties=data.propertiesList }}
</article>
{{> 'systems/l5r5e/templates/items/item/item-infos.html' }}
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
</section>
</form>

View File

@@ -1,14 +1,14 @@
<fieldset class="armors-content">
<legend class="section-header">
{{localize 'l5r5e.armors.title'}}
{{#if editable}}
{{#if options.editable}}
<a data-item-type="armor" data-item-eqquiped="true" class="armor-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each actor.items as |item id|}}
{{#ifCond (ifCond item.type '==' 'armor') '&&' (ifCond item.data.equipped '==' true)}}
{{> 'systems/l5r5e/templates/items/armor/armor-entry.html' item=item id=id editable=../editable }}
{{#ifCond (ifCond item.type '==' 'armor') '&&' (ifCond item.data.data.equipped '==' true)}}
{{> 'systems/l5r5e/templates/items/armor/armor-entry.html' armor=item id=id editable=../options.editable }}
{{/ifCond}}
{{/each}}
</ul>

View File

@@ -1,7 +1,7 @@
<li class="item flexcol toggle-on-click" data-toggle="item-description-{{item._id}}">
<ul class="item-header item-control">
<li class="item-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li>
<li class="item-name">{{ item.name }} <sub>x{{ item.data.quantity }}</sub></li>
<li class="item-name">{{ item.name }} <sub>x{{item.data.quantity}}</sub></li>
{{#if editable}}
<li data-item-id="{{item._id}}" data-type="equipped" class="item-equip equip-readied-control" title="{{localize 'l5r5e.armors.equipped'}}"><i class="fas {{#if item.data.equipped}}fa-tshirt{{else}}fa-weight-hanging{{/if}}"></i></li>
<li data-item-id="{{item._id}}" class="item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
@@ -10,10 +10,10 @@
</ul>
<ul class="item-properties">
{{#each item.data.properties as |property id|}}
<li>{{{ property.name }}}</li>
<li>{{{property.name}}}</li>
{{/each}}
</ul>
{{#if item.data.description}}
<div class="item-description item-description-{{item._id}}">{{{ item.data.description }}}</div>
<div class="item-description item-description-{{item._id}}">{{{item.data.description}}}</div>
{{/if}}
</li>

View File

@@ -1,11 +1,11 @@
{{!-- infos --}}
<article class="infos" data-group="primary" data-tab="description">
<fieldset>
<legend class="text-block-header">{{ localize 'l5r5e.description' }}</legend>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
<legend class="text-block-header">{{localize 'l5r5e.description'}}</legend>
{{editor content=data.data.description target="data.description" button=true owner=owner editable=editable}}
</fieldset>
<label class="reference">
{{ localize 'l5r5e.book_reference' }}
<input type="text" name="data.book_reference" value="{{data.book_reference}}" />
{{localize 'l5r5e.book_reference'}}
<input type="text" name="data.book_reference" value="{{data.data.book_reference}}" />
</label>
</article>

View File

@@ -1,14 +1,14 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
<img class="profile-img" src="{{document.img}}" data-edit="img" title="{{document.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{document.name}}" placeholder="Name"/></h1>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- properties Tab --}}
<article class="attributes" data-group="primary" data-tab="checkbox">
<label class="equipped checkbox">
<input type="checkbox" name="data.equipped" {{checked item.data.equipped}} />
<input type="checkbox" name="data.equipped" {{checked document.data.data.equipped}} />
{{ localize 'l5r5e.armors.equipped' }}
</label>
{{> 'systems/l5r5e/templates/items/item/item-value.html' }}
@@ -16,6 +16,6 @@
<article class="properties" data-group="primary" data-tab="properties">
{{> 'systems/l5r5e/templates/items/property/properties.html' properties=data.propertiesList }}
</article>
{{> 'systems/l5r5e/templates/items/item/item-infos.html' }}
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
</section>
</form>

View File

@@ -1,16 +1,16 @@
<label class="value">
{{ localize 'l5r5e.quantity' }}
<input class="select-on-focus" type="number" name="data.quantity" value="{{data.quantity}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="select-on-focus" type="number" name="data.quantity" value="{{data.data.quantity}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="value">
{{ localize 'l5r5e.weight' }}
<input class="select-on-focus" type="number" name="data.weight" value="{{data.weight}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="select-on-focus" type="number" name="data.weight" value="{{data.data.weight}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="value">
{{ localize 'l5r5e.rarity' }}
<input class="select-on-focus" type="number" name="data.rarity" value="{{data.rarity}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="select-on-focus" type="number" name="data.rarity" value="{{data.data.rarity}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="value">
<i class="fas fa-coins"></i>
<input class="select-on-focus" type="text" name="data.zeni" value="{{data.zeni}}" data-dtype="String" min="0" placeholder="0"/>
<input class="select-on-focus" type="text" name="data.zeni" value="{{data.data.zeni}}" data-dtype="String" min="0" placeholder="0"/>
</label>

View File

@@ -1,13 +1,13 @@
{{#each data.splitItemsList as |cat type|}}
<h3>
{{localize (localize 'l5r5e.{type}s.title' type=type) }}
{{#if ../editable}}
<a data-item-type="{{type}}" class="item-control item-add" title="{{ localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{localize (localize 'l5r5e.{type}s.title' type=type)}}
{{#if ../options.editable}}
<a data-item-type="{{type}}" class="item-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</h3>
<ul class="item-list">
{{#each cat as |item id|}}
{{> 'systems/l5r5e/templates/items/item/item-entry.html' item=item id=id editable=../../editable }}
{{> 'systems/l5r5e/templates/items/item/item-entry.html' item=item id=id editable=../../options.editable}}
{{/each}}
</ul>
{{/each}}

View File

@@ -1,9 +1,9 @@
<fieldset class="weapons-content">
<legend class="section-header">{{ localize 'l5r5e.advancements.title' }}</legend>
<legend class="section-header">{{localize 'l5r5e.peculiarities.title'}}</legend>
<ul class="item-list">
{{#each actor.items as |item id|}}
{{#ifCond item.type '==' 'peculiarity'}}
{{> 'systems/l5r5e/templates/items/advancement/advancement-entry.html' peculiarity=item id=id }}
{{> 'systems/l5r5e/templates/items/peculiarity/peculiarity-entry.html' peculiarity=item id=id}}
{{/ifCond}}
{{/each}}
</ul>

View File

@@ -1,18 +1,18 @@
<li class="item peculiarity flexcol toggle-on-click" data-toggle="item-description-{{peculiarity._id}}">
<li class="item peculiarity flexcol toggle-on-click" data-toggle="item-description-{{peculiarity.id}}">
<ul class="item-header peculiarity-controls">
<li class="item-img"><img src="{{peculiarity.img}}" title="{{peculiarity.name}}" width="32px" height="32px"/></li>
<li class="item-name">{{ peculiarity.name }}</li>
<li class="item-name">{{peculiarity.name}}</li>
{{#if editable}}
<li data-item-id="{{peculiarity._id}}" class="item-control item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
<li data-item-id="{{peculiarity._id}}" class="item-control item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
<li data-item-id="{{peculiarity.id}}" class="item-control item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
<li data-item-id="{{peculiarity.id}}" class="item-control item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
{{/if}}
</ul>
{{#if peculiarity.data.types}}
{{#if peculiarity.data.data.types}}
<ul class="item-properties">
<li>{{ peculiarity.data.types }}</li>
<li>{{peculiarity.data.data.types}}</li>
</ul>
{{/if}}
{{#if peculiarity.data.description}}
<div class="item-description item-description-{{peculiarity._id}}">{{{ peculiarity.data.description }}}</div>
{{#if peculiarity.data.data.description}}
<div class="item-description item-description-{{peculiarity.id}}">{{{peculiarity.data.data.description}}}</div>
{{/if}}
</li>

View File

@@ -1,47 +1,47 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}" />
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name" /></h1>
<img class="profile-img" src="{{document.img}}" data-edit="img" title="{{document.name}}" />
<h1 class="charname"><input name="name" type="text" value="{{document.name}}" placeholder="Name" /></h1>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Attributes Tab --}}
<article class="tab attributes" data-group="primary" data-tab="attributes">
<select name="data.ring">
{{#select item.data.ring}}
{{#each item.data.ringsList as |obj|}}
{{#select document.data.data.ring}}
{{#each data.ringsList as |obj|}}
<option value="{{obj.id}}">{{obj.label}}</option>
{{/each}}
{{/select}}
</select>
<select class="attribute" name="data.peculiarity_type">
{{#select item.data.peculiarity_type}}
{{#each item.data.subTypesList as |type|}}
{{#select document.data.data.peculiarity_type}}
{{#each data.subTypesList as |type|}}
<option value="{{type.id}}">{{type.label}}</option>
{{/each}}
{{/select}}
</select>
<label class="cursus attribute-value checkbox">
<input type="checkbox" name="data.in_curriculum" {{checked item.data.in_curriculum}} />
{{ localize 'l5r5e.advancements.curriculum' }}
<input type="checkbox" name="data.in_curriculum" {{checked document.data.data.in_curriculum}} />
{{localize 'l5r5e.advancements.curriculum'}}
</label>
<label class="attribute">
{{ localize 'l5r5e.advancements.spent' }}
<input class="select-on-focus" type="number" name="data.xp_used" value="{{item.data.xp_used}}" data-dtype="Number" min="0" placeholder="0" />
{{localize 'l5r5e.advancements.spent'}}
<input class="select-on-focus" type="number" name="data.xp_used" value="{{document.data.data.xp_used}}" data-dtype="Number" min="0" placeholder="0" />
</label>
<label class="attribute">
{{ localize 'l5r5e.rank' }}
<input class="select-on-focus" type="number" name="data.rank" value="{{data.rank}}" data-dtype="Number" min="0" placeholder="0" />
{{localize 'l5r5e.rank' }}
<input class="select-on-focus" type="number" name="data.rank" value="{{document.data.data.rank}}" data-dtype="Number" min="0" placeholder="0" />
</label>
<label class="attribute">
{{ localize 'l5r5e.bought_at_rank' }}
<input class="select-on-focus" type="number" name="data.bought_at_rank" value="{{data.bought_at_rank}}" data-dtype="Number" min="0" placeholder="0" />
{{localize 'l5r5e.bought_at_rank'}}
<input class="select-on-focus" type="number" name="data.bought_at_rank" value="{{document.data.data.bought_at_rank}}" data-dtype="Number" min="0" placeholder="0" />
</label>
<label class="attribute full">
{{ localize 'l5r5e.types' }}
<input type="text" name="data.types" value="{{item.data.types}}" />
{{localize 'l5r5e.types' }}
<input type="text" name="data.types" value="{{document.data.data.types}}" />
</label>
</article>
{{> 'systems/l5r5e/templates/items/item/item-infos.html' }}
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
</section>
</form>

View File

@@ -1,10 +1,10 @@
<fieldset class="properties">
<legend class="section-header">{{ localize 'l5r5e.properties' }}</legend>
<legend class="section-header">{{localize 'l5r5e.properties'}}</legend>
<ul class="item-list">
{{#each properties as |item id|}}
<!-- {{#ifCond item.type '==' 'property'}}-->
{{> 'systems/l5r5e/templates/items/property/property-entry.html' item=item id=id editable=../editable }}
<!-- {{/ifCond}}-->
{{#each properties as |property id|}}
{{!-- {{#ifCond property.type '==' 'property'}} --}}
{{> 'systems/l5r5e/templates/items/property/property-entry.html' property=property id=id editable=../options.editable}}
{{!-- {{/ifCond}} --}}
{{/each}}
</ul>
</fieldset>

View File

@@ -1,12 +1,12 @@
<li class="item property flexcol toggle-on-click" data-toggle="item-description-{{item._id}}" data-property-id="{{item._id}}">
<li class="item property flexcol toggle-on-click" data-toggle="item-description-{{property.id}}" data-property-id="{{property.id}}">
<ul class="item-header property-control">
<li class="item-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li>
<li class="item-name">{{ item.name }}</li>
<li class="item-img"><img src="{{property.img}}" title="{{property.name}}" width="32px" height="32px"/></li>
<li class="item-name">{{property.name}}</li>
{{#if editable}}
<li class="property-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
{{/if}}
</ul>
{{#if item.data.data.description}}
<div class="item-description item-description-{{item._id}}">{{{ item.data.data.description }}}</div>
{{#if property.data.data.description}}
<div class="item-description item-description-{{property.id}}">{{{property.data.data.description}}}</div>
{{/if}}
</li>

View File

@@ -1,10 +1,10 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
<img class="profile-img" src="{{document.img}}" data-edit="img" title="{{document.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{document.name}}" placeholder="Name"/></h1>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> 'systems/l5r5e/templates/items/item/item-infos.html' }}
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
</section>
</form>

View File

@@ -1,13 +1,13 @@
<li class="item technique flexcol toggle-on-click" data-toggle="item-description-{{technique._id}}">
<ul class="item-header technique-controls">
<li class="item-img"><img src="{{technique.img}}" title="{{technique.name}}" width="32px" height="32px"/></li>
<li class="item-name">{{ technique.name }}</li>
<li class="item-name">{{technique.name}}</li>
{{#if editable}}
<li data-item-id="{{technique._id}}" class="item-control item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
<li data-item-id="{{technique._id}}" class="item-control item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
{{/if}}
</ul>
{{#if technique.data.description}}
<div class="item-description item-description-{{technique._id}}">{{{ technique.data.description }}}</div>
<div class="item-description item-description-{{technique._id}}">{{{technique.data.description}}}</div>
{{/if}}
</li>

View File

@@ -1,47 +1,47 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
<img class="profile-img" src="{{document.img}}" data-edit="img" title="{{document.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{document.name}}" placeholder="Name"/></h1>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- Attributes Tab --}}
<article class="attributes" data-group="primary" data-tab="attributes">
<select name="data.ring">
{{#select item.data.ring}}
{{#each item.data.ringsList as |obj|}}
{{#select document.data.data.ring}}
{{#each data.ringsList as |obj|}}
<option value="{{obj.id}}">{{obj.label}}</option>
{{/each}}
{{/select}}
</select>
<select name="data.technique_type">
{{#select item.data.technique_type}}
{{#each item.data.techniquesList as |obj|}}
{{#select document.data.data.technique_type}}
{{#each data.techniquesList as |obj|}}
<option value="{{obj.id}}">{{obj.label}}</option>
{{/each}}
{{/select}}
</select>
<label class="cursus attribute-value checkbox">
<input type="checkbox" name="data.in_curriculum" {{checked item.data.in_curriculum}} />
<input type="checkbox" name="data.in_curriculum" {{checked document.data.data.in_curriculum}} />
{{ localize 'l5r5e.advancements.curriculum' }}
</label>
<label class="attribute">
{{ localize 'l5r5e.advancements.cost' }}
<input class="select-on-focus" type="number" name="data.xp_cost" value="{{item.data.xp_cost}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="select-on-focus" type="number" name="data.xp_cost" value="{{document.data.data.xp_cost}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="attribute">
{{ localize 'l5r5e.advancements.spent' }}
<input class="select-on-focus" type="number" name="data.xp_used" value="{{item.data.xp_used}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="select-on-focus" type="number" name="data.xp_used" value="{{document.data.data.xp_used}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="attribute">
{{ localize 'l5r5e.rank' }}
<input class="select-on-focus" type="number" name="data.rank" value="{{item.data.rank}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="select-on-focus" type="number" name="data.rank" value="{{document.data.data.rank}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label class="attribute">
{{ localize 'l5r5e.bought_at_rank' }}
<input class="select-on-focus" type="number" name="data.bought_at_rank" value="{{item.data.bought_at_rank}}" data-dtype="Number" min="0" placeholder="0"/>
<input class="select-on-focus" type="number" name="data.bought_at_rank" value="{{document.data.data.bought_at_rank}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
</article>
{{> 'systems/l5r5e/templates/items/item/item-infos.html' }}
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
</section>
</form>

View File

@@ -1,26 +1,26 @@
<li class="item weapon flexcol toggle-on-click" data-toggle="item-description-{{item._id}}">
<li class="item weapon flexcol toggle-on-click" data-toggle="item-description-{{weapon.id}}">
<ul class="item-header item-control">
<li class="item-img"><img src="{{item.img}}" title="{{item.name}}" width="32px" height="32px"/></li>
<li class="item-name dice-picker" data-weapon-id="{{item._id}}">{{ item.name }}</li>
<li class="item-img"><img src="{{weapon.img}}" title="{{weapon.name}}" width="32px" height="32px"/></li>
<li class="item-name dice-picker" data-weapon-id="{{weapon.id}}">{{weapon.name}}</li>
<li class="icon-stat-container">
<i class="fas fa-arrows-alt-h" title="{{ localize 'l5r5e.weapons.range' }}"> {{item.data.range}}</i>
<i class="fas fa-tint" title="{{ localize 'l5r5e.weapons.damage' }}"> {{item.data.damage}}</i>
<i class="fas fa-skull" title="{{ localize 'l5r5e.weapons.deadliness' }}"> {{item.data.deadliness}}</i>
<i class="fas fa-arrows-alt-h" title="{{localize 'l5r5e.weapons.range'}}"> {{weapon.data.data.range}}</i>
<i class="fas fa-tint" title="{{localize 'l5r5e.weapons.damage'}}"> {{weapon.data.data.damage}}</i>
<i class="fas fa-skull" title="{{localize 'l5r5e.weapons.deadliness'}}"> {{weapon.data.data.deadliness}}</i>
</li>
{{#if editable}}
<li data-item-id="{{item._id}}" class="item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
<li data-item-id="{{item._id}}" class="item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
<li data-item-id="{{weapon.id}}" class="item-edit" title="{{localize 'l5r5e.global.edit'}}"><i class="fas fa-edit"></i></li>
<li data-item-id="{{weapon.id}}" class="item-delete" title="{{localize 'Delete'}}"><i class="fas fa-trash"></i></li>
{{/if}}
</ul>
<ul class="item-properties">
<li class="equip-readied-control" data-item-id="{{item._id}}" data-type="readied">
<i class="i_readied fa{{^if item.data.readied}}r{{/if}} fa-check-circle" title="{{#if item.data.readied}}{{localize 'l5r5e.weapons.readied'}}{{else}}{{localize 'l5r5e.weapons.sheathed'}}{{/if}}"></i>
<li class="equip-readied-control" data-item-id="{{weapon.id}}" data-type="readied">
<i class="i_readied fa{{^if weapon.data.data.readied}}r{{/if}} fa-check-circle" title="{{#if weapon.data.data.readied}}{{localize 'l5r5e.weapons.readied'}}{{else}}{{localize 'l5r5e.weapons.sheathed'}}{{/if}}"></i>
</li>
{{#each item.data.properties as |property id|}}
<li>{{{ property.name }}}</li>
{{#each weapon.data.data.properties as |property id|}}
<li>{{{property.name}}}</li>
{{/each}}
</ul>
{{#if item.data.description}}
<div class="item-description item-description-{{item._id}}">{{{ item.data.description }}}</div>
{{#if weapon.data.data.description}}
<div class="item-description item-description-{{weapon.id}}">{{{weapon.data.data.description}}}</div>
{{/if}}
</li>

View File

@@ -1,29 +1,29 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="profile-img" src="{{item.img}}" data-edit="img" title="{{item.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1>
<img class="profile-img" src="{{document.img}}" data-edit="img" title="{{document.name}}"/>
<h1 class="charname"><input name="name" type="text" value="{{document.name}}" placeholder="Name"/></h1>
</header>
{{!-- Sheet Body --}}
<section class="sheet-body">
{{!-- attributes--}}
<article class="attributes" data-group="primary" data-tab="description">
<label class="attribute-value checkbox">
<input type="checkbox" name="data.equipped" {{checked item.data.equipped}} />
{{ localize 'l5r5e.weapons.sheathed' }}
<input type="checkbox" name="data.equipped" {{checked document.data.data.equipped}} />
{{localize 'l5r5e.weapons.sheathed'}}
</label>
<label class="attribute-value checkbox">
<input type="checkbox" name="data.readied" {{checked item.data.readied}} />
{{ localize 'l5r5e.weapons.readied' }}
<input type="checkbox" name="data.readied" {{checked document.data.data.readied}} />
{{localize 'l5r5e.weapons.readied'}}
</label>
{{> 'systems/l5r5e/templates/items/item/item-value.html' }}
<label class="category">
{{ localize 'l5r5e.weapons.category' }}
<input type="text" name="data.category" value="{{data.category}}" />
{{localize 'l5r5e.weapons.category'}}
<input type="text" name="data.category" value="{{document.data.data.category}}" />
</label>
<label class="skillType">
{{ localize 'l5r5e.skill' }}
{{localize 'l5r5e.skill'}}
<select class="attribute-dtype" name="data.skill">
{{#select data.skill}}
{{#select document.data.data.skill}}
{{#each data.skills as |id cat|}}
<option value="{{id}}">{{localizeSkillId id}}</option>
{{/each}}
@@ -31,29 +31,29 @@
</select>
</label>
<fieldset class="stats">
<legend class="text-block-header">{{ localize 'l5r5e.weapons.stats' }}</legend>
<legend class="text-block-header">{{localize 'l5r5e.weapons.stats'}}</legend>
<label>
{{ localize 'l5r5e.weapons.range' }}
<input class="select-on-focus" type="text" name="data.range" value="{{data.range}}" data-dtype="String" placeholder="0"/>
{{localize 'l5r5e.weapons.range'}}
<input class="select-on-focus" type="text" name="data.range" value="{{document.data.data.range}}" data-dtype="String" placeholder="0"/>
</label>
<label>
{{ localize 'l5r5e.weapons.damage' }}
<input class="select-on-focus" type="number" name="data.damage" value="{{data.damage}}" data-dtype="Number" min="0" placeholder="0"/>
{{localize 'l5r5e.weapons.damage'}}
<input class="select-on-focus" type="number" name="data.damage" value="{{document.data.data.damage}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
<label>
{{ localize 'l5r5e.weapons.deadliness' }}
<input class="select-on-focus" type="number" name="data.deadliness" value="{{data.deadliness}}" data-dtype="Number" min="0" placeholder="0"/>
{{localize 'l5r5e.weapons.deadliness'}}
<input class="select-on-focus" type="number" name="data.deadliness" value="{{document.data.data.deadliness}}" data-dtype="Number" min="0" placeholder="0"/>
</label>
</fieldset>
<fieldset class="stats">
<legend class="text-block-header">{{ localize 'l5r5e.weapons.grips' }}</legend>
<input class="grip" type="text" name="data.grip_1" value="{{data.grip_1}}" />
<input class="grip" type="text" name="data.grip_2" value="{{data.grip_2}}" />
<legend class="text-block-header">{{localize 'l5r5e.weapons.grips'}}</legend>
<input class="grip" type="text" name="data.grip_1" value="{{document.data.data.grip_1}}" />
<input class="grip" type="text" name="data.grip_2" value="{{document.data.data.grip_2}}" />
</fieldset>
</article>
<article class="properties" data-group="primary" data-tab="properties">
{{> 'systems/l5r5e/templates/items/property/properties.html' properties=data.propertiesList }}
{{> 'systems/l5r5e/templates/items/property/properties.html' properties=data.propertiesList}}
</article>
{{> 'systems/l5r5e/templates/items/item/item-infos.html' }}
{{> 'systems/l5r5e/templates/items/item/item-infos.html'}}
</section>
</form>

View File

@@ -1,14 +1,14 @@
<fieldset class="weapons-content">
<legend class="section-header">
{{localize 'l5r5e.weapons.title'}}
{{#if editable}}
{{#if options.editable}}
<a data-item-type="weapon" data-item-eqquiped="true" class="weapon-control item-add" title="{{localize 'l5r5e.global.add'}}"><i class="fas fa-plus"></i></a>
{{/if}}
</legend>
<ul class="item-list">
{{#each actor.items as |item id|}}
{{#ifCond (ifCond item.type '==' 'weapon') '&&' (ifCond item.data.equipped '==' true)}}
{{> 'systems/l5r5e/templates/items/weapon/weapon-entry.html' item=item id=id editable=../editable }}
{{#ifCond (ifCond item.type '==' 'weapon') '&&' (ifCond item.data.data.equipped '==' true)}}
{{> 'systems/l5r5e/templates/items/weapon/weapon-entry.html' weapon=item id=id editable=../options.editable}}
{{/ifCond}}
{{/each}}
</ul>