forked from GitHub-Mirrors/foundry-sw5e
SotG Update #1.2
+ Adds Starship Features compendium ^ Adds major updates to Starship sheet and related item compendia ^ Adds Mechanist Technique to Archetypes compendium
This commit is contained in:
parent
e711ff0f7c
commit
14f4e06788
28 changed files with 767 additions and 69 deletions
91
templates/actors/newActor/parts/swalt-crew.html
Normal file
91
templates/actors/newActor/parts/swalt-crew.html
Normal file
|
@ -0,0 +1,91 @@
|
|||
<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>
|
||||
<a class="item-control item-collapse" title="{{localize 'SW5E.FeatureCollapse'}}"
|
||||
{{#each section.dataset as |v k|}}data-{{k}}="{{v}}" {{/each}}>
|
||||
<i class="fas fa-compress-arrows-alt"></i> {{localize "SW5E.Collapse"}}
|
||||
</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 content" style="display: block">
|
||||
{{#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"><strong>HD:</strong>
|
||||
<input style="width:50px;" name="hitdice" type="text" value="{{item.data.hitDice}}" placeholder="{{ localize 'SW5E.HitDice' }}"/>
|
||||
<!-- {{item.data.hitDice}} -->
|
||||
</div>
|
||||
<div class="item-detail player-class-levels">
|
||||
<strong>Level {{item.data.levels}}</strong> <a class="increment-class-level"><i style="color:#c40f0f; text-shadow: 0px 1px 2px gray;" class="fas fa-arrow-up"></i></a> <a class="decrement-class-level"><i style="color:#c40f0f; text-shadow: 0px 1px 2px gray" class="fas fa-arrow-down"></i></a>
|
||||
<!-- {{#if ../owner}}
|
||||
<a class="item-control item-create" title="{{localize 'SW5E.LevelAdd'}}"
|
||||
{{#each item.data.levels as |v k|}}data-{{k}}="{{v}}" {{/each}}>
|
||||
<i class="fas fa-arrow-up"></i> {{localize "SW5E.Up"}}
|
||||
</a>
|
||||
{{/if}} -->
|
||||
</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>
|
|
@ -17,10 +17,9 @@
|
|||
<!-- <input type="text" name="data.traits.size" value="{{data.traits.size}}"
|
||||
placeholder="{{lookup config.actorSizes data.traits.size}}" style="text-transform: capitalize;" /> -->
|
||||
<span class="summary-input" style="text-transform: capitalize;font-family: 'Russo One';display: inline; height: auto; font-size: 17px; font-weight: 400; letter-spacing: 0.5px; line-height: 24px; color: #4f4f4f;">{{lookup config.actorSizes data.traits.size}}</span>
|
||||
<input type="text" name="data.details.role" value="{{data.details.role}}"
|
||||
placeholder="{{ localize 'SW5E.Role' }}" />
|
||||
<!-- <input type="text" name="data.details.type" value="{{data.details.type}}"
|
||||
placeholder="{{ localize 'SW5E.Type' }}" /> -->
|
||||
<!-- <input type="text" name="data.details.role" value="{{data.details.role}}"
|
||||
placeholder="{{ localize 'SW5E.Role' }}" /> -->
|
||||
<span class="summary-input" style="text-transform: capitalize;font-family: 'Russo One';display: inline; height: auto; font-size: 17px; font-weight: 400; letter-spacing: 0.5px; line-height: 24px; color: #4f4f4f;">{{lookup config.starshipRolessm data.details.role}}</span>
|
||||
<input type="text" name="data.details.source" value="{{data.details.source}}"
|
||||
placeholder="{{ localize 'SW5E.Source' }}" />
|
||||
</div>
|
||||
|
@ -75,19 +74,20 @@
|
|||
<a class="config-button" data-action="movement" title="{{localize 'SW5E.MovementConfig'}}"><i class="fas fa-cog"></i></a>
|
||||
</h1>
|
||||
<div class="attribute-value">
|
||||
<span>{{movement.primary}}</span>
|
||||
<span>{{data.attributes.movement.fly}} {{data.attributes.movement.units}}</span>
|
||||
</div>
|
||||
<footer class="attribute-footer">
|
||||
<span>{{movement.special}}</span>
|
||||
<footer class="attribute-footer" style="font-family: 'Russo One'; text-align: center;">
|
||||
<span>Turning Speed: {{data.attributes.movement.turn}} {{data.attributes.movement.units}}</span>
|
||||
</footer>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
|
||||
{{!-- NPC Sheet Navigation --}}
|
||||
<nav class="sheet-navigation root-tabs" data-group="primary">
|
||||
{{!-- Starship Sheet Navigation --}}
|
||||
<nav class="sheet-navigation root-tabs" style="grid-template-columns: repeat(4, 1fr);" data-group="primary">
|
||||
<button class="item active" data-tab="attributes">{{ localize "SW5E.Attributes" }}</button>
|
||||
<button class="item" data-tab="cargo">{{localize 'SW5E.VehicleCargoCrew'}}</button>
|
||||
<button class="item" data-tab="features">{{ localize "SW5E.Features" }}</button>
|
||||
<button class="item" data-tab="effects">{{ localize "SW5E.Effects" }}</button>
|
||||
</nav>
|
||||
|
@ -123,7 +123,7 @@
|
|||
<section class="skills">
|
||||
<h1>{{localize "SW5E.Skills"}}</h1>
|
||||
<ol>
|
||||
{{#each CONFIG.starshipSkills as |skill s|}}
|
||||
{{#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" />
|
||||
|
@ -139,22 +139,145 @@
|
|||
</ol>
|
||||
</section>
|
||||
</section>
|
||||
<section class="panel traits-resources">
|
||||
|
||||
<section class="panel resources">
|
||||
<h1>Resources and Traits</h1>
|
||||
<div class="traits">
|
||||
<label>
|
||||
{{localize "SW5E.Size"}}
|
||||
<select class="actor-size" name="data.traits.size">
|
||||
{{#select data.traits.size}}
|
||||
<option value=""> </option>
|
||||
{{#each config.actorSizes as |label size|}}
|
||||
<option value="{{size}}">{{label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
{{localize "SW5E.Role"}}
|
||||
<select class="actor-size" name="data.details.role">
|
||||
{{#select data.details.role}}
|
||||
<option value=""> </option>
|
||||
{{#each config.starshipRolessm as |label role|}}
|
||||
<option value="{{role}}">{{label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</label>
|
||||
<br />
|
||||
<label>
|
||||
{{localize "SW5E.HullDice"}}: <input class="hpformula" style="max-width:50px;" name="data.attributes.hd" value="{{data.attributes.hd}}" placeholder="{{data.attributes.hd}}" />
|
||||
</label>
|
||||
<label>
|
||||
{{localize "SW5E.ShieldDice"}}: <input class="hpformula" style="max-width:50px;" name="data.attributes.sd" value="{{data.attributes.sd}}" placeholder="{{data.attributes.sd}}" />
|
||||
</label>
|
||||
<label>
|
||||
{{localize "SW5E.PowerDice"}}:
|
||||
<select class="actor-size" name="data.attributes.pd">
|
||||
{{#select data.attributes.pd}}
|
||||
<option value=""> </option>
|
||||
{{#each config.powerDieTypes as |pd|}}
|
||||
<option value="{{pd}}">{{pd}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</label>
|
||||
<br />
|
||||
<label>
|
||||
{{localize "SW5E.DmgRed"}}: <input class="hpformula" style="max-width:30px;" name="data.attributes.dr" value="{{data.attributes.dr}}" placeholder="0" />
|
||||
</label>
|
||||
<label>
|
||||
{{localize "SW5E.VehicleCargoCapacity"}}: <input class="hpformula" style="max-width:60px;" name="data.attributes.cargcap" value="{{data.attributes.cargcap}}" placeholder="0" /> tons
|
||||
</label>
|
||||
<br />
|
||||
<label>
|
||||
{{localize "SW5E.CrewCap"}}: <input class="hpformula" style="max-width:60px;" name="data.attributes.crewcap" value="{{data.attributes.crewcap}}" placeholder="0" />
|
||||
</label>
|
||||
<br />
|
||||
<label>
|
||||
{{localize "SW5E.CentStorageCapacity"}}: <input class="hpformula" style="max-width:30px;" name="data.attributes.cscap" value="{{data.attributes.cscap}}" placeholder="0" />
|
||||
</label>
|
||||
<label>
|
||||
{{localize "SW5E.SysStorageCapacity"}}: <input class="hpformula" style="max-width:30px;" name="data.attributes.sscap" value="{{data.attributes.sscap}}" placeholder="0" />
|
||||
</label>
|
||||
</div>
|
||||
<h1>{{localize "SW5E.PowerRouting"}}</h1>
|
||||
<div class="traits">
|
||||
<label>
|
||||
{{localize "SW5E.EnginePl"}}:
|
||||
<select name="data.attributes.engpow">
|
||||
{{#select data.attributes.engpow}}
|
||||
<option value="1">=</option>
|
||||
<option value="2">↑</option>
|
||||
<option value="0.5">↓</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
{{localize "SW5E.EquipmentShieldProficiency"}}:
|
||||
<select name="data.attributes.shieldpow">
|
||||
{{#select data.attributes.shieldpow}}
|
||||
<option value="1">=</option>
|
||||
<option value="2">↑</option>
|
||||
<option value="0.5">↓</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
{{localize "SW5E.ItemTypeWeaponPl"}}:
|
||||
<select name="data.attributes.weaponpow">
|
||||
{{#select data.attributes.weaponpow}}
|
||||
<option value="1">=</option>
|
||||
<option value="2">↑</option>
|
||||
<option value="0.5">↓</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<section class="counters" style="border: none; margin: 8px 0; display: grid; grid-template-columns: repeat(2, 1fr);">
|
||||
<div class="counter">
|
||||
<h4 class="death-save rollable" data-action="rollDeathSave">{{ localize "SW5E.DestructionSave" }}</h4>
|
||||
<div class="counter-value" style="text-align: left;">
|
||||
<div class="death-success" style="color: #0dce0d;">
|
||||
<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" style="color: #c40f0f;">
|
||||
<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.SystemDrainage" }}</h4>
|
||||
<div class="counter-value" style="text-align: left;">
|
||||
<input type="text" name="data.attributes.exhaustion" data-dtype="Number" placeholder="0"
|
||||
value="{{data.attributes.exhaustion}}" />
|
||||
</div>
|
||||
</div></section>
|
||||
<h1>{{localize "SW5E.StarshipmodPl"}}</h1>
|
||||
<div class="traits">
|
||||
<label>
|
||||
{{localize "SW5E.ModCap"}}: <input class="hpformula" style="max-width:30px;" name="data.attributes.mods.open" value="{{data.attributes.mods.open}}" placeholder="10" />/<input class="hpformula" style="max-width:30px;" name="data.attributes.mods.max" value="{{data.attributes.mods.max}}" placeholder="10" />
|
||||
</label>
|
||||
<label>
|
||||
{{localize "SW5E.SuiteCap"}}: <input class="hpformula" style="max-width:30px;" name="data.attributes.suites.open" value="{{data.attributes.suites.open}}" placeholder="0" />/<input class="hpformula" style="max-width:30px;" name="data.attributes.suites.max" value="{{data.attributes.suites.max}}" placeholder="0" />
|
||||
</label>
|
||||
<br />
|
||||
<label>
|
||||
{{localize "SW5E.HardpointSizeMod"}}: <input class="hpformula" style="max-width:30px;" name="data.attributes.hsm" value="{{data.attributes.hsm}}" placeholder="0" />
|
||||
</label>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
{{!-- Cargo & Crew --}}
|
||||
<div class="tab features flexcol" data-group="primary" data-tab="cargo">
|
||||
{{> 'systems/sw5e/templates/actors/newActor/parts/swalt-crew.html'}}
|
||||
</div>
|
||||
|
||||
{{!-- Features Tab --}}
|
||||
<div class="tab features flexcol" data-group="primary" data-tab="features">
|
||||
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-features.html" sections=features}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue