forked from GitHub-Mirrors/foundry-sw5e
SotG Update #1
+ Adds compendia for Deployments, Deployment Features, Starship Armor, Starship Equipment, Starship Weapons, and Ventures and associated artwork + Adds Starship actor sheet (very, very rough draft, somewhat unpredictable, not fully functional) + Adds function to Character sheet to collapse/expand Feature tab rows (major assist from Cyr) + Adds function to Character sheet to increment/decrement class levels directly from character sheet (another major assist from Cyr)
This commit is contained in:
parent
3297d9bd8c
commit
c793949b37
57 changed files with 1682 additions and 70 deletions
123
templates/items/deployment.html
Normal file
123
templates/items/deployment.html
Normal file
|
@ -0,0 +1,123 @@
|
|||
<form class="{{cssClass}} flexcol" autocomplete="off">
|
||||
|
||||
{{!-- Item Sheet Header --}}
|
||||
<header class="sheet-header flexrow">
|
||||
<img class="profile" src="{{item.img}}" title="{{item.name}}" data-edit="img"/>
|
||||
|
||||
<div class="header-details flexrow">
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{item.name}}" placeholder="{{ localize 'SW5E.DeploymentName' }}"/>
|
||||
</h1>
|
||||
|
||||
<div class="item-subtitle">
|
||||
<h4 class="item-type">{{itemType}}</h4>
|
||||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<input type="text" name="data.source" value="{{data.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{!-- Item Sheet Navigation --}}
|
||||
<nav class="sheet-navigation tabs" data-group="primary">
|
||||
<a class="item active" data-tab="description">{{ localize "SW5E.Description" }}</a>
|
||||
<a class="item" data-tab="details">{{ localize "SW5E.Details" }}</a>
|
||||
</nav>
|
||||
|
||||
{{!-- Item Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
<div class="tab flexrow active" data-group="primary" data-tab="description">
|
||||
{{editor content=data.flavorText target="data.flavorText" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
|
||||
{{!-- Details Tab --}}
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
{{!-- Class Levels Table and Features --}}
|
||||
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
<!-- {{{data.classFeatures.value}}} -->
|
||||
<!--
|
||||
{{!-- Class Levels --}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.ClassLevels" }}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="data.levels" value="{{data.levels}}" data-dtype="Number"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Archetype Name --}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.ArchetypeName" }}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="data.archetype" value="{{data.archetype}}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Class Hit Dice --}}
|
||||
<div class="form-group">
|
||||
<label>{{localize "SW5E.HitDice"}}</label>
|
||||
<div class="form-fields">
|
||||
<select name="data.hitDice">
|
||||
{{#select data.hitDice}}
|
||||
{{#each config.hitDieTypes}}
|
||||
<option value="{{this}}">{{this}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{localize "SW5E.HitDiceUsed"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" placeholder="0" name="data.hitDiceUsed" value="{{data.hitDiceUsed}}" data-dtype="Number"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{localize 'SW5E.PowerProgression'}}</label>
|
||||
<div class="form-fields">
|
||||
<select name="data.powercasting">
|
||||
{{#select data.powercasting}}
|
||||
{{#each config.powerProgression}}
|
||||
<option value="{{@key}}">{{localize this}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Level 1 skills --}}
|
||||
<div class="form-group">
|
||||
<label>{{localize "SW5E.ClassSkillsNumber"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" placeholder="0" name="data.skills.number" value="{{data.skills.number}}" data-dtype="Number"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>
|
||||
{{localize "SW5E.ClassSkillsChosen"}}
|
||||
{{#if editable }}
|
||||
<a class="trait-selector class-skills" data-target="data.skills" data-options="skills">
|
||||
<i class="fas fa-edit"></i></a>
|
||||
{{/if}}
|
||||
</label>
|
||||
<div class="form-fields">
|
||||
<ul class="traits-list">
|
||||
{{#each data.skills.value}}
|
||||
<li class="tag {{this}}">{{lookup ../config.skills this}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
-->
|
||||
</section>
|
||||
</form>
|
80
templates/items/deploymentfeature.html
Normal file
80
templates/items/deploymentfeature.html
Normal file
|
@ -0,0 +1,80 @@
|
|||
<form class="{{cssClass}} flexcol" autocomplete="off">
|
||||
|
||||
{{!-- Item Sheet Header --}}
|
||||
<header class="sheet-header flexrow">
|
||||
<img class="profile" src="{{item.img}}" title="{{item.name}}" data-edit="img"/>
|
||||
|
||||
<div class="header-details flexrow">
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{item.name}}" placeholder="{{ localize 'SW5E.ItemName' }}"/>
|
||||
</h1>
|
||||
|
||||
<div class="item-subtitle">
|
||||
<h4 class="item-type">{{itemType}}</h4>
|
||||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<li>
|
||||
<input style="width:150px;" type="text" name="data.deployment.value" value="{{data.deployment.value}}" placeholder="{{ localize 'SW5E.Deployment' }}"/>
|
||||
</li>
|
||||
<li>
|
||||
<input style="width:250px;" type="text" name="data.featureType.value" value="{{data.featureType.value}}" />
|
||||
</li>
|
||||
<li>
|
||||
<input style="width:120px;" type="text" name="data.rank.value" value="{{data.rank.value}}" placeholder="{{ localize 'SW5E.Rank' }}"/>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{!-- Item Sheet Navigation --}}
|
||||
<nav class="sheet-navigation tabs" data-group="primary">
|
||||
<a class="item active" data-tab="description">{{ localize "SW5E.Description" }}</a>
|
||||
<a class="item" data-tab="details">{{ localize "SW5E.Details" }}</a>
|
||||
<a class="item" data-tab="effects">{{ localize "SW5E.Effects" }}</a>
|
||||
</nav>
|
||||
|
||||
{{!-- Item Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
{{> "systems/sw5e/templates/items/parts/item-description.html"}}
|
||||
|
||||
{{!-- Details Tab --}}
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
|
||||
<h3 class="form-header">{{ localize "SW5E.FeatureUsage" }}</h3>
|
||||
|
||||
{{!-- Item Activation Template --}}
|
||||
{{> "systems/sw5e/templates/items/parts/item-activation.html"}}
|
||||
|
||||
{{!-- Recharge Requirement --}}
|
||||
{{#if data.activation.type}}
|
||||
<div class="form-group recharge">
|
||||
<label>{{ localize "SW5E.FeatureActionRecharge" }}</label>
|
||||
<div class="form-fields">
|
||||
<span>{{ localize "SW5E.FeatureRechargeOn" }}</span>
|
||||
<input type="text" name="data.recharge.value" value="{{data.recharge.value}}"
|
||||
data-dtype="Number" placeholder="{{ localize 'SW5E.FeatureRechargeResult' }}"/>
|
||||
<label class="checkbox">
|
||||
{{ localize "SW5E.Charged" }}
|
||||
<input type="checkbox" name="data.recharge.charged" {{checked data.recharge.charged}}/>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<h3 class="form-header">{{ localize "SW5E.FeatureAttack" }}</h3>
|
||||
|
||||
{{!-- Item Action Template --}}
|
||||
{{> "systems/sw5e/templates/items/parts/item-action.html"}}
|
||||
</div>
|
||||
|
||||
{{!-- Effects Tab --}}
|
||||
<div class="tab effects flexcol" data-group="primary" data-tab="effects">
|
||||
{{> "systems/sw5e/templates/actors/parts/active-effects.html"}}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</form>
|
|
@ -91,6 +91,38 @@
|
|||
{{/each}}
|
||||
</div>
|
||||
|
||||
{{!-- Starship Armor and Shield Properties --}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.StarshipArmorandShieldProps" }}</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="width: 60%;">
|
||||
<strong style="color:#4b4a44; font-size: 11px">{{ localize "SW5E.CapacityMultiplier" }}</strong>
|
||||
<input style="min-width: 5px; max-width: 35px; padding: none;" type="text" name="data.capx.value" value="{{data.capx.value}}" />
|
||||
<strong style="color:#4b4a44; font-size: 11px;">{{ localize "SW5E.HPperHD" }}</strong>
|
||||
<input style="min-width: 5px; max-width: 35px; padding: none;" type="text" name="data.hpperhd.value" value="{{data.hpperhd.value}}" />
|
||||
<strong style="color:#4b4a44; font-size: 11px;">{{ localize "SW5E.RegenerationRateCoefficient" }}</strong>
|
||||
<input style="min-width: 5px; max-width: 35px; padding: none;" type="text" name="data.regrateco.value" value="{{data.regrateco.value}}" />
|
||||
</div>
|
||||
|
||||
{{!-- Starship Equipment Properties --}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.StarshipEquipmentProps" }}</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="width: 100%;">
|
||||
<strong style="color:#4b4a44; font-size: 11px;">{{ localize "SW5E.CentStorageCapacity" }}</strong>
|
||||
<input style="min-width: 5px; max-width: 35px; padding: none;" type="text" name="data.cscap.value" value="{{data.cscap.value}}" />
|
||||
<strong style="color:#4b4a44; font-size: 11px;">{{ localize "SW5E.SysStorageCapacity" }}</strong>
|
||||
<input style="min-width: 5px; max-width: 35px; padding: none;" type="text" name="data.sscap.value" value="{{data.sscap.value}}" />
|
||||
<strong style="color:#4b4a44; font-size: 11px;">{{ localize "SW5E.FuelCostsMod" }}</strong>
|
||||
<input style="min-width: 5px; max-width: 35px; padding: none;" type="text" name="data.fuelcostsmod.value" value="{{data.fuelcostsmod.value}}" />
|
||||
<strong style="color:#4b4a44; font-size: 11px;">{{ localize "SW5E.PowerDiceRecovery" }}</strong>
|
||||
<input style="min-width: 5px; max-width: 35px; padding: none;" type="text" name="data.powdicerec.value" value="{{data.powdicerec.value}}" />
|
||||
<strong style="color:#4b4a44; font-size: 11px;">{{ localize "SW5E.HyperdriveClass" }}</strong>
|
||||
<input style="min-width: 5px; max-width: 35px; padding: none;" type="text" name="data.hdclass.value" value="{{data.hdclass.value}}" />
|
||||
</div>
|
||||
|
||||
{{!-- Armor Class --}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.ArmorClass" }}</label>
|
||||
|
|
|
@ -16,6 +16,12 @@
|
|||
<label>{{ localize "SW5E.Price" }}</label>
|
||||
<input type="text" name="data.price" value="{{data.price}}" data-dtype="Number"/>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.WeaponSizeAbb" }}</label>
|
||||
<!-- <input type="text" name="data.weaponSize" value="{{data.weaponSize}}" data-dtype="String"/> -->
|
||||
{{data.weaponSize}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<ol class="properties-list">
|
||||
|
|
85
templates/items/starshipmod.html
Normal file
85
templates/items/starshipmod.html
Normal file
|
@ -0,0 +1,85 @@
|
|||
<form class="{{cssClass}} flexcol" autocomplete="off">
|
||||
|
||||
{{!-- Item Sheet Header --}}
|
||||
<header class="sheet-header flexrow">
|
||||
<img class="profile" src="{{item.img}}" title="{{item.name}}" data-edit="img"/>
|
||||
|
||||
<div class="header-details flexrow">
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{item.name}}" placeholder="{{ localize 'SW5E.ItemName' }}"/>
|
||||
</h1>
|
||||
|
||||
<div class="item-subtitle">
|
||||
<h4 class="item-type">{{itemType}}</h4>
|
||||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary" style="line-height: 24px; height: 24px;">
|
||||
<li style="padding: 5px; line-height: 16px; height: 16px; font-size: 16px; align: center;">
|
||||
<strong>System:</strong> {{data.system.value}}
|
||||
</li>
|
||||
<li style="padding: 5px; line-height: 16px; height: 16px; font-size: 16px; align: center;">
|
||||
<strong>Grade:</strong> {{data.grade.value}}
|
||||
</li>
|
||||
<li style="padding: 5px; line-height: 16px; height: 16px; font-size: 16px; align: center;">
|
||||
<strong>Base Cost:</strong> {{data.basecost.value}} cr
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="summary" style="line-height: 24px; height: 24px;">
|
||||
<li style="padding: 5px; font-size: 16px; line-height: 16px; height: 16px; align: center;">
|
||||
<strong>Prerequisites:</strong> {{data.prerequisites.value}}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{!-- Item Sheet Navigation --}}
|
||||
<nav class="sheet-navigation tabs" data-group="primary">
|
||||
<a class="item active" data-tab="description">{{ localize "SW5E.Description" }}</a>
|
||||
<a class="item" data-tab="details">{{ localize "SW5E.Details" }}</a>
|
||||
<a class="item" data-tab="effects">{{ localize "SW5E.Effects" }}</a>
|
||||
</nav>
|
||||
|
||||
{{!-- Item Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
{{> "systems/sw5e/templates/items/parts/item-description.html"}}
|
||||
|
||||
{{!-- Details Tab --}}
|
||||
<div class="tab details" data-group="primary" data-tab="details">
|
||||
|
||||
<h3 class="form-header">{{ localize "SW5E.FeatureUsage" }}</h3>
|
||||
|
||||
{{!-- Item Activation Template --}}
|
||||
{{> "systems/sw5e/templates/items/parts/item-activation.html"}}
|
||||
|
||||
{{!-- Recharge Requirement --}}
|
||||
{{#if data.activation.type}}
|
||||
<div class="form-group recharge">
|
||||
<label>{{ localize "SW5E.FeatureActionRecharge" }}</label>
|
||||
<div class="form-fields">
|
||||
<span>{{ localize "SW5E.FeatureRechargeOn" }}</span>
|
||||
<input type="text" name="data.recharge.value" value="{{data.recharge.value}}"
|
||||
data-dtype="Number" placeholder="{{ localize 'SW5E.FeatureRechargeResult' }}"/>
|
||||
<label class="checkbox">
|
||||
{{ localize "SW5E.Charged" }}
|
||||
<input type="checkbox" name="data.recharge.charged" {{checked data.recharge.charged}}/>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<h3 class="form-header">{{ localize "SW5E.FeatureAttack" }}</h3>
|
||||
|
||||
{{!-- Item Action Template --}}
|
||||
{{> "systems/sw5e/templates/items/parts/item-action.html"}}
|
||||
</div>
|
||||
|
||||
{{!-- Effects Tab --}}
|
||||
<div class="tab effects flexcol" data-group="primary" data-tab="effects">
|
||||
{{> "systems/sw5e/templates/actors/parts/active-effects.html"}}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</form>
|
47
templates/items/venture.html
Normal file
47
templates/items/venture.html
Normal file
|
@ -0,0 +1,47 @@
|
|||
<form class="{{cssClass}} flexcol" autocomplete="off">
|
||||
|
||||
{{!-- Item Sheet Header --}}
|
||||
<header class="sheet-header flexrow">
|
||||
<img class="profile" src="{{item.img}}" title="{{item.name}}" data-edit="img"/>
|
||||
|
||||
<div class="header-details flexrow">
|
||||
<h1 class="charname">
|
||||
<input name="name" type="text" value="{{item.name}}" placeholder="{{ localize 'SW5E.ItemName' }}"/>
|
||||
</h1>
|
||||
|
||||
<div class="item-subtitle">
|
||||
<h4 class="item-type">{{itemType}}</h4>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<li>
|
||||
<input type="text" name="data.source.value" value="{{data.source.value}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{!-- Item Sheet Navigation --}}
|
||||
<nav class="sheet-navigation tabs" data-group="primary">
|
||||
<a class="item active" data-tab="description">{{ localize "SW5E.Description" }}</a>
|
||||
<a class="item" data-tab="effects">{{ localize "SW5E.Effects" }}</a>
|
||||
<!-- <a class="item" data-tab="details">{{ localize "SW5E.Details" }}</a> -->
|
||||
</nav>
|
||||
|
||||
{{!-- Item Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
|
||||
{{!-- Description Tab --}}
|
||||
<div class="tab description" data-group="primary" data-tab="description">
|
||||
<h3>{{item.name}}</h3>
|
||||
{{editor content=data.description.value target="data.description.value" button=true editable=editable}}
|
||||
|
||||
</div>
|
||||
|
||||
{{!-- Effects Tab --}}
|
||||
<div class="tab effects flexcol" data-group="primary" data-tab="effects">
|
||||
{{> "systems/sw5e/templates/actors/parts/active-effects.html"}}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</form>
|
|
@ -15,7 +15,7 @@
|
|||
</div>
|
||||
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<li style="flex-basis: 80px;">
|
||||
{{lookup config.weaponTypes data.weaponType }}
|
||||
</li>
|
||||
<li>
|
||||
|
@ -56,7 +56,20 @@
|
|||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
{{!-- Starship Weapon Size --}}
|
||||
<!-- <div class="form-group">
|
||||
<label>{{ localize "SW5E.ItemWeaponSize" }}</label>
|
||||
<select name="data.weaponSize">
|
||||
<option value="" selected disabled>Select Size</option>
|
||||
{{#select data.weaponSize}}
|
||||
{{#each config.weaponSizes as |name size|}}
|
||||
<option value="{{size}}">{{name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div> -->
|
||||
|
||||
{{#unless isMountable}}
|
||||
<div class="form-group">
|
||||
<label>{{localize "SW5E.Attunement"}}</label>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue