forked from GitHub-Mirrors/foundry-sw5e
Merging with upsteam/master
This commit is contained in:
commit
852309c973
183 changed files with 16890 additions and 3516 deletions
144
templates/actors/newActor/character-sheet.html
Normal file
144
templates/actors/newActor/character-sheet.html
Normal file
|
@ -0,0 +1,144 @@
|
|||
<form class="{{cssClass}} swalt-sheet" autocomplete="off">
|
||||
{{!-- Sheet Header --}}
|
||||
<header class="panel">
|
||||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img" />
|
||||
<h1 class="character-name">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}" />
|
||||
</h1>
|
||||
<div class="level-experience">
|
||||
<div class="charlevel">
|
||||
{{ localize "SW5E.Level" }} {{data.details.level}} {{classLabels}}
|
||||
</div>
|
||||
{{#unless disableExperience}}
|
||||
<div class="experience">
|
||||
<input name="data.details.xp.value" type="text" value="{{data.details.xp.value}}" data-dtype="Number"
|
||||
placeholder="0" />
|
||||
<span class="sep">/</span>
|
||||
<span class="max">{{data.details.xp.max}}</span>
|
||||
</div>
|
||||
<div class="xpbar">
|
||||
<span class="bar" style="width: {{data.details.xp.pct}}%"></span>
|
||||
</div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
<div class="summary">
|
||||
<input type="text" name="data.details.species" value="{{data.details.species}}"
|
||||
placeholder="{{ localize 'SW5E.Species' }}" />
|
||||
<input type="text" name="data.details.background" value="{{data.details.background}}"
|
||||
placeholder="{{ localize 'SW5E.Background' }}" />
|
||||
<input type="text" name="data.details.alignment" value="{{data.details.alignment}}"
|
||||
placeholder="{{ localize 'SW5E.Alignment' }}" />
|
||||
<div class="proficiency">
|
||||
Proficiency {{numberFormat data.attributes.prof decimals=0 sign=true}}
|
||||
</div>
|
||||
</div>
|
||||
{{!-- Header Attributes --}}
|
||||
<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>
|
||||
</section>
|
||||
|
||||
{{!-- HIT POINTS --}}
|
||||
<section>
|
||||
<h1>Hit Points</h1>
|
||||
<div class="attribute-value multiple">
|
||||
<input name="data.attributes.hp.value" type="text" value="{{data.attributes.hp.value}}"
|
||||
data-dtype="Number" placeholder="10" class="value-number" />
|
||||
<span class="value-separator">/</span>
|
||||
<input name="data.attributes.hp.max" type="text" value="{{data.attributes.hp.max}}"
|
||||
data-dtype="Number" placeholder="10" class="value-number" />
|
||||
</div>
|
||||
<footer class="attribute-footer hit-points">
|
||||
<input name="data.attributes.hp.temp" type="text" class="temphp" placeholder="+Temp"
|
||||
value="{{data.attributes.hp.temp}}" data-dtype="{{data.attributes.hp.type}}" />
|
||||
<input name="data.attributes.hp.tempmax" type="text" class="temphp" placeholder="+Max"
|
||||
value="{{data.attributes.hp.tempmax}}" data-dtype="{{data.attributes.hp.type}}" />
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
{{!-- HIT DICE / SHORT & LONG REST BUTTONS --}}
|
||||
<section>
|
||||
<h1>{{ localize "SW5E.HitDice" }}</h1>
|
||||
<div class="attribute-value multiple">
|
||||
<span class="value-number">{{data.attributes.hd}}</span>
|
||||
<span class="value-separator">/</span>
|
||||
<span class="value-number">{{data.details.level}}</span>
|
||||
</div>
|
||||
<footer class="attribute-footer hit-dice">
|
||||
<button type="button" class="rest short-rest">{{ localize "SW5E.RestS" }}</button>
|
||||
<button type="button" class="rest long-rest">{{ localize "SW5E.RestL" }}</button>
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
{{!-- INITIATIVE --}}
|
||||
<section>
|
||||
<h1>{{ localize "SW5E.Initiative" }}</h1>
|
||||
<div class="attribute-value">
|
||||
<span class="initiative">{{numberFormat data.attributes.init.total decimals=0 sign=true}}</span>
|
||||
</div>
|
||||
<footer class="attribute-footer initiative">
|
||||
<span>{{ localize "SW5E.Modifier" }}</span>
|
||||
<input name="data.attributes.init.value" type="text" placeholder="0" data-dtype="Number"
|
||||
value="{{numberFormat data.attributes.init.value decimals=0 sign=true}}" />
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
{{!-- SPEED / MOVEMENT TYPES --}}
|
||||
<section>
|
||||
<h1>{{ localize "SW5E.Speed" }}</h1>
|
||||
<div class="attribute-value">
|
||||
<input name="data.attributes.speed.value" type="text" value="{{data.attributes.speed.value}}"
|
||||
placeholder="0" />
|
||||
</div>
|
||||
<footer class="attribute-footer speed">
|
||||
<input type="text" class="speed" name="data.attributes.speed.special"
|
||||
value="{{data.attributes.speed.special}}" placeholder="{{ localize 'SW5E.SpeedSpecial' }}" />
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</header>
|
||||
{{!-- PC Sheet Navigation --}}
|
||||
<nav class="sheet-navigation root-tabs" data-group="primary">
|
||||
<button class="item active" data-tab="attributes">Core</button>
|
||||
<button class="item" data-tab="inventory">{{ localize "SW5E.Inventory" }}</button>
|
||||
<button class="item" data-tab="features">{{ localize "SW5E.Features" }}</button>
|
||||
<button class="item" data-tab="powerbook">{{ localize "SW5E.Powerbook" }}</button>
|
||||
<button class="item" data-tab="biography">{{ localize "SW5E.Biography" }}</button>
|
||||
<button class="item" data-tab="notes">Notes</button>
|
||||
</nav>
|
||||
{{!-- PC Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
{{!-- Core Tab --}}
|
||||
<section class="tab attributes core" data-group="primary" data-tab="attributes">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-core.html" sections=attributes}}
|
||||
</section>
|
||||
{{!-- Inventory Tab --}}
|
||||
<section class="tab inventory" data-group="primary" data-tab="inventory">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-inventory.html" sections=inventory}}
|
||||
</section>
|
||||
{{!-- Features Tab --}}
|
||||
<section class="tab features" data-group="primary" data-tab="features">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-features.html" sections=features}}
|
||||
</section>
|
||||
{{!-- Powerbook Tab --}}
|
||||
<section class="tab powerbook" data-group="primary" data-tab="powerbook">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-powerbook.html"}}
|
||||
</section>
|
||||
{{!-- Biography Tab --}}
|
||||
<section class="tab biography" data-group="primary" data-tab="biography">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-biography.html"}}
|
||||
</section>
|
||||
{{!-- Notes Tab --}}
|
||||
<section class="tab notes" data-group="primary" data-tab="notes">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-notes.html"}}
|
||||
</section>
|
||||
</form>
|
137
templates/actors/newActor/expanded-limited-sheet.html
Normal file
137
templates/actors/newActor/expanded-limited-sheet.html
Normal file
|
@ -0,0 +1,137 @@
|
|||
<form class="{{cssClass}} swalt-sheet" autocomplete="off">
|
||||
{{!-- Sheet Header --}}
|
||||
<header class="panel">
|
||||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img" />
|
||||
<h1 class="character-name">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}" />
|
||||
</h1>
|
||||
<div class="level-experience">
|
||||
<div class="charlevel">
|
||||
{{ localize "SW5E.Level" }} {{data.details.level}} {{classLabels}}
|
||||
</div>
|
||||
{{#unless disableExperience}}
|
||||
<div class="experience">
|
||||
<input name="data.details.xp.value" type="text" value="{{data.details.xp.value}}" data-dtype="Number"
|
||||
placeholder="0" />
|
||||
<span class="sep">/</span>
|
||||
<span class="max">{{data.details.xp.max}}</span>
|
||||
</div>
|
||||
<div class="xpbar">
|
||||
<span class="bar" style="width: {{data.details.xp.pct}}%"></span>
|
||||
</div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
<div class="summary">
|
||||
<input type="text" name="data.details.species" value="{{data.details.species}}"
|
||||
placeholder="{{ localize 'SW5E.Species' }}" />
|
||||
<input type="text" name="data.details.background" value="{{data.details.background}}"
|
||||
placeholder="{{ localize 'SW5E.Background' }}" />
|
||||
<input type="text" name="data.details.alignment" value="{{data.details.alignment}}"
|
||||
placeholder="{{ localize 'SW5E.Alignment' }}" />
|
||||
<div class="proficiency">
|
||||
Proficiency {{numberFormat data.attributes.prof decimals=0 sign=true}}
|
||||
</div>
|
||||
</div>
|
||||
{{!-- Header Attributes --}}
|
||||
<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>
|
||||
</section>
|
||||
|
||||
{{!-- HIT POINTS --}}
|
||||
<section>
|
||||
<h1>Hit Points</h1>
|
||||
<div class="attribute-value multiple">
|
||||
<input name="data.attributes.hp.value" type="text" value="{{data.attributes.hp.value}}"
|
||||
data-dtype="Number" placeholder="10" class="value-number" />
|
||||
<span class="value-separator">/</span>
|
||||
<input name="data.attributes.hp.max" type="text" value="{{data.attributes.hp.max}}"
|
||||
data-dtype="Number" placeholder="10" class="value-number" />
|
||||
</div>
|
||||
<footer class="attribute-footer hit-points">
|
||||
<input name="data.attributes.hp.temp" type="text" class="temphp" placeholder="+Temp"
|
||||
value="{{data.attributes.hp.temp}}" data-dtype="{{data.attributes.hp.type}}" />
|
||||
<input name="data.attributes.hp.tempmax" type="text" class="temphp" placeholder="+Max"
|
||||
value="{{data.attributes.hp.tempmax}}" data-dtype="{{data.attributes.hp.type}}" />
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
{{!-- HIT DICE / SHORT & LONG REST BUTTONS --}}
|
||||
<section>
|
||||
<h1>{{ localize "SW5E.HitDice" }}</h1>
|
||||
<div class="attribute-value multiple">
|
||||
<span class="value-number">{{data.attributes.hd}}</span>
|
||||
<span class="value-separator">/</span>
|
||||
<span class="value-number">{{data.details.level}}</span>
|
||||
</div>
|
||||
<footer class="attribute-footer hit-dice">
|
||||
<button type="button" class="rest short-rest">{{ localize "SW5E.RestS" }}</button>
|
||||
<button type="button" class="rest long-rest">{{ localize "SW5E.RestL" }}</button>
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
{{!-- INITIATIVE --}}
|
||||
<section>
|
||||
<h1>{{ localize "SW5E.Initiative" }}</h1>
|
||||
<div class="attribute-value">
|
||||
<span class="initiative">{{numberFormat data.attributes.init.total decimals=0 sign=true}}</span>
|
||||
</div>
|
||||
<footer class="attribute-footer initiative">
|
||||
<span>{{ localize "SW5E.Modifier" }}</span>
|
||||
<input name="data.attributes.init.value" type="text" placeholder="0" data-dtype="Number"
|
||||
value="{{numberFormat data.attributes.init.value decimals=0 sign=true}}" />
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
{{!-- SPEED / MOVEMENT TYPES --}}
|
||||
<section>
|
||||
<h1>{{ localize "SW5E.Speed" }}</h1>
|
||||
<div class="attribute-value">
|
||||
<input name="data.attributes.speed.value" type="text" value="{{data.attributes.speed.value}}"
|
||||
placeholder="0" />
|
||||
</div>
|
||||
<footer class="attribute-footer speed">
|
||||
<input type="text" class="speed" name="data.attributes.speed.special"
|
||||
value="{{data.attributes.speed.special}}" placeholder="{{ localize 'SW5E.SpeedSpecial' }}" />
|
||||
</footer>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
</header>
|
||||
{{!-- PC Sheet Navigation --}}
|
||||
<nav class="sheet-navigation root-tabs" data-group="primary">
|
||||
<button class="item active" data-tab="attributes">Core</button>
|
||||
<button class="item" data-tab="inventory">{{ localize "SW5E.Inventory" }}</button>
|
||||
<button class="item" data-tab="features">{{ localize "SW5E.Features" }}</button>
|
||||
<button class="item" data-tab="powerbook">{{ localize "SW5E.Powerbook" }}</button>
|
||||
<button class="item" data-tab="biography">{{ localize "SW5E.Biography" }}</button>
|
||||
</nav>
|
||||
{{!-- PC Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
{{!-- Core Tab --}}
|
||||
<section class="tab attributes core" data-group="primary" data-tab="attributes">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-core.html" sections=attributes}}
|
||||
</section>
|
||||
{{!-- Inventory Tab --}}
|
||||
<section class="tab inventory" data-group="primary" data-tab="inventory">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-inventory.html" sections=inventory}}
|
||||
</section>
|
||||
{{!-- Features Tab --}}
|
||||
<section class="tab features" data-group="primary" data-tab="features">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-features.html" sections=features}}
|
||||
</section>
|
||||
{{!-- Powerbook Tab --}}
|
||||
<section class="tab powerbook" data-group="primary" data-tab="powerbook">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-powerbook.html"}}
|
||||
</section>
|
||||
{{!-- Biography Tab --}}
|
||||
<section class="tab biography" data-group="primary" data-tab="biography">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-biography.html"}}
|
||||
</section>
|
||||
</form>
|
33
templates/actors/newActor/item.hbs
Normal file
33
templates/actors/newActor/item.hbs
Normal file
|
@ -0,0 +1,33 @@
|
|||
<li class="item group-grid-fav-items" data-item-id="{{item._id}}">
|
||||
<div class="item-name rollable">
|
||||
<div class="item-image" style="background-image: url({{item.img}})"></div>
|
||||
<h4>{{item.name}}</h4>
|
||||
</div>
|
||||
|
||||
<div class="item-detail item-uses">
|
||||
{{#if item.data.uses.max }}
|
||||
{{item.data.uses.value}} / {{item.data.uses.max}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="item-detail item-count">
|
||||
{{#if item.data.quantity}}
|
||||
{{item.data.quantity}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="item-detail item-comps">
|
||||
{{#if item.powerComps}}
|
||||
{{item.powerComps}}
|
||||
{{#if item.powerCon}}<i class='fas fa-copyright'></i>{{/if}}
|
||||
{{#if item.powerRit}}<i class='fas fa-registered'></i>{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<div class="item-detail item-controls">
|
||||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-fav" title="Remove"><i class="fas fa-sign-out-alt"></i></a>
|
||||
</div>
|
||||
</li>
|
27
templates/actors/newActor/limited-sheet.html
Normal file
27
templates/actors/newActor/limited-sheet.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<form class="{{cssClass}} swalt-sheet limited" autocomplete="off">
|
||||
<!-- HEADER -->
|
||||
<header class="panel">
|
||||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img" />
|
||||
<h1 class="character-name">
|
||||
{{actor.name}}
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<!-- BODY -->
|
||||
<section class="sheet-body">
|
||||
<div class="tab biography active">
|
||||
<div class="panel">
|
||||
<section class="additional-info">
|
||||
<h1 class="section-titles">Description</h1>
|
||||
{{editor content=data.details.description.value target="data.details.description.value" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
<section>
|
||||
<h1 class="section-titles">Background</h1>
|
||||
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
|
189
templates/actors/newActor/npc-sheet.html
Normal file
189
templates/actors/newActor/npc-sheet.html
Normal file
|
@ -0,0 +1,189 @@
|
|||
<form class="{{cssClass}} swalt-sheet" autocomplete="off">
|
||||
|
||||
{{!-- NPC Sheet Header --}}
|
||||
<header class="panel">
|
||||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img" />
|
||||
<h1 class="character-name">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}" />
|
||||
</h1>
|
||||
<div class="level-experience">
|
||||
<div class="charlevel">
|
||||
{{ localize "SW5E.AbbreviationCR" }}
|
||||
<input name="data.details.cr" type="text" value="{{labels.cr}}" placeholder="1" />
|
||||
</div>
|
||||
|
||||
<div class="experience">
|
||||
<span class="max">{{data.details.xp.value}} XP</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}}"
|
||||
placeholder="{{ localize 'SW5E.Alignment' }}" />
|
||||
<input type="text" name="data.details.type" value="{{data.details.type}}"
|
||||
placeholder="{{ localize 'SW5E.Type' }}" />
|
||||
<input type="text" name="data.details.source" value="{{data.details.source}}"
|
||||
placeholder="{{ localize 'SW5E.Source' }}" />
|
||||
</div>
|
||||
<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>
|
||||
</section>
|
||||
|
||||
{{!-- HIT POINTS --}}
|
||||
<section>
|
||||
<h1>Hit Points</h1>
|
||||
<div class="attribute-value multiple">
|
||||
<input name="data.attributes.hp.value" type="text" value="{{data.attributes.hp.value}}"
|
||||
data-dtype="Number" placeholder="10" class="value-number" />
|
||||
<span class="value-separator">/</span>
|
||||
<input name="data.attributes.hp.max" type="text" value="{{data.attributes.hp.max}}"
|
||||
data-dtype="Number" placeholder="10" class="value-number" />
|
||||
</div>
|
||||
<footer class="attribute-footer hit-points">
|
||||
<input name="data.attributes.hp.formula" class="hpformula" type="text"
|
||||
placeholder="{{ localize 'SW5E.HealthFormula' }}" value="{{data.attributes.hp.formula}}" />
|
||||
</footer>
|
||||
</section>
|
||||
<section>
|
||||
<h1>{{ localize "SW5E.Speed" }}</h1>
|
||||
<div class="attribute-value">
|
||||
<input name="data.attributes.speed.value" type="text" value="{{data.attributes.speed.value}}"
|
||||
placeholder="0" />
|
||||
</div>
|
||||
<footer class="attribute-footer speed">
|
||||
<input type="text" class="speed" name="data.attributes.speed.special"
|
||||
value="{{data.attributes.speed.special}}" placeholder="{{ localize 'SW5E.SpeedSpecial' }}" />
|
||||
</footer>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
|
||||
{{!-- NPC Sheet Navigation --}}
|
||||
<nav class="sheet-navigation root-tabs" data-group="primary">
|
||||
<button class="item active" data-tab="attributes">{{ localize "SW5E.Attributes" }}</button>
|
||||
<button class="item" data-tab="features">{{ localize "SW5E.Features" }}</button>
|
||||
<button class="item" data-tab="powerbook">{{ localize "SW5E.Powerbook" }}</button>
|
||||
<button class="item" data-tab="biography">{{ localize "SW5E.Biography" }}</button>
|
||||
</nav>
|
||||
|
||||
{{!-- NPC Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
<section class="tab attributes core" data-group="primary" data-tab="attributes">
|
||||
<section class="panel abilities">
|
||||
{{!-- Ability Scores --}}
|
||||
<section class="scores">
|
||||
<h1>Ability Scores</h1>
|
||||
<ol>
|
||||
{{#each data.abilities as |ability id|}}
|
||||
<li class="ability {{#if ability.proficient}}proficient{{/if}}" data-ability="{{id}}">
|
||||
<h2 class="ability-name rollable">{{ability.label}}</h4>
|
||||
<input class="ability-score" name="data.abilities.{{id}}.value" type="text"
|
||||
value="{{ability.value}}" data-dtype="Number" placeholder="10" />
|
||||
<div class="ability-modifiers">
|
||||
<span class="ability-mod"
|
||||
title="Modifier">{{numberFormat ability.mod decimals=0 sign=true}}</span>
|
||||
<input type="hidden" name="data.abilities.{{id}}.proficient"
|
||||
value="{{ability.proficient}}" data-dtype="Number" />
|
||||
<button class="proficiency-toggle ability-proficiency"
|
||||
title="Proficiency">{{{ability.icon}}}</button>
|
||||
<span class="ability-save"
|
||||
title="Saving Throw">{{numberFormat ability.save decimals=0 sign=true}}</span>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</section>
|
||||
{{!-- Skills --}}
|
||||
<section class="skills">
|
||||
<h1>Skills</h1>
|
||||
<ol>
|
||||
{{#each data.skills as |skill s|}}
|
||||
<li class="skill {{#if skill.value}}proficient{{/if}}" data-skill="{{s}}">
|
||||
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.value}}"
|
||||
data-dtype="Number" />
|
||||
<button class="proficiency-toggle skill-proficiency"
|
||||
title="{{skill.hover}}">{{{skill.icon}}}</button>
|
||||
<span class="skill-name rollable">{{skill.label}}</span>
|
||||
<span class="skill-ability">{{skill.ability}}</span>
|
||||
<span class="skill-mod">{{numberFormat skill.total decimals=0 sign=true}}</span>
|
||||
{{!-- <input class="skill-bonus" name="data.skills.{{s}}.bonus" type="text" value="{{numberFormat skill.bonus decimals=0 sign=true}}" data-dtype="Number" placeholder="0" title="Misc. Modifier"/> --}}
|
||||
{{!-- <span class="skill-passive">({{skill.passive}})</span> --}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</section>
|
||||
</section>
|
||||
<section class="panel traits-resources">
|
||||
{{!-- Legendary Actions --}}
|
||||
<div class="counters">
|
||||
<div class="counter legendary">
|
||||
<strong>{{ localize "SW5E.LegAct" }}</strong>
|
||||
<div class="counter-value">
|
||||
<input name="data.resources.legact.value" type="number"
|
||||
value="{{data.resources.legact.value}}" placeholder="0" />
|
||||
<span class="sep">/</span>
|
||||
<input name="data.resources.legact.max" type="number" value="{{data.resources.legact.max}}"
|
||||
placeholder="0" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="counter legendary">
|
||||
<strong>{{ localize "SW5E.LegRes" }}</strong>
|
||||
<div class="counter-value">
|
||||
<input name="data.resources.legres.value" type="number"
|
||||
value="{{data.resources.legres.value}}" placeholder="0" />
|
||||
<span class="sep">/</span>
|
||||
<input name="data.resources.legres.max" type="number" value="{{data.resources.legres.max}}"
|
||||
placeholder="0" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="counter lair">
|
||||
<strong>{{ localize "SW5E.LairAct" }}</strong>
|
||||
<div class="counter-value">
|
||||
<input name="data.resources.lair.value" type="checkbox"
|
||||
value="{{data.resources.lair.value}}" data-dtype="Boolean"
|
||||
{{checked data.resources.lair.value}} />
|
||||
<input name="data.resources.lair.initiative" type="number"
|
||||
value="{{data.resources.lair.initiative}}" placeholder="20" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="core-traits">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-traits.html"}}
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
{{!-- Features Tab --}}
|
||||
<div class="tab features flexcol" data-group="primary" data-tab="features">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-features.html" sections=features}}
|
||||
</div>
|
||||
|
||||
{{!-- Powerbook Tab --}}
|
||||
<div class="tab powerbook flexcol" data-group="primary" data-tab="powerbook">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-powerbook.html"}}
|
||||
</div>
|
||||
|
||||
{{!-- Biography Tab --}}
|
||||
<div class="tab biography flexcol" data-group="primary" data-tab="biography">
|
||||
<div class="panel">
|
||||
<section>
|
||||
<h1>Biography</h1>
|
||||
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable}}
|
||||
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
22
templates/actors/newActor/parts/swalt-biography.html
Normal file
22
templates/actors/newActor/parts/swalt-biography.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<div class="panel additional-info">
|
||||
<section><h1 class="section-titles biopage">Personality Traits</h1>
|
||||
{{editor content=data.details.trait target="data.details.trait" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
<section><h1 class="section-titles biopage">Ideals</h1>
|
||||
{{editor content=data.details.ideal target="data.details.ideal" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
<section><h1 class="section-titles biopage">Bonds</h1>
|
||||
{{editor content=data.details.bond target="data.details.bond" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
<section><h1 class="section-titles biopage">Flaws</h1>
|
||||
{{editor content=data.details.flaw target="data.details.flaw" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
</div>
|
||||
<div class="panel background">
|
||||
<section><h1 class="section-titles biopage">Description</h1>
|
||||
{{editor content=data.details.description.value target="data.details.description.value" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
<section><h1 class="section-titles">Background</h1>
|
||||
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
</div>
|
56
templates/actors/newActor/parts/swalt-core.html
Normal file
56
templates/actors/newActor/parts/swalt-core.html
Normal file
|
@ -0,0 +1,56 @@
|
|||
<section class="panel abilities">
|
||||
{{!-- Ability Scores --}}
|
||||
<section class="scores">
|
||||
<h1>Ability Scores</h1>
|
||||
<ol>
|
||||
{{#each data.abilities as |ability id|}}
|
||||
<li class="ability {{#if ability.proficient}}proficient{{/if}}" data-ability="{{id}}">
|
||||
<h2 class="ability-name rollable">{{ability.label}}</h4>
|
||||
<input class="ability-score" name="data.abilities.{{id}}.value" type="text"
|
||||
value="{{ability.value}}" data-dtype="Number" placeholder="10" />
|
||||
<div class="ability-modifiers">
|
||||
<span class="ability-mod"
|
||||
title="Modifier">{{numberFormat ability.mod decimals=0 sign=true}}</span>
|
||||
<input type="hidden" name="data.abilities.{{id}}.proficient"
|
||||
value="{{ability.proficient}}" data-dtype="Number" />
|
||||
<button class="proficiency-toggle ability-proficiency"
|
||||
title="Proficiency">{{{ability.icon}}}</button>
|
||||
<span class="ability-save"
|
||||
title="Saving Throw">{{numberFormat ability.save decimals=0 sign=true}}</span>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</section>
|
||||
{{!-- Skills --}}
|
||||
<section class="skills">
|
||||
<h1>Skills</h1>
|
||||
<ol>
|
||||
{{#each data.skills as |skill s|}}
|
||||
<li class="skill {{#if skill.value}}proficient{{/if}}" data-skill="{{s}}">
|
||||
<input type="hidden" name="data.skills.{{s}}.value" value="{{skill.value}}"
|
||||
data-dtype="Number" />
|
||||
<button class="proficiency-toggle skill-proficiency"
|
||||
title="{{skill.hover}}">{{{skill.icon}}}</button>
|
||||
<span class="skill-name rollable">{{skill.label}}</span>
|
||||
<span class="skill-ability">{{skill.ability}}</span>
|
||||
<span class="skill-mod">{{numberFormat skill.total decimals=0 sign=true}}</span>
|
||||
{{!-- <input class="skill-bonus" name="data.skills.{{s}}.bonus" type="text" value="{{numberFormat skill.bonus decimals=0 sign=true}}" data-dtype="Number" placeholder="0" title="Misc. Modifier"/> --}}
|
||||
{{!-- <span class="skill-passive">({{skill.passive}})</span> --}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</section>
|
||||
</section>
|
||||
<section class="panel traits-resources">
|
||||
<nav class="core-tabs tab-list" data-subgroup-selection>
|
||||
<button type="button" class="item active" data-subgroup="coreattributes" data-target="traits">Traits</button>
|
||||
<button type="button" class="item" data-subgroup="coreattributes" data-target="resources">Resources</button>
|
||||
</nav>
|
||||
<div class="tab core-traits active" data-subgroup="coreattributes" data-target="traits">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-traits.html"}}
|
||||
</div>
|
||||
<div class="tab core-resources" data-subgroup="coreattributes" data-target="resources">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-resources.html"}}
|
||||
</div>
|
||||
</section>
|
80
templates/actors/newActor/parts/swalt-features.html
Normal file
80
templates/actors/newActor/parts/swalt-features.html
Normal file
|
@ -0,0 +1,80 @@
|
|||
<div class="panel">
|
||||
|
||||
|
||||
<ul class="filter-list" data-filter="features">
|
||||
<li class="filter-title">{{localize "SW5E.Filter"}}</li>
|
||||
<li class="filter-item" data-filter="action">{{localize "SW5E.Action"}}</li>
|
||||
<li class="filter-item" data-filter="bonus">{{localize "SW5E.BonusAction"}}</li>
|
||||
<li class="filter-item" data-filter="reaction">{{localize "SW5E.Reaction"}}</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<ol class="group-list">
|
||||
{{#each sections as |section sid|}}
|
||||
<li>
|
||||
<div class="group-list-title group-grid-features">
|
||||
<div class="title">
|
||||
|
||||
<h3 class="item-name">{{localize section.label}}</h3>
|
||||
{{#if ../owner}}
|
||||
<a class="item-control item-create" title="{{localize 'SW5E.FeatureAdd'}}"
|
||||
{{#each section.dataset as |v k|}}data-{{k}}="{{v}}" {{/each}}>
|
||||
<i class="fas fa-plus"></i> {{localize "SW5E.Add"}}
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{#if section.hasActions}}
|
||||
<div class="item-detail item-uses">{{localize "SW5E.Uses"}}</div>
|
||||
<div class="item-detail item-action">{{localize "SW5E.Usage"}}</div>
|
||||
{{/if}}
|
||||
|
||||
|
||||
</div>
|
||||
<ol class="item-list">
|
||||
{{#each section.items as |item iid|}}
|
||||
<li class="item group-grid-features {{#if isDepleted}}depleted{{/if}}" data-item-id="{{item._id}}">
|
||||
<div class="item-name rollable">
|
||||
<div class="item-image" style="background-image: url({{item.img}})"></div>
|
||||
<h4>{{item.name}}</h4>
|
||||
</div>
|
||||
|
||||
{{#if section.hasActions}}
|
||||
<div class="item-detail item-uses">
|
||||
{{#if item.isOnCooldown}}
|
||||
<a class="item-recharge rollable">{{item.labels.recharge}}</a>
|
||||
{{else if item.data.recharge.value}}
|
||||
{{localize "SW5E.Charged"}}
|
||||
|
||||
{{else if item.hasUses}}
|
||||
<input type="text" value="{{item.data.uses.value}}" placeholder="0" />/<span>{{item.data.uses.max}}</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<div class="item-detail item-action">
|
||||
{{#if item.data.activation.type }}
|
||||
{{item.labels.activation}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
{{else if section.isClass}}
|
||||
<div class="item-detail player-class">
|
||||
{{item.data.archetype}}
|
||||
</div>
|
||||
<div class="item-detail player-class-levels">
|
||||
Level {{item.data.levels}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if ../../owner}}
|
||||
<div class="item-controls item-detail">
|
||||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
112
templates/actors/newActor/parts/swalt-inventory.html
Normal file
112
templates/actors/newActor/parts/swalt-inventory.html
Normal file
|
@ -0,0 +1,112 @@
|
|||
<section class="panel">
|
||||
{{#if isCharacter }}
|
||||
<div class="currency-encumbrance">
|
||||
|
||||
<label class="currency">
|
||||
{{localize "SW5E.Currency"}}
|
||||
{{#each data.currency as |v k|}}
|
||||
<input type="text" name="data.currency.{{k}}" value="{{v}}" data-dtype="Number" />
|
||||
{{/each}}
|
||||
</label>
|
||||
{{#with data.attributes.encumbrance}}
|
||||
<div class="encumbrance-wrapper" title="Encumbrance">
|
||||
<div class="encumbrance {{#if encumbered}}encumbered{{/if}}">
|
||||
<span class="encumbrance-bar" style="width:{{pct}}%"></span>
|
||||
|
||||
<i class="encumbrance-breakpoint encumbrance-33 arrow-up"></i>
|
||||
<i class="encumbrance-breakpoint encumbrance-33 arrow-down"></i>
|
||||
<i class="encumbrance-breakpoint encumbrance-66 arrow-up"></i>
|
||||
<i class="encumbrance-breakpoint encumbrance-66 arrow-down"></i>
|
||||
</div>
|
||||
<span class="encumbrance-label">{{value}} / {{max}}</span>
|
||||
</div>
|
||||
{{/with}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<ul class="filter-list" data-filter="inventory">
|
||||
<li class="filter-title">{{localize "SW5E.Filter"}}</li>
|
||||
<li class="filter-item" data-filter="action">{{localize "SW5E.Action"}}</li>
|
||||
<li class="filter-item" data-filter="bonus">{{localize "SW5E.BonusAction"}}</li>
|
||||
<li class="filter-item" data-filter="reaction">{{localize "SW5E.Reaction"}}</li>
|
||||
<li class="filter-item" data-filter="equipped">{{localize "SW5E.Equipped"}}</li>
|
||||
</ul>
|
||||
|
||||
<div class="group-list-header group-grid-inventory">
|
||||
<div> </div>
|
||||
{{#if isCharacter}}
|
||||
<div class="item-detail item-weight">{{localize "SW5E.Weight"}}</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="item-detail item-uses">{{localize "SW5E.Charges"}}</div>
|
||||
<div class="item-detail item-action">{{localize "SW5E.Usage"}}</div>
|
||||
<div class="item-detail"></div>
|
||||
</div>
|
||||
<ol class="group-list">
|
||||
{{#each sections as |section sid|}}
|
||||
<li>
|
||||
<div class="group-list-title">
|
||||
<h3 class="item-name">{{localize section.label}}</h3>
|
||||
|
||||
{{#if ../owner}}
|
||||
<a class="item-control item-create" title='{{localize "SW5E.ItemCreate"}}'
|
||||
{{#each section.dataset as |v k|}}data-{{k}}="{{v}}" {{/each}}>
|
||||
<i class="fas fa-plus"></i> {{localize "SW5E.Add"}}
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
<ol class="group-items item-list">
|
||||
{{#each section.items as |item iid|}}
|
||||
<li class="item group-grid-inventory" data-item-id="{{item._id}}">
|
||||
<div class="item-name rollable">
|
||||
<div class="item-image" style="background-image: url({{item.img}})"></div>
|
||||
<h4>
|
||||
{{item.name~}}
|
||||
{{~#if item.isStack}} ({{item.data.quantity}}){{/if}}
|
||||
{{~#if item.data.attuned}} <i class="fas fa-sun attuned"
|
||||
title={{localize "SW5E.Attuned"}}></i>{{/if}}
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
{{#if ../../isCharacter}}
|
||||
<div class="item-detail item-weight">
|
||||
{{#if item.totalWeight}}
|
||||
{{ item.totalWeight }} {{localize "SW5E.AbbreviationLbs"}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="item-detail item-uses">
|
||||
{{#if item.hasUses }}
|
||||
<input type="text" value="{{item.data.uses.value}}" placeholder="0" />
|
||||
/<span style="padding-left: 8px;">{{item.data.uses.max}}</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<div class="item-detail item-action">
|
||||
{{#if item.data.activation.type }}
|
||||
{{item.labels.activation}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
{{#if ../../owner}}
|
||||
<div class="item-detail item-controls">
|
||||
<a class="item-control item-toggle {{item.toggleClass}}" title='{{item.toggleTitle}}'>
|
||||
<i class="fas fa-shield-alt"></i>
|
||||
</a>
|
||||
<a class="item-control item-edit" title='{{localize "SW5E.ItemEdit"}}'><i
|
||||
class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title='{{localize "SW5E.ItemDelete"}}'><i
|
||||
class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
|
||||
|
||||
|
||||
</section>
|
33
templates/actors/newActor/parts/swalt-notes.html
Normal file
33
templates/actors/newActor/parts/swalt-notes.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
<div class="panel">
|
||||
<section class="background">
|
||||
<input type="text" name="data.details.notesname" value="{{data.details.notesname}}"
|
||||
placeholder="Personal Journal" />
|
||||
|
||||
{{editor content=data.details.notes.value target="data.details.notes.value" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
<section>
|
||||
<input type="text" name="data.details.notes1name" value="{{data.details.notes1name}}"
|
||||
placeholder="Additional Notes" />
|
||||
{{editor content=data.details.notes1.value target="data.details.notes1.value" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<input type="text" name="data.details.notes2name" value="{{data.details.notes2name}}"
|
||||
placeholder="Additional Notes" />
|
||||
{{editor content=data.details.notes2.value target="data.details.notes2.value" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<input type="text" name="data.details.notes3name" value="{{data.details.notes3name}}"
|
||||
placeholder="Additional Notes" />
|
||||
{{editor content=data.details.notes3.value target="data.details.notes3.value" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<input type="text" name="data.details.notes4name" value="{{data.details.notes4name}}"
|
||||
placeholder="Additional Notes" />
|
||||
{{editor content=data.details.notes4.value target="data.details.notes4.value" button=true owner=owner editable=editable}}
|
||||
</section>
|
||||
|
||||
</section>
|
||||
</div>
|
135
templates/actors/newActor/parts/swalt-powerbook.html
Normal file
135
templates/actors/newActor/parts/swalt-powerbook.html
Normal file
|
@ -0,0 +1,135 @@
|
|||
<section class="panel">
|
||||
<div class="powercasting-ability">
|
||||
<label>{{localize "SW5E.PowerAbility"}}
|
||||
<select name="data.attributes.powercasting" data-type="String">
|
||||
{{#select data.attributes.powercasting}}
|
||||
<option value="">{{localize "SW5E.None"}}</option>
|
||||
{{#each data.abilities as |abl a|}}
|
||||
<option value="{{a}}">{{abl.label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</label>
|
||||
{{#if isNPC}}
|
||||
<label>{{localize "SW5E.PowercasterLevel"}}
|
||||
<input class="powercasting-level" type="text" name="data.details.powerLevel" value="{{data.details.powerLevel}}"
|
||||
data-dtype="Number" placeholder="0" />
|
||||
</label>
|
||||
{{/if}}
|
||||
<h3 class="power-dc">{{localize "SW5E.PowerDC"}} <span>{{data.attributes.powerdc}}</span></h3>
|
||||
</div>
|
||||
|
||||
<ul class="filter-list" data-filter="powerbook">
|
||||
<li class="filter-title">{{localize "SW5E.Filter"}}</li>
|
||||
<li class="filter-item" data-filter="action">{{localize "SW5E.Action"}}</li>
|
||||
<li class="filter-item" data-filter="bonus">{{localize "SW5E.BonusAction"}}</li>
|
||||
<li class="filter-item" data-filter="reaction">{{localize "SW5E.Reaction"}}</li>
|
||||
<li class="filter-item" data-filter="concentration">{{localize "SW5E.AbbreviationConc"}}</li>
|
||||
<li class="filter-item" data-filter="ritual">{{localize "SW5E.Ritual"}}</li>
|
||||
<li class="filter-item" data-filter="prepared">{{localize "SW5E.Prepared"}}{{#if preparedPowers}}
|
||||
({{preparedPowers}}){{/if}}</li>
|
||||
</ul>
|
||||
|
||||
<div class="group-list-header group-grid-powers">
|
||||
<div></div>
|
||||
<div class="item-detail item-uses"></div>
|
||||
<div class="item-detail item-school">{{localize "SW5E.PowerSchool"}}</div>
|
||||
<div class="item-detail item-action">{{localize "SW5E.PowerUsage"}}</div>
|
||||
<div class="item-detail item-target">{{localize "SW5E.PowerTarget"}}</div>
|
||||
|
||||
</div>
|
||||
<ol class="group-list">
|
||||
{{#each powerbook as |section|}}
|
||||
<li>
|
||||
<div class="group-list-title group-grid-powers">
|
||||
<div class="item-name">
|
||||
<h3>{{section.label}}</h3>
|
||||
{{#if section.canCreate}}
|
||||
<a class="item-control item-create" title="{{localize 'SW5E.PowerCreate'}}"
|
||||
{{#each section.dataset as |v k|}}data-{{k}}="{{v}}" {{/each}}>
|
||||
<i class="fas fa-plus"></i> {{localize "SW5E.Add"}}
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<div class="item-detail item-uses">
|
||||
{{#if section.usesSlots}}
|
||||
<input type="text" name="data.powers.{{section.prop}}.value" value="{{section.uses}}" placeholder="0"
|
||||
data-dtype="Number" />
|
||||
/
|
||||
<span data-level="{{section.prop}}" data-slots="{{section.slots}}">
|
||||
{{{section.slots}}}
|
||||
{{#if ../editable}}
|
||||
<a class="slot-max-override" title="{{localize 'SW5E.PowerProgOverride'}}">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
{{ else }}
|
||||
{{{section.uses}}} / {{{section.slots}}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<ol class="item-list">
|
||||
{{#each section.powers as |item i|}}
|
||||
<li class="item group-grid-powers" data-item-id="{{item._id}}">
|
||||
<div class="item-name rollable">
|
||||
<div class="item-image" style="background-image: url({{item.img}})"></div>
|
||||
<h4>{{item.name}}</h4>
|
||||
</div>
|
||||
|
||||
<div class="item-detail item-uses">
|
||||
{{#if item.data.uses.per }}
|
||||
Uses {{item.data.uses.value}} / {{item.data.uses.max}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<!-- <div class="power-comps">
|
||||
{{#each labels.components}}
|
||||
<span class="power-component {{this}}">{{this}}</span>
|
||||
{{/each}}
|
||||
</div> -->
|
||||
<div class="item-detail item-school">{{labels.school}}</div>
|
||||
<div class="item-detail item-action">{{labels.activation}}</div>
|
||||
<div class="item-detail item-target" title="{{localize 'SW5E.Range'}}: {{labels.range}}">
|
||||
{{#if labels.target}}
|
||||
{{labels.target}}
|
||||
{{else}}None
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
|
||||
{{#if ../../owner}}
|
||||
<div class="item-detail item-controls">
|
||||
{{#if section.canPrepare}}
|
||||
<a class="item-control item-toggle {{item.toggleClass}}" title="{{item.toggleTitle}}"><i
|
||||
class="fas fa-check-circle"></i></a>
|
||||
{{/if}}
|
||||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</li>
|
||||
{{else}}
|
||||
{{#if owner}}
|
||||
{{#if filters.powerbook.size}}
|
||||
<li class="item flexrow">
|
||||
<p class="notes">{{localize "SW5E.FilterNoPowers"}}</p>
|
||||
</li>
|
||||
{{else}}
|
||||
<li class="item flexrow inventory-header powerbook-header powerbook-empty">
|
||||
<div class="item-controls">
|
||||
<a class="item-control item-create" title="{{localize 'SW5E.PowerCreate'}}" data-type="power"
|
||||
data-level="{{lvl}}"><i class="fas fa-plus"></i> {{localize "SW5E.PowerAdd"}}</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item flexrow">
|
||||
<p class="notes">{{localize "SW5E.NoPowerLevels"}}</p>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ol>
|
||||
</section>
|
65
templates/actors/newActor/parts/swalt-resources.html
Normal file
65
templates/actors/newActor/parts/swalt-resources.html
Normal file
|
@ -0,0 +1,65 @@
|
|||
{{!-- Resources, Counters, & Favorites --}}
|
||||
<section class="resources">
|
||||
<section class="resource-items">
|
||||
{{#each resources as |res|}}
|
||||
<div class="resource">
|
||||
<h1>
|
||||
<input name="data.resources.{{res.name}}.label" type="text" value="{{res.label}}"
|
||||
placeholder="{{res.placeholder}}" />
|
||||
</h1>
|
||||
<div class="attribute-value">
|
||||
<input name="data.resources.{{res.name}}.value" type="text" value="{{res.value}}" data-dtype="Number"
|
||||
placeholder="0" class="value-number" />
|
||||
<span class="value-separator">/</span>
|
||||
<input name="data.resources.{{res.name}}.max" type="text" value="{{res.max}}" data-dtype="Number"
|
||||
placeholder="0" class="value-number" />
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<label class="recharge checkbox">
|
||||
{{ localize "SW5E.AbbreviationSR" }} <input name="data.resources.{{res.name}}.sr" type="checkbox"
|
||||
{{checked res.sr}} />
|
||||
</label>
|
||||
<label class="recharge checkbox">
|
||||
{{ localize "SW5E.AbbreviationLR" }} <input name="data.resources.{{res.name}}.lr" type="checkbox"
|
||||
{{checked res.lr}} />
|
||||
</label>
|
||||
</footer>
|
||||
</div>
|
||||
{{/each}}
|
||||
</section>
|
||||
<section class="counters">
|
||||
<div class="counter">
|
||||
<h4 class="death-save rollable">{{ localize "SW5E.DeathSave" }}</h4>
|
||||
<div class="counter-value">
|
||||
<div class="death-success">
|
||||
<i class="fas fa-check"></i>
|
||||
<input type="text" name="data.attributes.death.success" data-dtype="Number" placeholder="0"
|
||||
value="{{data.attributes.death.success}}" />
|
||||
</div>
|
||||
<div class="death-fail">
|
||||
<i class="fas fa-times"></i>
|
||||
<input type="text" name="data.attributes.death.failure" data-dtype="Number" placeholder="0"
|
||||
value="{{data.attributes.death.failure}}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="counter">
|
||||
<h4>{{ localize "SW5E.Exhaustion" }}</h4>
|
||||
<div class="counter-value">
|
||||
<input type="text" name="data.attributes.exhaustion" data-dtype="Number" placeholder="0"
|
||||
value="{{data.attributes.exhaustion}}" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="counter">
|
||||
<h4>{{ localize "SW5E.Inspiration" }}</h4>
|
||||
<div class="counter-value">
|
||||
<input type="checkbox" name="data.attributes.inspiration" data-dtype="Boolean"
|
||||
{{checked data.attributes.inspiration}} />
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="favorites">
|
||||
<h1>Favorites</h1>
|
||||
<div class="favtabtarget"></div>
|
||||
</section>
|
||||
</section>
|
118
templates/actors/newActor/parts/swalt-traits.html
Normal file
118
templates/actors/newActor/parts/swalt-traits.html
Normal file
|
@ -0,0 +1,118 @@
|
|||
<section class="traits">
|
||||
<label>
|
||||
{{localize "SW5E.Size"}}
|
||||
<select class="actor-size" name="data.traits.size">
|
||||
{{#select data.traits.size}}
|
||||
{{#each config.actorSizes as |label size|}}
|
||||
<option value="{{size}}">{{label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</label>
|
||||
<label class="{{#unless data.traits.senses}}inactive{{/unless}}">
|
||||
{{#unless isVehicle}}
|
||||
{{localize "SW5E.Senses"}}
|
||||
<input type="text" name="data.traits.senses" value="{{data.traits.senses}}"
|
||||
placeholder="{{ localize 'SW5E.None' }}" />
|
||||
{{/unless}}
|
||||
</label>
|
||||
<div class="languages">
|
||||
<label data-options="share-languages" class="languages">{{localize "SW5E.Languages"}}</label>
|
||||
<a class="trait-selector" data-options="languages" data-target="data.traits.languages">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
{{#each data.traits.languages.selected as |v k|}}
|
||||
<li>{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<label>{{localize "SW5E.DamImm"}}</label>
|
||||
<a class="trait-selector" data-options="damageResistanceTypes" data-target="data.traits.di">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
{{#each data.traits.di.selected as |v k|}}
|
||||
<li>{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<label>{{localize "SW5E.DamRes"}}</label>
|
||||
<a class="trait-selector" data-options="damageResistanceTypes" data-target="data.traits.dr">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
{{#each data.traits.dr.selected as |v k|}}
|
||||
<li>{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<label>{{localize "SW5E.DamVuln"}}</label>
|
||||
<a class="trait-selector" data-options="damageResistanceTypes" data-target="data.traits.dv">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
{{#each data.traits.dv.selected as |v k|}}
|
||||
<li>{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label>{{localize "SW5E.ConImm"}}</label>
|
||||
<a class="trait-selector" data-options="conditionTypes" data-target="data.traits.ci">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
{{#each data.traits.ci.selected as |v k|}}
|
||||
<li>{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>{{#if isCharacter}}
|
||||
<div>
|
||||
<label>{{localize "SW5E.TraitWeaponProf"}}</label>
|
||||
<a class="trait-selector" data-options="weaponProficiencies" data-target="data.traits.weaponProf">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
{{#each data.traits.weaponProf.selected as |v k|}}
|
||||
<li>{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<label>{{localize "SW5E.TraitArmorProf"}}</label>
|
||||
<a class="trait-selector" data-options="armorProficiencies" data-target="data.traits.armorProf">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
{{#each data.traits.armorProf.selected as |v k|}}
|
||||
<li>{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label>{{localize "SW5E.TraitToolProf"}}</label>
|
||||
<a class="trait-selector" data-options="toolProficiencies" data-target="data.traits.toolProf">
|
||||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
<ul class="traits-list">
|
||||
{{#each data.traits.toolProf.selected as |v k|}}
|
||||
<li>{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#unless isVehicle}}
|
||||
<div>
|
||||
<label>{{localize "SW5E.SpecialTraits"}}</label>
|
||||
<a class="configure-flags"><i class="fas fa-cog"></i></a>
|
||||
</div>
|
||||
{{/unless}}
|
||||
<ul class="passives"></ul>
|
||||
</section>
|
67
templates/actors/newActor/template.hbs
Normal file
67
templates/actors/newActor/template.hbs
Normal file
|
@ -0,0 +1,67 @@
|
|||
{{#if favItems}}
|
||||
<ol class="group-list ">
|
||||
<li>
|
||||
<div class="group-list-title group-grid-fav-items">
|
||||
<h3 class="item-name">Items</h3>
|
||||
<div class="item-detail item-uses">Charges</div>
|
||||
<div class="item-detail item-quantity">Qty</div>
|
||||
<div class="item-detail item-comps"></div>
|
||||
<div class="item-detail item-controls"></div>
|
||||
</div>
|
||||
|
||||
<ol class="item-list">
|
||||
{{#each favItems as |item id|}}
|
||||
{{> "systems/sw5e/templates/actors/newActor/item.hbs" item=item}}
|
||||
{{/each}}
|
||||
</ol>
|
||||
</li>
|
||||
{{#if favFeats}}
|
||||
<li>
|
||||
<div class="group-list-title group-grid-fav-items">
|
||||
<h3 class="item-name">Features & Feats</h3>
|
||||
<div class="item-detail item-uses">Uses</div>
|
||||
<div class="item-detail item-quantity"></div>
|
||||
<div class="item-detail item-comps"></div>
|
||||
<div class="item-detail item-controls"></div>
|
||||
</div>
|
||||
|
||||
<ol class="item-list">
|
||||
{{#each favFeats as |feat lvl|}}
|
||||
{{> "systems/sw5e/templates/actors/newActor/item.hbs" item=feat}}
|
||||
{{/each}}
|
||||
</ol>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#if favPowers}}
|
||||
{{#each favPowers as |section lvl|}}
|
||||
{{#if section.powers}}
|
||||
{{#if lvl}}
|
||||
<li>
|
||||
<div class="group-list-title group-grid-fav-items">
|
||||
<h3 class="item-name">
|
||||
{{#if section.isCantrip}}At-Will Powers{{else}}Level {{lvl}} Powers{{/if}}
|
||||
</h3>
|
||||
|
||||
<div class="item-detail item-uses">
|
||||
{{#if section.isCantrip}}
|
||||
{{else}}
|
||||
{{section.value}}
|
||||
/
|
||||
{{section.max}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="item-detail item-quantity"></div>
|
||||
<div class="item-detail item-comps"></div>
|
||||
<div class="item-detail item-controls"></div>
|
||||
</div>
|
||||
<ol class="item-list">
|
||||
{{#each section.powers as |power id|}}
|
||||
{{> "systems/sw5e/templates/actors/newActor/item.hbs" item=power}}
|
||||
{{/each}}
|
||||
</ol>
|
||||
</li>
|
||||
{{/if}}{{/if}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
</ol>
|
||||
{{/if}}
|
|
@ -82,25 +82,25 @@
|
|||
</li>
|
||||
|
||||
<li class="attribute">
|
||||
<h4 class="attribute-name box-title">{{ localize "SW5E.Speed" }}</h4>
|
||||
<h4 class="attribute-name box-title">
|
||||
{{ localize "SW5E.Speed" }}
|
||||
</h4>
|
||||
<div class="attribute-value">
|
||||
<input name="data.attributes.speed.value" type="text"
|
||||
value="{{data.attributes.speed.value}}" placeholder="0"/>
|
||||
<span>{{movement.primary}}</span>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<input type="text" class="speed" name="data.attributes.speed.special"
|
||||
value="{{data.attributes.speed.special}}" placeholder="{{ localize 'SW5E.SpeedSpecial' }}"/>
|
||||
<span>{{movement.special}}</span>
|
||||
</footer>
|
||||
</li>
|
||||
|
||||
<li class="attribute initiative">
|
||||
<h4 class="attribute-name box-title">{{ localize "SW5E.Initiative" }}</h4>
|
||||
<h4 class="attribute-name box-title rollable" data-action="rollInitiative">{{ localize "SW5E.Initiative" }}</h4>
|
||||
<div class="attribute-value">
|
||||
<span>{{numberFormat data.attributes.init.total decimals=0 sign=true}}</span>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<span>{{ localize "SW5E.Modifier" }}</span>
|
||||
<input name="data.attributes.init.value" type="number" placeholder="0"
|
||||
<input name="data.attributes.init.value" type="text" data-dtype="Number" placeholder="0"
|
||||
value="{{numberFormat data.attributes.init.value decimals=0 sign=true}}"/>
|
||||
</footer>
|
||||
</li>
|
||||
|
@ -108,17 +108,17 @@
|
|||
</section>
|
||||
</header>
|
||||
|
||||
{{!-- NPC Sheet Navigation --}}
|
||||
{{!-- Character Sheet Navigation --}}
|
||||
<nav class="sheet-navigation tabs" data-group="primary">
|
||||
<a class="item active" data-tab="attributes">{{ localize "SW5E.Attributes" }}</a>
|
||||
<a class="item" data-tab="inventory">{{ localize "SW5E.Inventory" }}</a>
|
||||
<a class="item" data-tab="features">{{ localize "SW5E.Features" }}</a>
|
||||
<a class="item" data-tab="powerbook">{{ localize "SW5E.Powerbook" }}</a>
|
||||
<a class="item" data-tab="effects">{{ localize "SW5E.Effects" }}</a>
|
||||
<a class="item" data-tab="effects">{{ localize "SW5E.Effects" }}</a>
|
||||
<a class="item" data-tab="biography">{{ localize "SW5E.Biography" }}</a>
|
||||
</nav>
|
||||
|
||||
{{!-- NPC Sheet Body --}}
|
||||
{{!-- Character Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
<div class="tab attributes flexrow" data-group="primary" data-tab="attributes">
|
||||
|
@ -183,7 +183,7 @@
|
|||
{{!-- Counters --}}
|
||||
<div class="counters">
|
||||
<div class="counter flexrow death-saves">
|
||||
<h4 class="death-save rollable">{{ localize "SW5E.DeathSave" }}</h4>
|
||||
<h4 class="rollable" data-action="rollDeathSave">{{ localize "SW5E.DeathSave" }}</h4>
|
||||
<div class="counter-value">
|
||||
<i class="fas fa-check"></i>
|
||||
<input name="data.attributes.death.success" type="number" placeholder="0"
|
||||
|
@ -210,30 +210,30 @@
|
|||
</div>
|
||||
|
||||
{{!-- Traits --}}
|
||||
{{> "systems/sw5e/templates/actors/parts/actor-traits.html"}}
|
||||
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-traits.html"}}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{{!-- Inventory Tab --}}
|
||||
<div class="tab inventory flexcol" data-group="primary" data-tab="inventory">
|
||||
{{> "systems/sw5e/templates/actors/parts/actor-inventory.html" sections=inventory}}
|
||||
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-inventory.html" sections=inventory}}
|
||||
</div>
|
||||
|
||||
{{!-- Features Tab --}}
|
||||
<div class="tab features flexcol" data-group="primary" data-tab="features">
|
||||
{{> "systems/sw5e/templates/actors/parts/actor-features.html" sections=features}}
|
||||
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-features.html" sections=features}}
|
||||
</div>
|
||||
|
||||
{{!-- Powerbook Tab --}}
|
||||
<div class="tab powerbook flexcol" data-group="primary" data-tab="powerbook">
|
||||
{{> "systems/sw5e/templates/actors/parts/actor-powerbook.html"}}
|
||||
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-powerbook.html"}}
|
||||
</div>
|
||||
|
||||
|
||||
{{!-- Effects Tab --}}
|
||||
<div class="tab effects flexcol" data-group="primary" data-tab="effects">
|
||||
{{> "systems/sw5e/templates/actors/parts/actor-effects.html"}}
|
||||
{{> "systems/sw5e/templates/actors/parts/active-effects.html"}}
|
||||
</div>
|
||||
|
||||
|
||||
{{!-- Biography Tab --}}
|
||||
<div class="tab flexrow" data-group="primary" data-tab="biography">
|
||||
<div class="characteristics flexcol">
|
|
@ -62,14 +62,14 @@
|
|||
</li>
|
||||
|
||||
<li class="attribute">
|
||||
<h4 class="attribute-name box-title">{{ localize "SW5E.Speed" }}</h4>
|
||||
<h4 class="attribute-name box-title">
|
||||
{{ localize "SW5E.Speed" }}
|
||||
</h4>
|
||||
<div class="attribute-value">
|
||||
<input name="data.attributes.speed.value" type="text"
|
||||
value="{{data.attributes.speed.value}}" placeholder="0"/>
|
||||
<span>{{movement.primary}}</span>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<input type="text" class="speed" name="data.attributes.speed.special"
|
||||
value="{{data.attributes.speed.special}}" placeholder="{{ localize 'SW5E.SpeedSpecial' }}"/>
|
||||
<span>{{movement.special}}</span>
|
||||
</footer>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -81,6 +81,7 @@
|
|||
<a class="item active" data-tab="attributes">{{ localize "SW5E.Attributes" }}</a>
|
||||
<a class="item" data-tab="features">{{ localize "SW5E.Features" }}</a>
|
||||
<a class="item" data-tab="powerbook">{{ localize "SW5E.Powerbook" }}</a>
|
||||
<a class="item" data-tab="effects">{{ localize "SW5E.Effects" }}</a>
|
||||
<a class="item" data-tab="biography">{{ localize "SW5E.Biography" }}</a>
|
||||
</nav>
|
||||
|
||||
|
@ -143,24 +144,29 @@
|
|||
<div class="counter-value">
|
||||
<input name="data.resources.lair.value" type="checkbox" value="{{data.resources.lair.value}}"
|
||||
data-dtype="Boolean" {{checked data.resources.lair.value}}/>
|
||||
<input name="data.resources.lair.initiative" type="number" value="{{data.resources.lair.initiative}}" placeholder="20"/>
|
||||
</div>
|
||||
<input name="data.resources.lair.initiative" type="number" value="{{data.resources.lair.initiative}}" placeholder="20"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Traits --}}
|
||||
{{> "systems/sw5e/templates/actors/parts/actor-traits.html"}}
|
||||
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-traits.html"}}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{{!-- Features Tab --}}
|
||||
<div class="tab features flexcol" data-group="primary" data-tab="features">
|
||||
{{> "systems/sw5e/templates/actors/parts/actor-features.html" sections=features}}
|
||||
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-features.html" sections=features}}
|
||||
</div>
|
||||
|
||||
{{!-- Powerbook Tab --}}
|
||||
<div class="tab powerbook flexcol" data-group="primary" data-tab="powerbook">
|
||||
{{> "systems/sw5e/templates/actors/parts/actor-powerbook.html"}}
|
||||
{{> "systems/sw5e/templates/actors/oldActor/parts/actor-powerbook.html"}}
|
||||
</div>
|
||||
|
||||
{{!-- Effects Tab --}}
|
||||
<div class="tab effects flexcol" data-group="primary" data-tab="effects">
|
||||
{{> "systems/sw5e/templates/actors/parts/active-effects.html"}}
|
||||
</div>
|
||||
|
||||
{{!-- Biography Tab --}}
|
||||
|
@ -168,4 +174,4 @@
|
|||
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
</form>
|
|
@ -8,9 +8,9 @@
|
|||
</div>
|
||||
{{/unless}}
|
||||
|
||||
<ol class="inventory-list">
|
||||
<ol class="items-list inventory-list">
|
||||
{{#each sections as |section sid|}}
|
||||
<li class="inventory-header flexrow">
|
||||
<li class="items-header flexrow">
|
||||
<h3 class="item-name flexrow">{{localize section.label}}</h3>
|
||||
|
||||
{{#if section.hasActions}}
|
||||
|
@ -25,7 +25,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if ../owner}}
|
||||
<div class="item-controls">
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-create" title="{{localize 'SW5E.FeatureAdd'}}" {{#each section.dataset as |v k|}}data-{{k}}="{{v}}"{{/each}}>
|
||||
<i class="fas fa-plus"></i> {{localize "SW5E.Add"}}
|
||||
</a>
|
||||
|
@ -78,10 +78,25 @@
|
|||
<div class="item-detail player-classfeatures">
|
||||
{{item.data.name}}
|
||||
</div>
|
||||
|
||||
{{else if section.isFightingstyles}}
|
||||
<div class="item-detail player-fightingstyles">
|
||||
{{item.data.name}}
|
||||
</div>
|
||||
|
||||
{{else if section.isFightingmasteries}}
|
||||
<div class="item-detail player-fightingmasteries">
|
||||
{{item.data.name}}
|
||||
</div>
|
||||
|
||||
{{else if section.isLightsaberform}}
|
||||
<div class="item-detail player-lightsaberforms">
|
||||
{{item.data.name}}
|
||||
</div>
|
||||
|
||||
{{else if section.isClass}}
|
||||
<div class="item-detail player-class">
|
||||
{{item.data.subclass}}
|
||||
{{item.data.archetype}}
|
||||
</div>
|
||||
<div class="item-detail item-action">
|
||||
Level {{item.data.levels}}
|
||||
|
@ -104,7 +119,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if ../../owner}}
|
||||
<div class="item-controls">
|
||||
<div class="item-controls flexrow">
|
||||
{{#if section.crewable}}
|
||||
<a class="item-control item-toggle {{item.toggleClass}}"
|
||||
title="{{item.toggleTitle}}">
|
|
@ -4,7 +4,6 @@
|
|||
<ol class="currency flexrow">
|
||||
<h3>
|
||||
{{localize "SW5E.Currency"}}
|
||||
<a class="currency-convert" title="Convert Currency"><i class="fas fa-coins"></i></a>
|
||||
</h3>
|
||||
{{#each data.currency as |v k|}}
|
||||
<label class="denomination {{k}}">{{ lookup ../config.currencies k }}</label>
|
||||
|
@ -23,9 +22,9 @@
|
|||
{{/unless}}
|
||||
</div>
|
||||
|
||||
<ol class="inventory-list">
|
||||
<ol class="items-list inventory-list">
|
||||
{{#each sections as |section sid|}}
|
||||
<li class="inventory-header flexrow">
|
||||
<li class="items-header flexrow">
|
||||
<h3 class="item-name flexrow">{{localize section.label}}</h3>
|
||||
|
||||
{{#if section.columns}}
|
||||
|
@ -33,18 +32,18 @@
|
|||
<div class="item-detail {{css}}">{{label}}</div>
|
||||
{{/each}}
|
||||
{{else}}
|
||||
{{#if ../isCharacter}}
|
||||
<div class="item-detail item-weight">{{localize "SW5E.Weight"}}</div>
|
||||
{{/if}}
|
||||
{{#if ../isCharacter}}
|
||||
<div class="item-detail item-weight">{{localize "SW5E.Weight"}}</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="item-detail item-uses">{{localize "SW5E.Charges"}}</div>
|
||||
<div class="item-detail item-action">{{localize "SW5E.Usage"}}</div>
|
||||
<div class="item-detail item-uses">{{localize "SW5E.Charges"}}</div>
|
||||
<div class="item-detail item-action">{{localize "SW5E.Usage"}}</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if ../owner}}
|
||||
<div class="item-controls">
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-create" title='{{localize "SW5E.ItemCreate"}}'
|
||||
{{#each section.dataset as |v k|}}data-{{k}}="{{v}}"{{/each}}>
|
||||
{{#each section.dataset as |v k|}}data-{{k}}="{{v}}"{{/each}}>
|
||||
<i class="fas fa-plus"></i> {{localize "SW5E.Add"}}
|
||||
</a>
|
||||
</div>
|
||||
|
@ -53,13 +52,13 @@
|
|||
|
||||
<ol class="item-list">
|
||||
{{#each section.items as |item iid|}}
|
||||
<li class="item flexrow {{section.css}}"
|
||||
data-item-id="{{#if section.editableName}}{{iid}}{{else}}{{item._id}}{{/if}}">
|
||||
<div class="item-name flexrow rollable">
|
||||
{{#if section.editableName}}
|
||||
<input type="text" value="{{item.name}}">
|
||||
{{else}}
|
||||
<div class="item-image" style="background-image: url('{{item.img}}')"></div>
|
||||
<li class="item flexrow {{section.css}}"
|
||||
data-item-id="{{#if section.editableName}}{{iid}}{{else}}{{item._id}}{{/if}}">
|
||||
<div class="item-name flexrow rollable">
|
||||
{{#if section.editableName}}
|
||||
<input type="text" value="{{item.name}}">
|
||||
{{else}}
|
||||
<div class="item-image" style="background-image: url('{{item.img}}')"></div>
|
||||
<h4>
|
||||
{{item.name~}}
|
||||
{{~#if item.isStack}} ({{item.data.quantity}}){{/if}}
|
||||
|
@ -82,32 +81,32 @@
|
|||
</div>
|
||||
{{/each}}
|
||||
{{else}}
|
||||
{{#if ../../isCharacter}}
|
||||
<div class="item-detail item-weight">
|
||||
{{#if item.totalWeight}}
|
||||
<div class="item-detail">
|
||||
{{ item.totalWeight }} {{localize "SW5E.AbbreviationLbs"}}
|
||||
{{#if ../../isCharacter}}
|
||||
<div class="item-detail item-weight">
|
||||
{{#if item.totalWeight}}
|
||||
<div class="item-detail">
|
||||
{{ item.totalWeight }} {{localize "SW5E.AbbreviationLbs"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="item-detail item-uses">
|
||||
{{#if item.hasUses }}
|
||||
<input type="text" value="{{item.data.uses.value}}" placeholder="0"/>
|
||||
/ {{item.data.uses.max}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="item-detail item-uses">
|
||||
{{#if item.hasUses }}
|
||||
<input type="text" value="{{item.data.uses.value}}" placeholder="0"/>
|
||||
/ {{item.data.uses.max}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<div class="item-detail item-action">
|
||||
{{#if item.data.activation.type }}
|
||||
{{item.labels.activation}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="item-detail item-action">
|
||||
{{#if item.data.activation.type }}
|
||||
{{item.labels.activation}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if ../../owner}}
|
||||
<div class="item-controls">
|
||||
<div class="item-controls flexrow">
|
||||
{{#unless @root.isVehicle}}
|
||||
<a class="item-control item-toggle {{item.toggleClass}}" title='{{item.toggleTitle}}'><i class="fas fa-shield-alt"></i></a>
|
||||
{{/unless}}
|
|
@ -27,12 +27,10 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
<ol class="inventory-list">
|
||||
<ol class="items-list inventory-list">
|
||||
{{#each powerbook as |section|}}
|
||||
<li class="item flexrow inventory-header powerbook-header">
|
||||
<div class="item-name flexrow">
|
||||
<h3>{{section.label}}</h3>
|
||||
</div>
|
||||
<li class="items-header powerbook-header flexrow">
|
||||
<h3 class="item-name flexrow">{{section.label}}</h3>
|
||||
|
||||
<div class="power-slots">
|
||||
{{#if section.usesSlots}}
|
||||
|
@ -46,6 +44,7 @@
|
|||
<i class="fas fa-edit"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</span>
|
||||
{{ else }}
|
||||
<span>{{{section.uses}}}</span>
|
||||
<span class="sep"> / </span>
|
||||
|
@ -57,7 +56,7 @@
|
|||
<div class="power-action">{{localize "SW5E.PowerUsage"}}</div>
|
||||
<div class="power-target">{{localize "SW5E.PowerTarget"}}</div>
|
||||
|
||||
<div class="item-controls">
|
||||
<div class="item-controls flexrow">
|
||||
{{#if section.canCreate}}
|
||||
<a class="item-control item-create" title="{{localize 'SW5E.PowerCreate'}}" {{#each section.dataset as |v k|}}data-{{k}}="{{v}}"{{/each}}>
|
||||
<i class="fas fa-plus"></i> {{localize "SW5E.Add"}}
|
||||
|
@ -91,9 +90,8 @@
|
|||
{{/if}}
|
||||
</div>
|
||||
|
||||
|
||||
{{#if ../../owner}}
|
||||
<div class="item-controls">
|
||||
<div class="item-controls flexrow">
|
||||
{{#if section.canPrepare}}
|
||||
<a class="item-control item-toggle {{item.toggleClass}}" title="{{item.toggleTitle}}"><i class="fas fa-sun"></i></a>
|
||||
{{/if}}
|
||||
|
@ -110,7 +108,7 @@
|
|||
<li class="item flexrow"><p class="notes">{{localize "SW5E.FilterNoPowers"}}</p></li>
|
||||
{{else}}
|
||||
<li class="item flexrow inventory-header powerbook-header powerbook-empty">
|
||||
<div class="item-controls">
|
||||
<div class="item-controls flexrow">
|
||||
<a class="item-control item-create" title="{{localize 'SW5E.PowerCreate'}}" data-type="power"
|
||||
data-level="{{lvl}}"><i class="fas fa-plus"></i> {{localize "SW5E.PowerAdd"}}</a>
|
||||
</div>
|
|
@ -11,6 +11,11 @@
|
|||
</div>
|
||||
|
||||
{{#unless isVehicle}}
|
||||
<div class="form-group ">
|
||||
<label>{{localize "SW5E.MovementConfig"}}</label>
|
||||
<a class="configure-movement" title="{{localize 'SW5E.MovementConfig'}}"><i class="fas fa-cog"></i></a>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{#unless data.traits.senses}}inactive{{/unless}}">
|
||||
<label>{{localize "SW5E.Senses"}}</label>
|
||||
<input type="text" name="data.traits.senses" value="{{data.traits.senses}}" placeholder="{{ localize 'SW5E.None' }}"/>
|
|
@ -58,8 +58,7 @@
|
|||
<li class="attribute">
|
||||
<h4 class="attribute-name box-title">{{localize 'SW5E.Speed'}}</h4>
|
||||
<div class="attribute-value">
|
||||
<input name="data.attributes.speed.value" type="text" placeholder="—"
|
||||
value="{{data.attributes.speed.value}}">
|
||||
<input name="data.attributes.speed" type="text" placeholder="—" value="{{data.attributes.speed}}"/>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -139,16 +138,16 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{> 'systems/sw5e/templates/actors/parts/actor-traits.html'}}
|
||||
{{> 'systems/sw5e/templates/actors/oldActor/parts/actor-traits.html'}}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="tab features flexcol" data-group="primary" data-tab="features">
|
||||
{{> 'systems/sw5e/templates/actors/parts/actor-features.html' sections=features}}
|
||||
{{> 'systems/sw5e/templates/actors/oldActor/parts/actor-features.html' sections=features}}
|
||||
</div>
|
||||
|
||||
<div class="tab cargo flexcol" data-group="primary" data-tab="cargo">
|
||||
{{> 'systems/sw5e/templates/actors/parts/actor-inventory.html' sections=cargo}}
|
||||
{{> 'systems/sw5e/templates/actors/oldActor/parts/actor-inventory.html' sections=cargo}}
|
||||
</div>
|
||||
|
||||
<div class="tab biography flexcol" data-group="primary" data-tab="biography">
|
38
templates/actors/parts/active-effects.html
Normal file
38
templates/actors/parts/active-effects.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
<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">Source</div>
|
||||
<div class="effect-source">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 fa-circle-notch"></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>
|
||||
{{/each}}
|
||||
</ol>
|
|
@ -1,28 +0,0 @@
|
|||
<ol class="inventory-list">
|
||||
{{#each effects as |section sid|}}
|
||||
<li class="inventory-header flexrow">
|
||||
<h3 class="effect-name flexrow">{{localize section.label}}</h3>
|
||||
<div class="effect-source">Source</div>
|
||||
<div class="effect-source">Duration</div>
|
||||
<div class="effect-controls"></div>
|
||||
</li>
|
||||
|
||||
<ol class="effects-list item-list">
|
||||
{{#each section.effects as |effect|}}
|
||||
<li class="effect flexrow" data-effect-id="{{effect.id}}">
|
||||
<div class="effect-name flexrow">
|
||||
<img class="effect-icon" 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="effect-controls">
|
||||
<a class="effect-control" data-action="toggle"><i class="fas fa-circle-notch"></i></a>
|
||||
<a class="effect-control" data-action="edit"><i class="fas fa-edit"></i></a>
|
||||
<a class="effect-control" data-action="delete"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{/each}}
|
||||
</ol>
|
Loading…
Add table
Add a link
Reference in a new issue