Working on 0.8.x - Character sheets related
This commit is contained in:
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
@@ -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"}}
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user