forked from GitHub-Mirrors/foundry-sw5e
Update Core to 1.4.1
Update Core to 1.4.1 and internal Version to 1.4.1.R1-A8
This commit is contained in:
parent
f16383841b
commit
5bb253d9c3
56 changed files with 5440 additions and 3827 deletions
|
@ -2,6 +2,7 @@
|
|||
{{!-- Sheet Header --}}
|
||||
<header class="panel">
|
||||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img" />
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-warnings.html"}}
|
||||
<h1 class="character-name">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}" />
|
||||
</h1>
|
||||
|
@ -36,11 +37,16 @@
|
|||
<div class="attributes">
|
||||
{{!-- ARMOR CLASS --}}
|
||||
<section>
|
||||
<h1>{{ localize "SW5E.ArmorClass" }}</h1>
|
||||
<div class="attribute-value">
|
||||
<input class="ac-display" name="data.attributes.ac.value" type="text"
|
||||
value="{{data.attributes.ac.value}}" data-dtype="Number" placeholder="10" />
|
||||
</div>
|
||||
|
||||
<li class="attribute armor">
|
||||
<h4 class="attribute-name box-title">
|
||||
{{ localize "SW5E.ArmorClass" }}
|
||||
<a class="config-button" data-action="armor" title="{{localize 'SW5E.ArmorConfig'}}"><i class="fas fa-cog"></i></a>
|
||||
</h4>
|
||||
<div class="attribute-value attributable" data-property="attributes.ac">
|
||||
<span>{{data.attributes.ac.value}}</span>
|
||||
</div>
|
||||
</li>
|
||||
</section>
|
||||
|
||||
{{!-- HIT POINTS --}}
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
{{!-- NPC Sheet Header --}}
|
||||
<header class="panel">
|
||||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img" />
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-warnings.html"}}
|
||||
|
||||
<h1 class="character-name">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}" />
|
||||
</h1>
|
||||
|
@ -15,8 +17,12 @@
|
|||
<div class="experience">
|
||||
<span class="max">{{data.details.xp.value}} XP</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="proficiency">
|
||||
<span>
|
||||
{{ localize "SW5E.Proficiency" }} {{numberFormat data.attributes.prof decimals=0 sign=true}}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="summary">
|
||||
<span class="npc-size">{{lookup config.actorSizes data.traits.size}}</span>
|
||||
<input type="text" name="data.details.alignment" value="{{data.details.alignment}}"
|
||||
|
@ -31,15 +37,18 @@
|
|||
<div class="attributes">
|
||||
{{!-- ARMOR CLASS --}}
|
||||
<section>
|
||||
<h1>{{ localize "SW5E.ArmorClass" }}</h1>
|
||||
<div class="attribute-value">
|
||||
<input class="ac-display" name="data.attributes.ac.value" type="text"
|
||||
value="{{data.attributes.ac.value}}" data-dtype="Number" placeholder="10" />
|
||||
</div>
|
||||
<footer class="attribute-footer proficiency">
|
||||
{{ localize "SW5E.Proficiency" }}
|
||||
{{numberFormat data.attributes.prof decimals=0 sign=true}}
|
||||
</footer>
|
||||
<li class="attribute armor">
|
||||
<h4 class="attribute-name box-title">
|
||||
{{ localize "SW5E.ArmorClass" }}
|
||||
<a class="config-button" data-action="armor" title="{{localize 'SW5E.ArmorConfig'}}"><i class="fas fa-cog"></i></a>
|
||||
</h4>
|
||||
<div class="attribute-value attributable" data-property="attributes.ac">
|
||||
<span>{{data.attributes.ac.value}}</span>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<span>{{labels.armorType}}</span>
|
||||
</footer>
|
||||
</li>
|
||||
</section>
|
||||
|
||||
{{!-- HIT POINTS --}}
|
||||
|
@ -99,7 +108,7 @@
|
|||
<span class="ability-mod"
|
||||
title="{{ localize 'SW5E.Modifier' }}">{{numberFormat ability.mod decimals=0 sign=true}}</span>
|
||||
<input type="hidden" name="data.abilities.{{id}}.proficient"
|
||||
value="{{ability.proficient}}" data-dtype="Number" />
|
||||
value="{{ability.baseProf}}" data-dtype="Number" />
|
||||
<button class="proficiency-toggle ability-proficiency"
|
||||
title="Proficiency">{{{ability.icon}}}</button>
|
||||
<span class="ability-save"
|
||||
|
@ -116,7 +125,7 @@
|
|||
{{#each config.skills as |label s|}}
|
||||
{{#with (lookup ../data.skills s) as |skill|}}
|
||||
<li class="skill {{#if skill.value}}proficient{{/if}}" data-skill="{{s}}">
|
||||
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.value}}"
|
||||
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.baseValue}}"
|
||||
data-dtype="Number" />
|
||||
<button class="proficiency-toggle skill-proficiency"
|
||||
title="{{skill.hover}}">{{{skill.icon}}}</button>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<span class="ability-mod"
|
||||
title="{{ localize 'SW5E.Modifier' }}">{{numberFormat ability.mod decimals=0 sign=true}}</span>
|
||||
<input type="hidden" name="data.abilities.{{id}}.proficient"
|
||||
value="{{ability.proficient}}" data-dtype="Number" />
|
||||
value="{{ability.baseProf}}" data-dtype="Number" />
|
||||
<button class="proficiency-toggle ability-proficiency"
|
||||
title="Proficiency">{{{ability.icon}}}</button>
|
||||
<span class="ability-save"
|
||||
|
@ -29,7 +29,7 @@
|
|||
{{#each config.skills as |label s|}}
|
||||
{{#with (lookup ../data.skills s) as |skill|}}
|
||||
<li class="skill {{#if skill.value}}proficient{{/if}}" data-skill="{{s}}">
|
||||
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.value}}"
|
||||
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.baseValue}}"
|
||||
data-dtype="Number" />
|
||||
<button class="proficiency-toggle skill-proficiency"
|
||||
title="{{skill.hover}}">{{{skill.icon}}}</button>
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
{{#if ../../isCharacter}}
|
||||
<div class="item-detail item-weight">
|
||||
{{#if item.totalWeight}}
|
||||
{{ item.totalWeight }} {{localize "SW5E.AbbreviationLbs"}}
|
||||
{{ item.totalWeight }} {{ @root.weightUnit }}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
|
||||
<div>
|
||||
<label>{{localize "SW5E.TraitArmorProf"}}</label>
|
||||
<a class="trait-selector" data-options="armorProficiencies" data-target="data.traits.armorProf">
|
||||
<a class="proficiency-selector" data-type="armor" data-target="data.traits.armorProf">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
|
@ -123,7 +123,7 @@
|
|||
</div>
|
||||
<div>
|
||||
<label>{{localize "SW5E.TraitToolProf"}}</label>
|
||||
<a class="trait-selector" data-options="toolProficiencies" data-target="data.traits.toolProf">
|
||||
<a class="proficiency-selector" data-type="tool" data-target="data.traits.toolProf">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
|
@ -134,7 +134,7 @@
|
|||
</div>
|
||||
<div>
|
||||
<label>{{localize "SW5E.TraitWeaponProf"}}</label>
|
||||
<a class="trait-selector" data-options="weaponProficiencies" data-target="data.traits.weaponProf">
|
||||
<a class="proficiency-selector" data-type="weapon" data-target="data.traits.weaponProf">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
|
|
5
templates/actors/newActor/parts/swalt-warnings.html
Normal file
5
templates/actors/newActor/parts/swalt-warnings.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<ol class="warnings">
|
||||
{{#each warnings}}
|
||||
<li class="notification warning">{{localize this}}</li>
|
||||
{{/each}}
|
||||
</ol>
|
|
@ -3,7 +3,9 @@
|
|||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" alt="{{actor.name}}"
|
||||
data-edit="img">
|
||||
<section class="header-details flexrow">
|
||||
<h1 class="charnam">
|
||||
{{> "systems/sw5e/templates/actors/parts/actor-warnings.html"}}
|
||||
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{actor.name}}"
|
||||
placeholder="{{localize 'SW5E.Name'}}">
|
||||
</h1>
|
||||
|
@ -12,8 +14,10 @@
|
|||
<span>{{lookup config.actorSizes data.traits.size}}</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>{{localize 'SW5E.Vehicle'}}</span>
|
||||
</li>
|
||||
<select name="data.vehicleType">
|
||||
{{selectOptions config.vehicleTypes selected=data.vehicleType}}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.traits.dimensions"
|
||||
value="{{data.traits.dimensions}}"
|
||||
|
@ -47,8 +51,8 @@
|
|||
<li class="attribute">
|
||||
<h4 class="attribute-name box-title">{{localize 'SW5E.ArmorClass'}}</h4>
|
||||
<div class="attribute-value">
|
||||
<input name="data.attributes.ac.value" type="text" placeholder="—"
|
||||
value="{{data.attributes.ac.value}}" data-dtype="Number">
|
||||
<input name="data.attributes.ac.flat" type="text" placeholder="—"
|
||||
value="{{data.attributes.ac.flat}}" data-dtype="Number">
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<input type="text" name="data.attributes.ac.motionless"
|
||||
|
@ -155,7 +159,9 @@
|
|||
<div class="tab cargo flexcol" data-group="primary" data-tab="cargo">
|
||||
{{> 'systems/sw5e/templates/actors/newActor/parts/swalt-inventory.html' sections=cargo}}
|
||||
</div>
|
||||
|
||||
<div class="tab effects flexcol" data-group="primary" data-tab="effects">
|
||||
{{> "systems/sw5e/templates/actors/parts/active-effects.html"}}
|
||||
</div>
|
||||
<div class="tab biography flexcol" data-group="primary" data-tab="biography">
|
||||
{{editor content=data.details.biography.value target='data.details.biography.value'
|
||||
button=true owner=owner editable=editable rollData=rollData}}
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img"/>
|
||||
|
||||
<section class="header-details flexrow">
|
||||
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-warnings.html"}}
|
||||
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}"/>
|
||||
</h1>
|
||||
|
@ -74,10 +76,13 @@
|
|||
</footer>
|
||||
</li>
|
||||
|
||||
<li class="attribute">
|
||||
<h4 class="attribute-name box-title">{{ localize "SW5E.ArmorClass" }}</h4>
|
||||
<div class="attribute-value">
|
||||
<input name="data.attributes.ac.value" type="number" value="{{data.attributes.ac.value}}" placeholder="10"/>
|
||||
<li class="attribute armor">
|
||||
<h4 class="attribute-name box-title">
|
||||
{{ localize "SW5E.ArmorClass" }}
|
||||
<a class="config-button" data-action="armor" title="{{localize 'SW5E.ArmorConfig'}}"><i class="fas fa-cog"></i></a>
|
||||
</h4>
|
||||
<div class="attribute-value attributable" data-property="attributes.ac">
|
||||
<span>{{data.attributes.ac.value}}</span>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<span class="power-dc">{{localize "SW5E.PowerDC"}} {{data.attributes.powerdc}}</span>
|
||||
|
@ -136,7 +141,7 @@
|
|||
<input class="ability-score" name="data.abilities.{{id}}.value" type="number" value="{{ability.value}}" placeholder="10"/>
|
||||
<div class="ability-modifiers flexrow">
|
||||
<span class="ability-mod" title="{{ localize 'SW5E.Modifier' }}">{{numberFormat ability.mod decimals=0 sign=true}}</span>
|
||||
<input type="hidden" name="data.abilities.{{id}}.proficient" value="{{ability.proficient}}" data-dtype="Number"/>
|
||||
<input type="hidden" name="data.abilities.{{id}}.proficient" value="{{ability.baseProf}}" data-dtype="Number"/>
|
||||
<a class="proficiency-toggle ability-proficiency" title="{{ localize 'SW5E.Proficiency' }}">{{{ability.icon}}}</a>
|
||||
<span class="ability-save" title="{{ localize 'SW5E.SavingThrow' }}">{{numberFormat ability.save decimals=0 sign=true}}</span>
|
||||
</div>
|
||||
|
@ -149,7 +154,7 @@
|
|||
{{#each config.skills as |label s|}}
|
||||
{{#with (lookup ../data.skills s) as |skill|}}
|
||||
<li class="skill flexrow {{#if skill.value}}proficient{{/if}}" data-skill="{{s}}">
|
||||
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.value}}" data-dtype="Number"/>
|
||||
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.baseValue}}" data-dtype="Number"/>
|
||||
<a class="proficiency-toggle skill-proficiency" title="{{skill.hover}}">{{{skill.icon}}}</a>
|
||||
<h4 class="skill-name rollable">{{label}}</h4>
|
||||
<span class="skill-ability">{{skill.ability}}</span>
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img"/>
|
||||
|
||||
<section class="header-details flexrow">
|
||||
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-warnings.html"}}
|
||||
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}"/>
|
||||
</h1>
|
||||
|
@ -17,6 +19,11 @@
|
|||
<div class="experience">
|
||||
<span>{{data.details.xp.value}} XP</span>
|
||||
</div>
|
||||
<div class="proficiency">
|
||||
<span>
|
||||
{{ localize "SW5E.Proficiency" }} {{numberFormat data.attributes.prof decimals=0 sign=true}}
|
||||
</span>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
{{!-- Character Summary --}}
|
||||
|
@ -51,14 +58,16 @@
|
|||
</footer>
|
||||
</li>
|
||||
|
||||
<li class="attribute">
|
||||
<h4 class="attribute-name box-title">{{ localize "SW5E.ArmorClass" }}</h4>
|
||||
<div class="attribute-value">
|
||||
<input name="data.attributes.ac.value" type="number" value="{{data.attributes.ac.value}}" placeholder="10"/>
|
||||
<li class="attribute armor">
|
||||
<h4 class="attribute-name box-title">
|
||||
{{ localize "SW5E.ArmorClass" }}
|
||||
<a class="config-button" data-action="armor" title="{{localize 'SW5E.ArmorConfig'}}"><i class="fas fa-cog"></i></a>
|
||||
</h4>
|
||||
<div class="attribute-value attributable" data-property="attributes.ac">
|
||||
<span>{{data.attributes.ac.value}}</span>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<span>{{ localize "SW5E.Proficiency" }}</span>
|
||||
<span>{{numberFormat data.attributes.prof decimals=0 sign=true}}</span>
|
||||
<span>{{labels.armorType}}</span>
|
||||
</footer>
|
||||
</li>
|
||||
|
||||
|
@ -99,7 +108,7 @@
|
|||
<input class="ability-score" name="data.abilities.{{id}}.value" type="number" value="{{ability.value}}" placeholder="10"/>
|
||||
<div class="ability-modifiers flexrow">
|
||||
<span class="ability-mod" title="{{ localize 'SW5E.Modifier' }}">{{numberFormat ability.mod decimals=0 sign=true}}</span>
|
||||
<input type="hidden" name="data.abilities.{{id}}.proficient" value="{{ability.proficient}}" data-dtype="Number"/>
|
||||
<input type="hidden" name="data.abilities.{{id}}.proficient" value="{{ability.baseProf}}" data-dtype="Number"/>
|
||||
<a class="proficiency-toggle ability-proficiency" title="{{ localize 'SW5E.Proficiency' }}">{{{ability.icon}}}</a>
|
||||
<span class="ability-save" title="{{ localize 'SW5E.SavingThrow' }}">{{numberFormat ability.save decimals=0 sign=true}}</span>
|
||||
</div>
|
||||
|
@ -112,7 +121,7 @@
|
|||
{{#each config.skills as |label s|}}
|
||||
{{#with (lookup ../data.skills s) as |skill|}}
|
||||
<li class="skill flexrow {{#if skill.value}}proficient{{/if}}" data-skill="{{s}}">
|
||||
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.value}}" data-dtype="Number"/>
|
||||
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.baseValue}}" data-dtype="Number"/>
|
||||
<a class="proficiency-toggle skill-proficiency" title="{{skill.hover}}">{{{skill.icon}}}</a>
|
||||
<h4 class="skill-name rollable">{{label}}</h4>
|
||||
<span class="skill-ability">{{skill.ability}}</span>
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
{{#if section.columns}}
|
||||
{{#each section.columns}}
|
||||
<div class="item-detail {{css}}">
|
||||
{{#with (lookup item property)}}
|
||||
{{#with (getProperty item property)}}
|
||||
{{#if ../editable}}
|
||||
<input type="text" value="{{this}}" placeholder="—"
|
||||
data-dtype="{{../editable}}">
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
<div class="item-detail item-weight">
|
||||
{{#if item.totalWeight}}
|
||||
<div class="item-detail">
|
||||
{{ item.totalWeight }} {{localize "SW5E.AbbreviationLbs"}}
|
||||
{{ item.totalWeight }} {{ @root.weightUnit }}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
{{#if isCharacter}}
|
||||
<div class="form-group {{data.traits.weaponProf.cssClass}}">
|
||||
<label>{{localize "SW5E.TraitWeaponProf"}}</label>
|
||||
<a class="trait-selector" data-options="weaponProficiencies" data-target="data.traits.weaponProf">
|
||||
<a class="proficiency-selector" data-type="weapon" data-target="data.traits.weaponProf">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
|
@ -97,7 +97,7 @@
|
|||
|
||||
<div class="form-group {{data.traits.armorProf.cssClass}}">
|
||||
<label>{{localize "SW5E.TraitArmorProf"}}</label>
|
||||
<a class="trait-selector" data-options="armorProficiencies" data-target="data.traits.armorProf">
|
||||
<a class="proficiency-selector" data-type="armor" data-target="data.traits.armorProf">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
|
@ -109,7 +109,7 @@
|
|||
|
||||
<div class="form-group {{data.traits.toolProf.cssClass}}">
|
||||
<label>{{localize "SW5E.TraitToolProf"}}</label>
|
||||
<a class="trait-selector" data-options="toolProficiencies" data-target="data.traits.toolProf">
|
||||
<a class="proficiency-selector" data-type="tool" data-target="data.traits.toolProf">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
|
|
5
templates/actors/oldActor/parts/actor-warnings.html
Normal file
5
templates/actors/oldActor/parts/actor-warnings.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<ol class="warnings">
|
||||
{{#each warnings}}
|
||||
<li class="notification warning">{{localize this}}</li>
|
||||
{{/each}}
|
||||
</ol>
|
|
@ -3,7 +3,9 @@
|
|||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" alt="{{actor.name}}"
|
||||
data-edit="img">
|
||||
<section class="header-details flexrow">
|
||||
<h1 class="charnam">
|
||||
{{> "systems/sw5e/templates/actors/parts/actor-warnings.html"}}
|
||||
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{actor.name}}"
|
||||
placeholder="{{localize 'SW5E.Name'}}">
|
||||
</h1>
|
||||
|
@ -12,8 +14,10 @@
|
|||
<span>{{lookup config.actorSizes data.traits.size}}</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>{{localize 'SW5E.Vehicle'}}</span>
|
||||
</li>
|
||||
<select name="data.vehicleType">
|
||||
{{selectOptions config.vehicleTypes selected=data.vehicleType}}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.traits.dimensions"
|
||||
value="{{data.traits.dimensions}}"
|
||||
|
@ -47,8 +51,8 @@
|
|||
<li class="attribute">
|
||||
<h4 class="attribute-name box-title">{{localize 'SW5E.ArmorClass'}}</h4>
|
||||
<div class="attribute-value">
|
||||
<input name="data.attributes.ac.value" type="text" placeholder="—"
|
||||
value="{{data.attributes.ac.value}}" data-dtype="Number">
|
||||
<input name="data.attributes.ac.flat" type="text" placeholder="—"
|
||||
value="{{data.attributes.ac.flat}}" data-dtype="Number">
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<input type="text" name="data.attributes.ac.motionless"
|
||||
|
@ -155,7 +159,9 @@
|
|||
<div class="tab cargo flexcol" data-group="primary" data-tab="cargo">
|
||||
{{> 'systems/sw5e/templates/actors/oldActor/parts/actor-inventory.html' sections=cargo}}
|
||||
</div>
|
||||
|
||||
<div class="tab effects flexcol" data-group="primary" data-tab="effects">
|
||||
{{> "systems/sw5e/templates/actors/parts/active-effects.html"}}
|
||||
</div>
|
||||
<div class="tab biography flexcol" data-group="primary" data-tab="biography">
|
||||
{{editor content=data.details.biography.value target='data.details.biography.value'
|
||||
button=true owner=owner editable=editable rollData=rollData}}
|
||||
|
|
|
@ -1,38 +1,48 @@
|
|||
<ol class="items-list effects-list">
|
||||
{{#each effects as |section sid|}}
|
||||
<li class="items-header flexrow" data-effect-type="{{section.type}}">
|
||||
<h3 class="item-name effect-name flexrow">{{localize section.label}}</h3>
|
||||
<div class="effect-source">{{localize "SW5E.Source"}}</div>
|
||||
<div class="effect-source">{{localize "SW5E.Duration"}}</div>
|
||||
<div class="item-controls effect-controls flexrow">
|
||||
<a class="effect-control" data-action="create" title="{{localize 'SW5E.EffectCreate'}}">
|
||||
<i class="fas fa-plus"></i> {{localize "SW5E.Add"}}
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
{{#each effects as |section sid|}}
|
||||
{{#unless section.hidden}}
|
||||
<li class="items-header flexrow" data-effect-type="{{section.type}}">
|
||||
<h3 class="item-name effect-name flexrow">{{localize section.label}}</h3>
|
||||
<div class="effect-source">{{localize "SW5E.Source"}}</div>
|
||||
<div class="effect-source">{{localize "SW5E.Duration"}}</div>
|
||||
<div class="item-controls effect-controls flexrow">
|
||||
<a class="effect-control" data-action="create" title="{{localize 'SW5E.EffectCreate'}}">
|
||||
<i class="fas fa-plus"></i> {{localize "SW5E.Add"}}
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<ol class="item-list">
|
||||
{{#each section.effects as |effect|}}
|
||||
<li class="item effect flexrow" data-effect-id="{{effect.id}}">
|
||||
<div class="item-name effect-name flexrow">
|
||||
<img class="item-image" src="{{effect.data.icon}}"/>
|
||||
<h4>{{effect.data.label}}</h4>
|
||||
</div>
|
||||
<div class="effect-source">{{effect.sourceName}}</div>
|
||||
<div class="effect-duration">{{effect.duration.label}}</div>
|
||||
<div class="item-controls effect-controls flexrow">
|
||||
<a class="effect-control" data-action="toggle" title="{{localize 'SW5E.EffectToggle'}}">
|
||||
<i class="fas {{#if effect.data.disabled}}fa-check{{else}}fa-times{{/if}}"></i>
|
||||
</a>
|
||||
<a class="effect-control" data-action="edit" title="{{localize 'SW5E.EffectEdit'}}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="effect-control" data-action="delete" title="{{localize 'SW5E.EffectDelete'}}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
{{#if section.info}}
|
||||
<ol class="info">
|
||||
{{#each section.info}}
|
||||
<li class="notification info">{{this}}</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{/if}}
|
||||
|
||||
<ol class="item-list">
|
||||
{{#each section.effects as |effect|}}
|
||||
<li class="item effect flexrow" data-effect-id="{{effect.id}}">
|
||||
<div class="item-name effect-name flexrow">
|
||||
<img class="item-image" src="{{effect.data.icon}}"/>
|
||||
<h4>{{effect.data.label}}</h4>
|
||||
</div>
|
||||
<div class="effect-source">{{effect.sourceName}}</div>
|
||||
<div class="effect-duration">{{effect.duration.label}}</div>
|
||||
<div class="item-controls effect-controls flexrow">
|
||||
<a class="effect-control" data-action="toggle" title="{{localize 'SW5E.EffectToggle'}}">
|
||||
<i class="fas {{#if effect.data.disabled}}fa-check{{else}}fa-times{{/if}}"></i>
|
||||
</a>
|
||||
<a class="effect-control" data-action="edit" title="{{localize 'SW5E.EffectEdit'}}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<a class="effect-control" data-action="delete" title="{{localize 'SW5E.EffectDelete'}}">
|
||||
<i class="fas fa-trash"></i>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{/unless}}
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{/each}}
|
||||
</ol>
|
||||
|
|
21
templates/apps/actor-armor.html
Normal file
21
templates/apps/actor-armor.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<form>
|
||||
<div class="ac-field form-group">
|
||||
<input type="number" name="ac.flat" value="{{value}}" {{#if valueDisabled}}disabled{{/if}}>
|
||||
</div>
|
||||
|
||||
<div class="form-group select">
|
||||
<label>{{localize "SW5E.ArmorClassCalculation"}}</label>
|
||||
<select name="ac.calc">
|
||||
{{selectOptions calculations selected=ac.calc labelAttr="label"}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group stacked">
|
||||
<label>{{localize "SW5E.ArmorClassFormula"}}</label>
|
||||
<input type="text" name="ac.formula" value="{{formula}}" {{#if formulaDisabled}}disabled{{/if}}>
|
||||
</div>
|
||||
|
||||
<button type="submit" name="submit" value="1">
|
||||
<i class="far fa-save"></i> {{ localize "SW5E.TraitSave" }}
|
||||
</button>
|
||||
</form>
|
16
templates/apps/property-attribution.html
Normal file
16
templates/apps/property-attribution.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<div class="property-attribution">
|
||||
<table>
|
||||
{{#each sources as |source|}}
|
||||
<tr>
|
||||
<td class="attribution-value mode-{{source.mode}}{{#if source.negative}} negative{{/if}}">
|
||||
{{source.value}}
|
||||
</td>
|
||||
<td class="attribution-label">{{source.label}}</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
<tr class="total">
|
||||
<td class="attribution-value">{{total}}</td>
|
||||
<td class="attribution-label">{{localize "SW5E.PropertyTotal"}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
|
@ -1,19 +1,27 @@
|
|||
<form autocomplete="off" onsubmit="event.preventDefault();">
|
||||
<ol class="trait-list">
|
||||
{{#each choices as |choice key|}}
|
||||
<li>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="{{key}}" data-dtype="Boolean" {{checked choice.chosen}}>
|
||||
{{choice.label}}
|
||||
</label>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
|
||||
{{#*inline "traitList"}}
|
||||
<ol class="trait-list">
|
||||
{{#each choices as |choice key|}}
|
||||
<li>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="{{key}}" data-dtype="Boolean" {{checked choice.chosen}}>
|
||||
{{choice.label}}
|
||||
</label>
|
||||
{{#if choice.children}}
|
||||
{{> traitList choices=choice.children}}
|
||||
{{/if}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{/inline}}
|
||||
|
||||
{{> traitList}}
|
||||
{{#if allowCustom}}
|
||||
<div class="form-group stacked">
|
||||
<label>{{ localize "SW5E.TraitSelectorSpecial" }}</label>
|
||||
<input type="text" name="custom" value="{{custom}}" data-dtype="String"/>
|
||||
</div>
|
||||
<div class="form-group stacked">
|
||||
<label>{{ localize "SW5E.TraitSelectorSpecial" }}</label>
|
||||
<input type="text" name="custom" value="{{custom}}" data-dtype="String"/>
|
||||
</div>
|
||||
{{/if}}
|
||||
<button type="submit" name="submit" value="1"><i class="far fa-save"></i> {{ localize "SW5E.TraitSave"}}</button>
|
||||
</form>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="sw5e chat-card item-card" data-actor-id="{{actor.data._id}}" data-item-id="{{item._id}}"
|
||||
<div class="sw5e chat-card item-card" data-actor-id="{{actor._id}}" data-item-id="{{item._id}}"
|
||||
{{#if tokenId}}data-token-id="{{tokenId}}"{{/if}} {{#if isPower}}data-power-level="{{item.data.level}}"{{/if}}>
|
||||
<header class="card-header flexrow">
|
||||
<img src="{{item.img}}" title="{{item.name}}" width="36" height="36"/>
|
||||
|
@ -27,7 +27,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if hasSave}}
|
||||
<button data-action="save" data-ability="{{data.save.ability}}" disabled>
|
||||
<button data-action="save" data-ability="{{data.save.ability}}">
|
||||
{{ localize "SW5E.SavingThrow" }} {{labels.save}}
|
||||
</button>
|
||||
{{/if}}
|
||||
|
@ -40,7 +40,6 @@
|
|||
<button data-action="placeTemplate">{{ localize "SW5E.PlaceTemplate" }}</button>
|
||||
{{/if}}
|
||||
|
||||
|
||||
{{#if isTool}}
|
||||
<button data-action="toolCheck" data-ability="{{data.ability.value}}">{{ localize "SW5E.Use" }} {{item.name}}</button>
|
||||
{{/if}}
|
||||
|
|
|
@ -15,10 +15,11 @@
|
|||
</div>
|
||||
|
||||
<ul class="summary flexrow">
|
||||
<li></li>
|
||||
<li>
|
||||
<input type="text" name="data.rarity" value="{{data.rarity}}" placeholder="{{ localize 'SW5E.Rarity' }}"/>
|
||||
</li>
|
||||
<select name="data.rarity">
|
||||
{{selectOptions config.itemRarity selected=data.rarity blank=" "}}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.source" value="{{data.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
||||
</li>
|
||||
|
@ -53,11 +54,7 @@
|
|||
<div class="form-group">
|
||||
<label>{{localize 'SW5E.ItemContainerCapacityType'}}</label>
|
||||
<select name="data.capacity.type">
|
||||
{{#select data.capacity.type}}
|
||||
{{#each config.itemCapacityTypes}}
|
||||
<option value="{{@key}}">{{localize this}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.itemCapacityTypes selected=data.capacity.type localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -128,12 +128,31 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>
|
||||
{{localize "SW5E.ClassSkillsEligible"}}
|
||||
{{#if editable }}
|
||||
<a class="trait-selector class-skills" data-target="data.skills.choices" data-options="skills.choices">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</label>
|
||||
<div class="form-fields">
|
||||
<ul class="traits-list">
|
||||
{{#each data.skills.choices}}
|
||||
<li class="tag {{this}}">{{lookup ../config.skills this}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>
|
||||
{{localize "SW5E.ClassSkillsChosen"}}
|
||||
{{#if editable }}
|
||||
<a class="trait-selector class-skills" data-target="data.skills" data-options="skills">
|
||||
<i class="fas fa-edit"></i></a>
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</label>
|
||||
<div class="form-fields">
|
||||
|
|
|
@ -19,7 +19,9 @@
|
|||
{{lookup config.consumableTypes data.consumableType }}
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.rarity" value="{{data.rarity}}" placeholder="{{ localize 'SW5E.Rarity' }}"/>
|
||||
<select name="data.rarity">
|
||||
{{selectOptions config.itemRarity selected=data.rarity blank=" "}}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.source" value="{{data.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
||||
|
@ -49,11 +51,7 @@
|
|||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.ItemConsumableType" }}</label>
|
||||
<select name="data.consumableType">
|
||||
{{#select data.consumableType}}
|
||||
{{#each config.consumableTypes as |name type|}}
|
||||
<option value="{{type}}">{{name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.consumableTypes selected=data.consumableType}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -19,7 +19,9 @@
|
|||
{{lookup config.equipmentTypes data.armor.type }}
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.rarity" value="{{data.rarity}}" placeholder="{{ localize 'SW5E.Rarity' }}"/>
|
||||
<select name="data.rarity">
|
||||
{{selectOptions config.itemRarity selected=data.rarity blank=" "}}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.source" value="{{data.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
||||
|
@ -49,12 +51,7 @@
|
|||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.ItemEquipmentType" }}</label>
|
||||
<select name="data.armor.type">
|
||||
{{#select data.armor.type}}
|
||||
<option value=""></option>
|
||||
{{#each config.equipmentTypes as |name type|}}
|
||||
<option value="{{type}}">{{localize name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.equipmentTypes selected=data.armor.type blank=""}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<input type="text" name="data.rarity" value="{{data.rarity}}" placeholder="{{ localize 'SW5E.Rarity' }}"/>
|
||||
<select name="data.rarity">
|
||||
{{selectOptions config.itemRarity selected=data.rarity blank=" "}}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.source" value="{{data.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<input type="text" name="data.rarity" value="{{data.rarity}}" placeholder="{{ localize 'SW5E.Rarity' }}"/>
|
||||
<select name="data.rarity">
|
||||
{{selectOptions config.itemRarity selected=data.rarity blank=" "}}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.source" value="{{data.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
||||
|
@ -40,27 +42,27 @@
|
|||
{{!-- Details Tab --}}
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
|
||||
{{!-- Tool Type --}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.ItemToolType" }}</label>
|
||||
<select name="data.toolType">
|
||||
{{selectOptions config.toolTypes selected=data.toolType blank=""}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{{!-- Tool Proficiency --}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.ItemToolProficiency" }}</label>
|
||||
<select name="data.proficient" data-dtype="Number">
|
||||
{{#select data.proficient}}
|
||||
{{#each config.proficiencyLevels as |label p|}}
|
||||
<option value="{{p}}">{{label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
{{selectOptions config.proficiencyLevels selected=data.proficient}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{{!-- Ability Check --}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.DefaultAbilityCheck" }}</label>
|
||||
<select name="data.ability">
|
||||
{{#select data.ability}}
|
||||
{{#each config.abilities as |name a|}}
|
||||
<option value="{{a}}">{{name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.abilities selected=data.ability}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -19,7 +19,9 @@
|
|||
{{lookup config.weaponTypes data.weaponType }}
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.rarity" value="{{data.rarity}}" placeholder="{{ localize 'SW5E.Rarity' }}"/>
|
||||
<select name="data.rarity">
|
||||
{{selectOptions config.itemRarity selected=data.rarity blank=" "}}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.source" value="{{data.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
||||
|
@ -49,11 +51,7 @@
|
|||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.ItemWeaponType" }}</label>
|
||||
<select name="data.weaponType">
|
||||
{{#select data.weaponType}}
|
||||
{{#each config.weaponTypes as |name type|}}
|
||||
<option value="{{type}}">{{name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.weaponTypes selected=data.weaponType}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue