forked from GitHub-Mirrors/foundry-sw5e
Super VJ Update
This commit is contained in:
parent
442212bdea
commit
1983b74bde
59 changed files with 4640 additions and 2462 deletions
|
@ -4,31 +4,34 @@
|
|||
<header class="sheet-header flexrow">
|
||||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img"/>
|
||||
|
||||
<div class="header-details flexrow">
|
||||
<section class="header-details flexrow">
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}"/>
|
||||
</h1>
|
||||
|
||||
<div class="charlevel">
|
||||
<div class="level {{#if disableExperience}}noxp{{/if}}">
|
||||
<aside class="header-exp flexcol">
|
||||
<div class="charlevel">
|
||||
<label>{{ localize "SW5E.Level" }} {{data.details.level}}</label>
|
||||
<span class="levels">{{classLabels}}</span>
|
||||
</div>
|
||||
|
||||
{{#unless disableExperience}}
|
||||
<div class="experience">
|
||||
<div class="experience flexrow">
|
||||
<input name="data.details.xp.value" type="text" value="{{data.details.xp.value}}"
|
||||
data-dtype="Number" placeholder="0"/>
|
||||
<span class="max"> / {{data.details.xp.max}}</span>
|
||||
<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>
|
||||
</aside>
|
||||
|
||||
{{!-- Character Summary --}}
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<input type="text" name="data.details.race" value="{{data.details.race}}" placeholder="{{ localize 'SW5E.Species' }}"/>
|
||||
<input type="text" name="data.details.species" value="{{data.details.species}}" placeholder="{{ localize 'SW5E.Species' }}"/>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.details.background" value="{{data.details.background}}" placeholder="{{ localize 'SW5E.Background' }}"/>
|
||||
|
@ -36,6 +39,9 @@
|
|||
<li>
|
||||
<input type="text" name="data.details.alignment" value="{{data.details.alignment}}" placeholder="{{ localize 'SW5E.Alignment' }}"/>
|
||||
</li>
|
||||
<li class="proficiency">
|
||||
<span>{{ localize "SW5E.Proficiency" }} {{numberFormat data.attributes.prof decimals=0 sign=true}}</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{{!-- Header Attributes --}}
|
||||
|
@ -57,6 +63,17 @@
|
|||
</footer>
|
||||
</li>
|
||||
|
||||
<li class="attribute">
|
||||
<h4 class="attribute-name box-title">{{ localize "SW5E.HitDice" }}</h4>
|
||||
<div class="attribute-value multiple">
|
||||
<label class="hit-dice">{{data.attributes.hd}} <span class="sep"> / </span> {{data.details.level}}</label>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<a class="rest short-rest">{{ localize "SW5E.RestS" }}</a>
|
||||
<a class="rest long-rest">{{ localize "SW5E.RestL" }}</a>
|
||||
</footer>
|
||||
</li>
|
||||
|
||||
<li class="attribute">
|
||||
<h4 class="attribute-name box-title">{{ localize "SW5E.ArmorClass" }}</h4>
|
||||
<div class="attribute-value">
|
||||
|
@ -64,8 +81,7 @@
|
|||
data-dtype="Number" placeholder="10"/>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<span>{{ localize "SW5E.Proficiency" }}</span>
|
||||
<span>{{numberFormat data.attributes.prof decimals=0 sign=true}}</span>
|
||||
<span class="power-dc">{{localize "SW5E.PowerDC"}} {{data.attributes.powerdc}}</span>
|
||||
</footer>
|
||||
</li>
|
||||
|
||||
|
@ -81,18 +97,19 @@
|
|||
</footer>
|
||||
</li>
|
||||
|
||||
<li class="attribute">
|
||||
<h4 class="attribute-name box-title">{{ localize "SW5E.HitDice" }}</h4>
|
||||
<div class="attribute-value multiple">
|
||||
<label class="hit-dice">{{data.attributes.hd}} / {{data.details.level}}</label>
|
||||
<li class="attribute initiative">
|
||||
<h4 class="attribute-name box-title">{{ localize "SW5E.Initiative" }}</h4>
|
||||
<div class="attribute-value">
|
||||
<span>{{numberFormat data.attributes.init.total decimals=0 sign=true}}</span>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<a class="rest short-rest">{{ localize "SW5E.RestS" }}</a>
|
||||
<a class="rest long-rest">{{ localize "SW5E.RestL" }}</a>
|
||||
<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>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</header>
|
||||
|
||||
{{!-- NPC Sheet Navigation --}}
|
||||
|
@ -118,7 +135,7 @@
|
|||
<div class="ability-modifiers flexrow">
|
||||
<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"/>
|
||||
<a class="proficiency-toggle ability-proficiency" title="Proficiency">{{{ability.icon}}}</a>
|
||||
<a class="proficiency-toggle ability-proficiency" title="{{ localize 'SW5E.Proficiency' }}">{{{ability.icon}}}</a>
|
||||
<span class="ability-save" title="Saving Throw">{{numberFormat ability.save decimals=0 sign=true}}</span>
|
||||
</div>
|
||||
</li>
|
||||
|
@ -133,13 +150,13 @@
|
|||
<a class="proficiency-toggle skill-proficiency" title="{{skill.hover}}">{{{skill.icon}}}</a>
|
||||
<h4 class="skill-name rollable">{{skill.label}}</h4>
|
||||
<span class="skill-ability">{{skill.ability}}</span>
|
||||
<span class="skill-mod">{{numberFormat skill.mod decimals=0 sign=true}}</span>
|
||||
<span class="skill-mod">{{numberFormat skill.total decimals=0 sign=true}}</span>
|
||||
<span class="skill-passive">({{skill.passive}})</span>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
<section class="center-pane">
|
||||
<section class="center-pane flexcol">
|
||||
|
||||
{{!-- Body Attributes --}}
|
||||
<ul class="attributes flexrow">
|
||||
|
@ -149,39 +166,27 @@
|
|||
<input name="data.resources.{{res.name}}.label" type="text" value="{{res.label}}"
|
||||
placeholder="{{res.placeholder}}" />
|
||||
</h4>
|
||||
<div class="attribute-value multiple">
|
||||
<div class="attribute-value">
|
||||
<label class="recharge checkbox">
|
||||
{{ localize "SW5E.AbbreviationSR" }} <input name="data.resources.{{res.name}}.sr" type="checkbox" {{checked res.sr}}/>
|
||||
</label>
|
||||
|
||||
<input name="data.resources.{{res.name}}.value" type="text" value="{{res.value}}"
|
||||
data-dtype="Number" placeholder="0"/>
|
||||
<span class="sep"> / </span>
|
||||
<input name="data.resources.{{res.name}}.max" type="text" value="{{res.max}}"
|
||||
<input name="data.resources.{{res.name}}.max" type="text" value="{{res.max}}"
|
||||
data-dtype="Number" placeholder="0"/>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<label class="checkbox">
|
||||
{{ localize "SW5E.AbbreviationSR" }} <input name="data.resources.{{res.name}}.sr" type="checkbox" {{checked res.sr}}/>
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
|
||||
<label class="recharge checkbox">
|
||||
{{ localize "SW5E.AbbreviationLR" }} <input name="data.resources.{{res.name}}.lr" type="checkbox" {{checked res.lr}}/>
|
||||
</label>
|
||||
</footer>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
|
||||
<li class="attribute initiative">
|
||||
<h4 class="attribute-name box-title">{{ 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="text" placeholder="0" data-dtype="Number"
|
||||
value="{{numberFormat data.attributes.init.value decimals=0 sign=true}}"/>
|
||||
</footer>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{{!-- Counters --}}
|
||||
<div class="counters flexrow">
|
||||
<div class="counters">
|
||||
<div class="counter flexrow death-saves">
|
||||
<h4 class="death-save rollable">{{ localize "SW5E.DeathSave" }}</h4>
|
||||
<div class="counter-value">
|
||||
|
@ -193,14 +198,14 @@
|
|||
value="{{data.attributes.death.failure}}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="counter flexrow">
|
||||
<div class="counter flexrow exhaustion">
|
||||
<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 flexrow">
|
||||
<div class="counter flexrow inspiration">
|
||||
<h4>{{ localize "SW5E.Inspiration" }}</h4>
|
||||
<div class="counter-value">
|
||||
<input type="checkbox" name="data.attributes.inspiration" data-dtype="Boolean"
|
||||
|
|
|
@ -1,21 +1,20 @@
|
|||
<form class="{{cssClass}}" autocomplete="off">
|
||||
<form class="{{cssClass}} flexcol limited" autocomplete="off">
|
||||
|
||||
<!-- HEADER -->
|
||||
<header class="sheet-header">
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}"/>
|
||||
</h1>
|
||||
{{!-- Sheet Header --}}
|
||||
<header class="sheet-header flexrow">
|
||||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img"/>
|
||||
|
||||
<section class="header-details flexrow">
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}"/>
|
||||
</h1>
|
||||
</section>
|
||||
</header>
|
||||
|
||||
<!-- BODY -->
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
<div class="tab biography">
|
||||
{{editor content=data.details.biography.value target="data.details.biography.value" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- SIDEBAR -->
|
||||
<section class="sheet-sidebar">
|
||||
<img class="sheet-profile" src="{{actor.img}}" title="{{actor.name}}" height="220" width="220" data-edit="img"/>
|
||||
</section>
|
||||
</form>
|
||||
|
|
|
@ -4,33 +4,79 @@
|
|||
<header class="sheet-header flexrow">
|
||||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" data-edit="img"/>
|
||||
|
||||
<div class="header-details flexrow">
|
||||
<section class="header-details flexrow">
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{actor.name}}" placeholder="{{ localize 'SW5E.Name' }}"/>
|
||||
</h1>
|
||||
|
||||
<div class="charlevel">
|
||||
<div class="level">
|
||||
<aside class="header-exp flexcol">
|
||||
<div class="cr">
|
||||
<label>{{ localize "SW5E.AbbreviationCR" }}</label>
|
||||
<input name="data.details.cr" type="text" value="{{labels.cr}}" placeholder="1"/>
|
||||
</div>
|
||||
<div class="experience">
|
||||
<span>{{data.details.xp.value}} XP</span>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<ul class="summary">
|
||||
{{!-- Character Summary --}}
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<input type="text" name="data.details.type" value="{{data.details.type}}" placeholder="{{ localize 'SW5E.Type' }}"/>
|
||||
<span>{{lookup config.actorSizes data.traits.size}}</span>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.details.alignment" value="{{data.details.alignment}}" placeholder="{{ localize 'SW5E.Alignment' }}"/>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.details.type" value="{{data.details.type}}" placeholder="{{ localize 'SW5E.Type' }}"/>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.details.source" value="{{data.details.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{{!-- Header Attributes --}}
|
||||
<ul class="attributes flexrow">
|
||||
<li class="attribute health">
|
||||
<h4 class="attribute-name box-title rollable">{{ localize "SW5E.Health" }}</h4>
|
||||
<div class="attribute-value multiple">
|
||||
<input name="data.attributes.hp.value" type="text" value="{{data.attributes.hp.value}}"
|
||||
data-dtype="Number" placeholder="10"/>
|
||||
<span class="sep"> / </span>
|
||||
<input name="data.attributes.hp.max" type="text" value="{{data.attributes.hp.max}}"
|
||||
data-dtype="Number" placeholder="10"/>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<input name="data.attributes.hp.formula" class="hpformula" type="text" placeholder="{{ localize 'SW5E.HealthFormula' }}"
|
||||
value="{{data.attributes.hp.formula}}"/>
|
||||
</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="text" value="{{data.attributes.ac.value}}"
|
||||
data-dtype="Number" placeholder="10"/>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<span>{{ localize "SW5E.Proficiency" }}</span>
|
||||
<span>{{numberFormat data.attributes.prof decimals=0 sign=true}}</span>
|
||||
</footer>
|
||||
</li>
|
||||
|
||||
<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"
|
||||
value="{{data.attributes.speed.value}}" placeholder="0"/>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<input type="text" class="speed" name="data.attributes.speed.special"
|
||||
value="{{data.attributes.speed.special}}" placeholder="{{ localize 'SW5E.SpeedSpecial' }}"/>
|
||||
</footer>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</header>
|
||||
|
||||
{{!-- NPC Sheet Navigation --}}
|
||||
|
@ -54,7 +100,7 @@
|
|||
<div class="ability-modifiers flexrow">
|
||||
<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"/>
|
||||
<a class="proficiency-toggle ability-proficiency" title="Proficiency">{{{ability.icon}}}</a>
|
||||
<a class="proficiency-toggle ability-proficiency" title="{{ localize 'SW5E.Proficiency' }}">{{{ability.icon}}}</a>
|
||||
<span class="ability-save" title="Saving Throw">{{numberFormat ability.save decimals=0 sign=true}}</span>
|
||||
</div>
|
||||
</li>
|
||||
|
@ -69,58 +115,16 @@
|
|||
<a class="proficiency-toggle skill-proficiency" title="{{skill.hover}}">{{{skill.icon}}}</a>
|
||||
<h4 class="skill-name rollable">{{skill.label}}</h4>
|
||||
<span class="skill-ability">{{skill.ability}}</span>
|
||||
<span class="skill-mod">{{numberFormat skill.mod decimals=0 sign=true}}</span>
|
||||
<span class="skill-mod">{{numberFormat skill.total decimals=0 sign=true}}</span>
|
||||
<span class="skill-passive">({{skill.passive}})</span>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
<section class="center-pane">
|
||||
|
||||
{{!-- Attributes --}}
|
||||
<ul class="attributes flexrow">
|
||||
<li class="attribute health">
|
||||
<h4 class="attribute-name box-title rollable">{{ localize "SW5E.Health" }}</h4>
|
||||
<div class="attribute-value multiple">
|
||||
<input name="data.attributes.hp.value" type="text" value="{{data.attributes.hp.value}}"
|
||||
data-dtype="Number" placeholder="10"/>
|
||||
<span class="sep"> / </span>
|
||||
<input name="data.attributes.hp.max" type="text" value="{{data.attributes.hp.max}}"
|
||||
data-dtype="Number" placeholder="10"/>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<input name="data.attributes.hp.formula" class="hpformula" type="text" placeholder="{{ localize 'SW5E.HealthFormula' }}"
|
||||
value="{{data.attributes.hp.formula}}"/>
|
||||
</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="text" value="{{data.attributes.ac.value}}"
|
||||
data-dtype="Number" placeholder="10"/>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<span>{{ localize "SW5E.Proficiency" }}</span>
|
||||
<span>{{numberFormat data.attributes.prof decimals=0 sign=true}}</span>
|
||||
</footer>
|
||||
</li>
|
||||
|
||||
<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"
|
||||
value="{{data.attributes.speed.value}}" placeholder="0"/>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<input type="text" class="speed" name="data.attributes.speed.special"
|
||||
value="{{data.attributes.speed.special}}" placeholder="{{ localize 'SW5E.SpeedSpecial' }}"/>
|
||||
</footer>
|
||||
</li>
|
||||
</ul>
|
||||
<section class="center-pane flexcol">
|
||||
|
||||
{{!-- Legendary Actions --}}
|
||||
<div class="counters flexrow">
|
||||
<div class="counters">
|
||||
<div class="counter flexrow legendary">
|
||||
<h4>{{ localize "SW5E.LegAct" }}</h4>
|
||||
<div class="counter-value">
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
<div class="inventory-filters">
|
||||
{{#unless isVehicle}}
|
||||
<div class="inventory-filters flexrow">
|
||||
<ul class="filter-list flexrow" 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>
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
<ol class="inventory-list">
|
||||
{{#each sections as |section sid|}}
|
||||
|
@ -17,6 +18,12 @@
|
|||
<div class="item-detail item-action">{{localize "SW5E.Usage"}}</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if section.columns}}
|
||||
{{#each section.columns}}
|
||||
<div class="item-detail {{css}}">{{label}}</div>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
||||
{{#if ../owner}}
|
||||
<div class="item-controls">
|
||||
<a class="item-control item-create" title="{{localize 'SW5E.FeatureAdd'}}" {{#each section.dataset as |v k|}}data-{{k}}="{{v}}"{{/each}}>
|
||||
|
@ -56,13 +63,34 @@
|
|||
<div class="item-detail player-class">
|
||||
{{item.data.subclass}}
|
||||
</div>
|
||||
<div class="item-detail">
|
||||
<div class="item-detail item-action">
|
||||
Level {{item.data.levels}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if section.columns}}
|
||||
{{#each section.columns}}
|
||||
<div class="item-detail {{css}}">
|
||||
{{#with (getProperty item property)}}
|
||||
{{#if ../editable}}
|
||||
<input type="text" value="{{this}}" placeholder="—"
|
||||
data-dtype="{{../editable}}">
|
||||
{{else}}
|
||||
{{this}}
|
||||
{{/if}}
|
||||
{{/with}}
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
||||
{{#if ../../owner}}
|
||||
<div class="item-controls">
|
||||
{{#if section.crewable}}
|
||||
<a class="item-control item-toggle {{item.toggleClass}}"
|
||||
title="{{item.toggleTitle}}">
|
||||
<i class="fas fa-sun"></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>
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
<div class="inventory-filters powerbook-filters">
|
||||
<div class="inventory-filters powerbook-filters flexrow">
|
||||
<div class="form-group powercasting-ability">
|
||||
<h3>{{localize "SW5E.PowerAbility"}}</h3>
|
||||
{{#unless isNPC}}
|
||||
<label>{{localize "SW5E.PowerAbility"}}</label>
|
||||
{{else}}
|
||||
<label>{{localize "SW5E.Level"}}</label>
|
||||
<input class="powercasting-level" type="text" name="data.details.powerLevel"
|
||||
value="{{data.details.powerLevel}}" data-dtype="Number" placeholder="0"/>
|
||||
{{/unless}}
|
||||
<select name="data.attributes.powercasting" data-type="String">
|
||||
{{#select data.attributes.powercasting}}
|
||||
<option value="">{{localize "SW5E.None"}}</option>
|
||||
|
@ -9,21 +15,15 @@
|
|||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
{{#if isNPC}}
|
||||
<h3>{{localize "SW5E.PowercasterLevel"}}</h3>
|
||||
<input class="powercasting-level" type="text" name="data.details.powerLevel"
|
||||
value="{{data.details.powerLevel}}" data-dtype="Number" placeholder="0"/>
|
||||
{{/if}}
|
||||
<h3 class="power-dc">{{localize "SW5E.PowerDC"}} {{data.attributes.powerdc}}</h3>
|
||||
</div>
|
||||
|
||||
<ul class="filter-list flexrow" 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>
|
||||
|
||||
|
@ -47,7 +47,7 @@
|
|||
</a>
|
||||
{{/if}}
|
||||
{{ else }}
|
||||
<span class="power-slots">{{{section.uses}}}</span>
|
||||
<span>{{{section.uses}}}</span>
|
||||
<span class="sep"> / </span>
|
||||
<span class="power-max">{{{section.slots}}}</span>
|
||||
{{/if}}
|
||||
|
@ -72,7 +72,7 @@
|
|||
<div class="item-name flexrow rollable">
|
||||
<div class="item-image" style="background-image: url({{item.img}})"></div>
|
||||
<h4>{{item.name}}</h4>
|
||||
{{#if item.data.uses.value }}
|
||||
{{#if item.data.uses.per }}
|
||||
<div class="item-detail power-uses">Uses {{item.data.uses.value}} / {{item.data.uses.max}}</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
|
|
@ -10,95 +10,115 @@
|
|||
</select>
|
||||
</div>
|
||||
|
||||
{{#unless isVehicle}}
|
||||
<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' }}"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{data.traits.languages.cssClass}}">
|
||||
<label for="data.traits.languages">{{localize "SW5E.Languages"}}</label>
|
||||
<label>{{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 class="tag {{k}}">{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<a class="trait-selector" data-options="languages"><i class="fas fa-edit"></i></a>
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
<div class="form-group {{data.traits.di.cssClass}}">
|
||||
<label for="data.traits.di">{{localize "SW5E.DamImm"}}</label>
|
||||
<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 class="tag {{k}}">{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<a class="trait-selector" data-options="damageTypes"><i class="fas fa-edit"></i></a>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{data.traits.dr.cssClass}}">
|
||||
<label for="data.traits.dr">{{localize "SW5E.DamRes"}}</label>
|
||||
<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 class="tag {{k}}">{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<a class="trait-selector" data-options="damageTypes"><i class="fas fa-edit"></i></a>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{data.traits.dv.cssClass}}">
|
||||
<label for="data.traits.dv">{{localize "SW5E.DamVuln"}}</label>
|
||||
<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 class="tag {{k}}">{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<a class="trait-selector" data-options="damageTypes"><i class="fas fa-edit"></i></a>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{data.traits.ci.cssClass}}">
|
||||
<label for="data.traits.ci">{{localize "SW5E.ConImm"}}</label>
|
||||
<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 class="tag {{k}}">{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<a class="trait-selector" data-options="conditionTypes"><i class="fas fa-edit"></i></a>
|
||||
</div>
|
||||
|
||||
{{#if isCharacter}}
|
||||
<div class="form-group {{data.traits.weaponProf.cssClass}}">
|
||||
<label for="data.traits.weaponProf">{{localize "SW5E.TraitWeaponProf"}}</label>
|
||||
<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 class="tag {{k}}">{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<a class="trait-selector" data-options="weaponProficiencies"><i class="fas fa-edit"></i></a>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{data.traits.armorProf.cssClass}}">
|
||||
<label for="data.traits.armorProf">{{localize "SW5E.TraitArmorProf"}}</label>
|
||||
<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 class="tag {{k}}">{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<a class="trait-selector" data-options="armorProficiencies"><i class="fas fa-edit"></i></a>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{data.traits.toolProf.cssClass}}">
|
||||
<label for="data.traits.toolProf">{{localize "SW5E.TraitToolProf"}}</label>
|
||||
<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 class="tag {{k}}">{{v}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<a class="trait-selector" data-options="toolProficiencies"><i class="fas fa-edit"></i></a>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#unless isVehicle}}
|
||||
<div class="form-group ">
|
||||
<label>{{localize "SW5E.SpecialTraits"}}</label>
|
||||
<a class="configure-flags"><i class="fas fa-cog"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
</div>
|
||||
|
|
159
templates/actors/vehicle-sheet.html
Normal file
159
templates/actors/vehicle-sheet.html
Normal file
|
@ -0,0 +1,159 @@
|
|||
<form class="{{cssClass}} flexcol" autocomplete="off">
|
||||
<header class="sheet-header flexrow">
|
||||
<img class="profile" src="{{actor.img}}" title="{{actor.name}}" alt="{{actor.name}}"
|
||||
data-edit="img">
|
||||
<section class="header-details flexrow">
|
||||
<h1 class="charnam">
|
||||
<input name="name" type="text" value="{{actor.name}}"
|
||||
placeholder="{{localize 'SW5E.Name'}}">
|
||||
</h1>
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<span>{{lookup config.actorSizes data.traits.size}}</span>
|
||||
</li>
|
||||
<li>
|
||||
<span>{{localize 'SW5E.Vehicle'}}</span>
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.traits.dimensions"
|
||||
value="{{data.traits.dimensions}}"
|
||||
placeholder="{{localize 'SW5E.Dimensions'}}">
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="data.details.source"
|
||||
value="{{data.details.source}}"
|
||||
placeholder="{{localize 'SW5E.Source'}}">
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="attributes flexrow">
|
||||
<li class="attribute health">
|
||||
<h4 class="attribute-name box-title">{{localize 'SW5E.health'}}</h4>
|
||||
<div class="attribute-value multiple">
|
||||
<input name="data.attributes.hp.value" type="text" placeholder="—"
|
||||
value="{{data.attributes.hp.value}}" data-dtype="Number">
|
||||
<span class="sep"> / </span>
|
||||
<input name="data.attributes.hp.max" type="text" placeholder="—"
|
||||
value="{{data.attributes.hp.max}}" data-dtype="Number">
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<input name="data.attributes.hp.dt" type="text" class="temphp"
|
||||
placeholder="{{localize 'SW5E.Threshold'}}"
|
||||
value="{{data.attributes.hp.dt}}" data-dtype="Number">
|
||||
<input name="data.attributes.hp.mt" type="text" class="temphp"
|
||||
placeholder="{{localize 'SW5E.VehicleMishap'}}"
|
||||
value="{{data.attributes.hp.mt}}" data-dtype="Number">
|
||||
</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="text" placeholder="—"
|
||||
value="{{data.attributes.ac.value}}" data-dtype="Number">
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<input type="text" name="data.attributes.ac.motionless"
|
||||
placeholder="—" value="{{data.attributes.ac.motionless}}">
|
||||
</footer>
|
||||
</li>
|
||||
<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}}">
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</header>
|
||||
|
||||
<nav class="sheet-navigation tabs" data-group="primary">
|
||||
<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="cargo">{{localize 'SW5E.VehicleCargoCrew'}}</a>
|
||||
<a class="item" data-tab="biography">{{localize 'SW5E.Description'}}</a>
|
||||
</nav>
|
||||
|
||||
<section class="sheet-body">
|
||||
<div class="tab attributes flexrow" data-group="primary" data-tab="attributes">
|
||||
<ul class="ability-scores flexrow">
|
||||
{{#each data.abilities as |ability id|}}
|
||||
<li class="ability" data-ability="{{id}}">
|
||||
<h4 class="ability-name box-title rollable">{{ability.label}}</h4>
|
||||
<input class="ability-score" name="data.abilities.{{id}}.value" type="text"
|
||||
value="{{ability.value}}" data-dtype="Number" placeholder="0">
|
||||
<div class="ability-modifiers flexrow">
|
||||
<span class="ability-mod" title="{{localize 'SW5E.Modifier'}}">
|
||||
{{numberFormat ability.mod decimals=0 sign=true}}
|
||||
</span>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<section class="center-pane flexcol">
|
||||
<div class="counters">
|
||||
<div class="counter flexrow creature-cap">
|
||||
<h4>{{localize 'SW5E.VehicleCreatureCapacity'}}</h4>
|
||||
<div class="counter-value">
|
||||
<input type="text" placeholder="—"
|
||||
name="data.attributes.capacity.creature"
|
||||
value="{{data.attributes.capacity.creature}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="counter flexrow cargo-cap">
|
||||
<h4>{{localize 'SW5E.VehicleCargoCapacity'}}</h4>
|
||||
<div class="counter-value">
|
||||
<input type="text" name="data.attributes.capacity.cargo" placeholder="0"
|
||||
data-dtype="Number" value="{{data.attributes.capacity.cargo}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="counter flexrow stations">
|
||||
<h4>{{localize 'SW5E.VehicleActionStations'}}</h4>
|
||||
<div class="counter-value">
|
||||
<input name="data.attributes.actions.stations" type="checkbox"
|
||||
data-dtype="Boolean" value="{{data.attributes.actions.stations}}"
|
||||
{{checked data.attributes.actions.stations}}>
|
||||
</div>
|
||||
</div>
|
||||
<div class="counter flexrow actions">
|
||||
<h4>{{localize 'SW5E.ActionPl'}}</h4>
|
||||
<div class="counter-value">
|
||||
<input type="text" name="data.attributes.actions.value" placeholder="0"
|
||||
data-dtype="Number" value="{{data.attributes.actions.value}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="counter flexrow action-thresholds">
|
||||
<h4>{{localize 'SW5E.VehicleActionThresholds'}}</h4>
|
||||
<div class="counter-value">
|
||||
<span class="sep"><</span>
|
||||
<input type="text" placeholder="—" data-dtype="Number"
|
||||
value="{{data.attributes.actions.thresholds.[2]}}"
|
||||
name="data.attributes.actions.thresholds.2">
|
||||
<span class="sep"><</span>
|
||||
<input type="text" placeholder="—" data-dtype="Number"
|
||||
value="{{data.attributes.actions.thresholds.[1]}}"
|
||||
name="data.attributes.actions.thresholds.1">
|
||||
<span class="sep"><</span>
|
||||
<input type="text" placeholder="—" data-dtype="Number"
|
||||
value="{{data.attributes.actions.thresholds.[0]}}"
|
||||
name="data.attributes.actions.thresholds.0">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{> 'systems/sw5e/templates/actors/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}}
|
||||
</div>
|
||||
|
||||
<div class="tab cargo flexcol" data-group="primary" data-tab="cargo">
|
||||
{{> 'systems/sw5e/templates/actors/parts/actor-inventory.html' sections=cargo}}
|
||||
</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}}
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
|
@ -1,26 +1,43 @@
|
|||
<form id="ability-use-form">
|
||||
<p>{{ localize "SW5E.AbilityUseHint" }} <strong>{{item.name}}</strong> {{ localize "SW5E.Ability" }}.</p>
|
||||
|
||||
<p type="note">
|
||||
{{#if recharges}}
|
||||
{{ localize "SW5E.AbilityUseRechargeHint" }} <strong>{{#if isCharged}}{{ localize "SW5E.AbilityUseCharged" }}{{else}}{{ localize "SW5E.AbilityUseDepleted" }}{{/if}}</strong>.</p>
|
||||
{{else}}
|
||||
{{ localize "SW5E.AbilityUseWarnStart" }} <strong>{{uses.value}} {{ localize "SW5E.of" }} {{uses.max}}</strong> {{ localize "SW5E.AbilityUseWarnEnd" }} {{perLabel}}.
|
||||
{{/if}}
|
||||
{{#unless canUse}}
|
||||
{{ localize "SW5E.AbilityUseCantUse" }}
|
||||
{{/unless}}
|
||||
</p>
|
||||
<p>{{ title }}</p>
|
||||
<p class="notes">{{note}}</p>
|
||||
{{#each errors}}
|
||||
<p class="notification error">{{localize this}}</p>
|
||||
{{/each}}
|
||||
|
||||
{{#if hasPowerSlots}}
|
||||
<div class="form-group">
|
||||
<label class="checkbox">{{ localize "SW5E.AbilityUseConsume" }} <input type="checkbox" name="consume" {{checked consume}}/></label>
|
||||
|
||||
{{#if hasPlaceableTemplate}}
|
||||
<div class="form-group">
|
||||
<label class="checkbox">{{ localize "SW5E.PlaceTemplate" }}
|
||||
<input type="checkbox" name="placeTemplate" checked/>
|
||||
</label>
|
||||
<label>{{ localize "SW5E.PowerCastUpcast" }}</label>
|
||||
<div class="form-fields">
|
||||
<select name="level" {{#unless canUpcast}}disabled{{/unless}}>
|
||||
{{#select item.data.level}}
|
||||
{{#each powerLevels as |l|}}
|
||||
<option value="{{l.level}}" {{#unless l.canCast}}disabled{{/unless}}>{{l.label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
{{#if canUpcast}}
|
||||
<div class="form-group">
|
||||
<label class="checkbox"><input type="checkbox" name="consumeSlot" checked/>{{ localize "SW5E.PowerCastConsume" }}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if hasLimitedUses}}
|
||||
<div class="form-group">
|
||||
<label class="checkbox"><input type="checkbox" name="consumeUse" checked/>{{ localize "SW5E.AbilityUseConsume" }}</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if hasPlaceableTemplate}}
|
||||
<div class="form-group">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="placeTemplate" checked/>
|
||||
{{ localize "SW5E.PlaceTemplate" }}
|
||||
</label>
|
||||
</div>
|
||||
{{/if}}
|
||||
</form>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<input type="text" name="{{key}}" value="{{flag.value}}" placeholder="{{flag.placeholder}}" data-dtype="{{flag.type}}"/>
|
||||
{{/if}}
|
||||
|
||||
<p class="notes">{{flag.hint}}</p>
|
||||
<p class="notes">{{localize flag.hint}}</p>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
|
|
20
templates/apps/long-rest.html
Normal file
20
templates/apps/long-rest.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<form id="long-rest" class="dialog-content" onsubmit="event.preventDefault();">
|
||||
<p>Take a long rest? On a long rest you will recover hit points, half your maximum hit dice, class resources, limited use item charges, and spell slots.</p>
|
||||
|
||||
{{#if promptNewDay}}
|
||||
<div class="form-group">
|
||||
<label>Is New Day?</label>
|
||||
<input type="checkbox" name="newDay" {{checked newDay}}/>
|
||||
<p class="hint">Recover limited use abilities which recharge "per day"?</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="dialog-buttons">
|
||||
{{#each buttons as |button id|}}
|
||||
<button class="dialog-button" data-button="{{id}}">
|
||||
{{{button.icon}}}
|
||||
{{{button.label}}}
|
||||
</button>
|
||||
{{/each}}
|
||||
</div>
|
||||
</form>
|
|
@ -18,6 +18,15 @@
|
|||
<p class="notes">{{ localize "SW5E.ShortRestNoHD" }}</p>
|
||||
{{/unless}}
|
||||
</div>
|
||||
|
||||
{{#if promptNewDay}}
|
||||
<div class="form-group">
|
||||
<label>Is New Day?</label>
|
||||
<input type="checkbox" name="newDay" {{checked newDay}}/>
|
||||
<p class="hint">Recover limited use abilities which recharge "per day"?</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="dialog-buttons">
|
||||
{{#each buttons as |button id|}}
|
||||
<button class="dialog-button" data-button="{{id}}">
|
||||
|
|
|
@ -9,9 +9,11 @@
|
|||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{#if allowCustom}}
|
||||
<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.Save"}}</button>
|
||||
</form>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li></li>
|
||||
<li>
|
||||
<input type="text" name="data.rarity" value="{{data.rarity}}" placeholder="{{ localize 'SW5E.Rarity' }}"/>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<input type="text" name="data.source" value="{{data.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
||||
</li>
|
||||
|
@ -113,10 +113,6 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Granted Abilities (TODO) --}}
|
||||
<h3 class="form-header">{{ localize "SW5E.GrantedAbilities" }}</h3>
|
||||
<p class="notification warning">This is still to-do</p>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
{{lookup config.consumableTypes data.consumableType }}
|
||||
</li>
|
||||
|
@ -73,14 +73,8 @@
|
|||
|
||||
{{!-- Item Activation Template --}}
|
||||
{{> "systems/sw5e/templates/items/parts/item-activation.html"}}
|
||||
|
||||
{{!-- Consumable Usage --}}
|
||||
{{#if data.activation.type}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.ItemConsumableUsage" }}</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.uses.autoUse" {{checked data.uses.autoUse}}/> {{ localize "SW5E.ItemConsumeOnUse" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.uses.autoDestroy" {{checked data.uses.autoDestroy}}/> {{ localize "SW5E.ItemDestroyEmpty" }}
|
||||
</label>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
{{lookup config.equipmentTypes data.armor.type }}
|
||||
</li>
|
||||
|
@ -57,6 +57,7 @@
|
|||
</select>
|
||||
</div>
|
||||
|
||||
{{#unless isMountable}}
|
||||
{{!-- Equipment Status --}}
|
||||
<div class="form-group stacked">
|
||||
<label>{{ localize "SW5E.ItemEquipmentStatus" }}</label>
|
||||
|
@ -73,33 +74,34 @@
|
|||
<input type="checkbox" name="data.attuned" {{checked data.attuned}}/> {{ localize "SW5E.Attuned" }}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
{{#unless isWeapon }}
|
||||
{{!-- ArmorProperties Formula --}}
|
||||
<div class="form-group stacked weapon-properties">
|
||||
<h4 class="armorproperties-header">
|
||||
{{#unless isWeapon }}{{ localize "SW5E.ArmorProperties" }}{{ else }}{{ localize "SW5E.ItemWeaponProperties" }}{{/unless}}
|
||||
<a class="armorproperties-control add-armorproperties"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="armorproperties-parts form-group">
|
||||
{{#each data.armorproperties.parts as |part i| }}
|
||||
<li class="armorproperties-part flexrow" data-armorproperties-part="{{i}}">
|
||||
|
||||
<select name="data.armorproperties.parts.{{i}}.1">
|
||||
{{#select (lookup this "1") }}
|
||||
<option value="">{{ localize "SW5E.None" }}</option>
|
||||
{{#each ../config.armorpropertiesTypes as |name type|}}
|
||||
<option value="{{type}}">{{name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<input type="text" name="data.armorproperties.parts.{{i}}.0" value="{{lookup this "0"}}"/>
|
||||
<a class="armorproperties-control delete-armorproperties"><i class="fas fa-minus"></i></a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
{{/unless}}
|
||||
{{/unless}}
|
||||
|
||||
{{#unless isWeapon }}
|
||||
{{!-- ArmorProperties Formula --}}
|
||||
<div class="form-group stacked weapon-properties">
|
||||
<h4 class="armorproperties-header">
|
||||
{{#unless isWeapon }}{{ localize "SW5E.ArmorProperties" }}{{ else }}{{ localize "SW5E.ItemWeaponProperties" }}{{/unless}}
|
||||
<a class="armorproperties-control add-armorproperties"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="armorproperties-parts form-group">
|
||||
{{#each data.armorproperties.parts as |part i| }}
|
||||
<li class="armorproperties-part flexrow" data-armorproperties-part="{{i}}">
|
||||
|
||||
<select name="data.armorproperties.parts.{{i}}.1">
|
||||
{{#select (lookup this "1") }}
|
||||
<option value="">{{ localize "SW5E.None" }}</option>
|
||||
{{#each ../config.armorpropertiesTypes as |name type|}}
|
||||
<option value="{{type}}">{{name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<input type="text" name="data.armorproperties.parts.{{i}}.0" value="{{lookup this "0"}}"/>
|
||||
<a class="armorproperties-control delete-armorproperties"><i class="fas fa-minus"></i></a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
{{!-- Armor Class --}}
|
||||
<div class="form-group">
|
||||
|
@ -109,6 +111,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{{#unless isMountable}}
|
||||
{{!-- Dexterity Modifier --}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.ItemEquipmentDexMod" }}</label>
|
||||
|
@ -130,6 +133,21 @@
|
|||
<label>{{ localize "SW5E.ItemEquipmentStealthDisav" }}</label>
|
||||
<input type="checkbox" name="data.stealth" value="1" {{checked data.stealth}}/>
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
{{#if isMountable}}
|
||||
{{> 'systems/sw5e/templates/items/parts/item-mountable.html'}}
|
||||
<div class="form-group">
|
||||
<label>{{localize 'SW5E.Speed'}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="data.speed.value" value="{{data.speed.value}}"
|
||||
placeholder="0" data-dtype="Number">
|
||||
<span class="sep">{{localize 'SW5E.FeetAbbr'}}</span>
|
||||
<input type="text" name="data.speed.conditions"
|
||||
value="{{data.speed.conditions}}">
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<h3 class="form-header">{{ localize "SW5E.ItemEquipmentUsage" }}</h3>
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
{{labels.featType}}
|
||||
</li>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<input type="text" name="data.rarity" value="{{data.rarity}}" placeholder="{{ localize 'SW5E.Rarity' }}"/>
|
||||
</li>
|
||||
|
|
|
@ -23,6 +23,21 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{{#if isCrewed}}
|
||||
<div class="form-group">
|
||||
<label>{{localize 'SW5E.Cover'}}</label>
|
||||
<div class="form-fields">
|
||||
<select name="data.cover" data-dtype="Number">
|
||||
{{#select data.cover}}
|
||||
<option value="">—</option>
|
||||
{{#each config.cover as |v k|}}
|
||||
<option value="{{k}}">{{v}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{!-- Ability Target --}}
|
||||
<div class="form-group input-select-select">
|
||||
|
@ -99,4 +114,28 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{!-- Consumption --}}
|
||||
<div class="form-group uses-per">
|
||||
<label>{{ localize "SW5E.ConsumeTitle" }}</label>
|
||||
<div class="form-fields">
|
||||
<select name="data.consume.type">
|
||||
{{#select data.consume.type}}
|
||||
<option value=""></option>
|
||||
{{#each config.abilityConsumptionTypes as |name key|}}
|
||||
<option value="{{key}}">{{name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<select name="data.consume.target">
|
||||
{{#select data.consume.target}}
|
||||
<option value=""></option>
|
||||
{{#each abilityConsumptionTargets as |name key|}}
|
||||
<option value="{{key}}">{{name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<input type="text" name="data.consume.amount" value="{{data.consume.amount}}" data-dtype="Number"/>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
19
templates/items/parts/item-mountable.html
Normal file
19
templates/items/parts/item-mountable.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<div class="form-group">
|
||||
<label>{{localize 'SW5E.Health'}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="data.hp.value" value="{{data.hp.value}}"
|
||||
placeholder="0" data-dtype="Number">
|
||||
<span class="sep">/</span>
|
||||
<input type="text" name="data.hp.max" value="{{data.hp.max}}" placeholder="0"
|
||||
data-dtype="Number">
|
||||
<input type="text" name="data.hp.dt" value="{{data.hp.dt}}" data-dtype="Number"
|
||||
placeholder="{{localize 'SW5E.Threshold'}}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{localize 'SW5E.HealthConditions'}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="data.hp.conditions" value="{{data.hp.conditions}}">
|
||||
</div>
|
||||
</div>
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
{{labels.level}}
|
||||
</li>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<input type="text" name="data.rarity" value="{{data.rarity}}" placeholder="{{ localize 'SW5E.Rarity' }}"/>
|
||||
</li>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
{{lookup config.weaponTypes data.weaponType }}
|
||||
</li>
|
||||
|
@ -56,22 +56,26 @@
|
|||
</select>
|
||||
</div>
|
||||
|
||||
{{#unless isMountable}}
|
||||
{{!-- Weapon Status --}}
|
||||
<div class="form-group stacked">
|
||||
<label>{{ localize "SW5E.ItemWeaponStatus" }}</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.proficient" {{checked data.proficient}}/> {{ localize "SW5E.Proficient" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.equipped" {{checked data.equipped}}/> {{ localize "SW5E.Equipped" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.identified" {{checked data.identified}}/> {{ localize "SW5E.Identified" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.attuned" {{checked data.attuned}}/> {{ localize "SW5E.Attuned" }}
|
||||
</label>
|
||||
<div class="form-fields">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.proficient" {{checked data.proficient}}/> {{ localize "SW5E.Proficient" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.equipped" {{checked data.equipped}}/> {{ localize "SW5E.Equipped" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.identified" {{checked data.identified}}/> {{ localize "SW5E.Identified" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.attuned" {{checked data.attuned}}/> {{ localize "SW5E.Attuned" }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
{{#if sss}}
|
||||
{{!-- Weapon Properties --}}
|
||||
|
@ -85,33 +89,44 @@
|
|||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if isWeapon }}
|
||||
<div class="form-group stacked weapon-properties">
|
||||
{{!-- weaponproperties Formula --}}
|
||||
<h4 class="weaponproperties-header">
|
||||
{{#unless isWeapon }}{{ localize "SW5E.ArmorProperties" }}{{ else }}{{ localize "SW5E.ItemWeaponProperties" }}{{/unless}}
|
||||
<a class="weaponproperties-control add-weaponproperties"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="weaponproperties-parts form-group">
|
||||
{{#each data.weaponproperties.parts as |part i| }}
|
||||
<li class="weaponproperties-part flexrow" data-weaponproperties-part="{{i}}">
|
||||
|
||||
<select name="data.weaponproperties.parts.{{i}}.1">
|
||||
{{#select (lookup this "1") }}
|
||||
<option value="">{{ localize "SW5E.None" }}</option>
|
||||
{{#each ../config.weaponProperties as |name type|}}
|
||||
<option value="{{type}}">{{name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<input type="text" name="data.weaponproperties.parts.{{i}}.0" value="{{lookup this "0"}}"/>
|
||||
<a class="weaponproperties-control delete-weaponproperties"><i class="fas fa-minus"></i></a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{/if}}
|
||||
{{#if isWeapon }}
|
||||
<div class="form-group stacked weapon-properties">
|
||||
{{!-- weaponproperties Formula --}}
|
||||
<h4 class="weaponproperties-header">
|
||||
{{#unless isWeapon }}{{ localize "SW5E.ArmorProperties" }}{{ else }}{{ localize "SW5E.ItemWeaponProperties" }}{{/unless}}
|
||||
<a class="weaponproperties-control add-weaponproperties"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<ol class="weaponproperties-parts form-group">
|
||||
{{#each data.weaponproperties.parts as |part i| }}
|
||||
<li class="weaponproperties-part flexrow" data-weaponproperties-part="{{i}}">
|
||||
|
||||
<select name="data.weaponproperties.parts.{{i}}.1">
|
||||
{{#select (lookup this "1") }}
|
||||
<option value="">{{ localize "SW5E.None" }}</option>
|
||||
{{#each ../config.weaponProperties as |name type|}}
|
||||
<option value="{{type}}">{{name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<input type="text" name="data.weaponproperties.parts.{{i}}.0" value="{{lookup this "0"}}"/>
|
||||
<a class="weaponproperties-control delete-weaponproperties"><i class="fas fa-minus"></i></a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
{{#if isMountable}}
|
||||
<div class="form-group">
|
||||
<label>{{localize 'SW5E.ArmorClass'}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="data.armor.value" value="{{data.armor.value}}"
|
||||
data-dtype="Number">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{> 'systems/dnd5e/templates/items/parts/item-mountable.html'}}
|
||||
{{/if}}
|
||||
|
||||
<h3 class="form-header">{{ localize "SW5E.ItemWeaponUsage" }}</h3>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue