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
|
@ -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}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue