General Cleanup

CSS
 - Removed unnecessary units on 0 values
 - Replaced invalid css values (such as line-height default) with valid equivalents
Templates
 - Added missing closing tags
 - Fixed incorrect closing tags
 - Removed unnecessary closing tags
This commit is contained in:
Jacob Lucas 2021-06-03 14:37:04 +01:00
parent d0e0dda2b3
commit 92bf020cdf
23 changed files with 272 additions and 279 deletions

View file

@ -106,17 +106,17 @@
&:nth-child(even) {
width: 150px;
margin: 0.5em 0.5em;
padding: 0px 10px 0px 10px;
padding: 0 10px 0 10px;
text-align: left;
}
}
thead {
border-bottom: 0px;
border-bottom: 0;
}
th {
color: #000000;
text-shadow: none;
border-bottom: 0px;
border-bottom: 0;
background-color: #bdc8cc;
text-transform: none;
font-weight: bold;
@ -129,7 +129,7 @@
&:nth-child(even) {
width: 150px;
margin: 0.5em 0.5em;
padding: 0px 10px 0px 10px;
padding: 0 10px 0 10px;
text-align: left;
}
}
@ -137,7 +137,7 @@
.medtable {
table {
width: 500px;
border: 0px;
border: 0;
margin: 0.5em 0.5em;
}
td {
@ -149,17 +149,17 @@
&:nth-child(even) {
width: 450px;
margin: 0.5em 0.5em;
padding: 0px 10px 0px 0px;
padding: 0 10px 0 0;
text-align: left;
}
}
thead {
border-bottom: 0px;
border-bottom: 0;
}
th {
color: #000000;
text-shadow: none;
border-bottom: 0px;
border-bottom: 0;
background-color: #bdc8cc;
text-transform: none;
font-weight: bold;
@ -174,8 +174,8 @@
}
.classtable {
blockquote {
border-left: 0px;
border-right: 0px;
border-left: 0;
border-right: 0;
background-color: #bdc8cc;
width: 600px;
h3 {
@ -189,8 +189,8 @@
width: 100%;
border-collapse: collapse;
background: rgba(0, 0, 0, 0.05);
border-left: 0px;
border-right: 0px;
border-left: 0;
border-right: 0;
border-top: 0;
border-bottom: 0;
margin: 0.5em 0;
@ -200,7 +200,7 @@
thead {
color: #000000;
text-shadow: none;
border-bottom: 0px;
border-bottom: 0;
background-color: #bdc8cc;
text-transform: none;
font-style: normal;
@ -209,7 +209,7 @@
th {
color: #000000;
text-shadow: none;
border-bottom: 0px;
border-bottom: 0;
background-color: #bdc8cc;
text-transform: none;
font-style: normal;
@ -246,7 +246,7 @@
width: 100%;
line-height: 18px;
margin-bottom: 15px;
border: 0 0 0 0;
border: 0;
border-bottom: none;
overflow-x: auto;
tbody {

View file

@ -185,7 +185,7 @@
display: inline-block;
text-align: right;
padding: 0px 3px;
padding: 0 3px;
&:last-child {
text-align: left;
@ -780,7 +780,7 @@
display: block;
width: 100%;
text-align: right;
padding: 0px 3px;
padding: 0 3px;
&:last-child {
text-align: left;
}
@ -956,7 +956,7 @@
display: block;
width: 100%;
text-align: right;
padding: 0px 3px;
padding: 0 3px;
&:last-child {
text-align: left;
}

View file

@ -231,7 +231,7 @@
padding-bottom: 4px;
.folder {
& > .folder-header {
line-height: default;
line-height: initial;
padding: 0 0 0 8px;
position: relative;
border: none;

View file

@ -302,7 +302,7 @@
}
.folder {
& > .folder-header {
line-height: default;
line-height: initial;
padding: 0 0 0 8px;
position: relative;
border: none;

View file

@ -641,8 +641,7 @@ export default class Actor5e extends Actor {
knownTechPowers++;
break;
}
}
continue;
}
}
ad.attributes.force.known.value = knownForcePowers;
ad.attributes.tech.known.value = knownTechPowers;

View file

@ -486,8 +486,8 @@ async function addFavorites(app, html, data) {
let v = (comps.vocal) ? "V" : "";
let s = (comps.somatic) ? "S" : "";
let m = (comps.material) ? "M" : "";
let c = (comps.concentration) ? true : false;
let r = (comps.ritual) ? true : false;
let c = !!(comps.concentration);
let r = !!(comps.ritual);
item.powerComps = `${v}${s}${m}`;
item.powerCon = c;
item.powerRit = r;
@ -643,11 +643,7 @@ async function addSubTabs(app, html, data) {
return tab.target == target
});
data.options.subTabs[subgroup].map(el => {
if(el.target == target) {
el.active = true;
} else {
el.active = false;
}
el.active = el.target == target;
return el;
})

View file

@ -1022,7 +1022,7 @@ SW5E.powerLevels = {
};
// TODO: This is used for spell scrolls, it maps the level to the compendium ID of the item the spell would be bound to
// We could use this wit, say, holocrons to produce scrolls
// We could use this with, say, holocrons to produce scrolls
/*
// Power Scroll Compendium UUIDs
SW5E.powerScrollIds = {
@ -1262,10 +1262,10 @@ SW5E.characterFlags = {
type: Boolean
},
"armorIntegration": {
name: "SW5E.FlagsArmorIntegration",
name: "SW5E.FlagsArmorIntegration",
hint: "SW5E.FlagsArmorIntegrationHint",
section: "SW5E.SpeciesTraits",
type: Boolean
type: Boolean
},
"businessSavvy": {
name: "SW5E.FlagsBusinessSavvy",
@ -1274,7 +1274,7 @@ SW5E.characterFlags = {
type: Boolean
},
"cannibalize": {
name: "SW5E.FlagsCannibalize",
name: "SW5E.FlagsCannibalize",
hint: "SW5E.FlagsCannibalizeHint",
section: "SW5E.SpeciesTraits",
type: Boolean
@ -1304,7 +1304,7 @@ SW5E.characterFlags = {
type: Boolean
},
"enthrallingPheromones": {
name: "SW5E.FlagsEnthrallingPheromones",
name: "SW5E.FlagsEnthrallingPheromones",
hint: "SW5E.FlagsEnthrallingPheromonesHint",
section: "SW5E.SpeciesTraits",
type: Boolean
@ -1328,13 +1328,13 @@ SW5E.characterFlags = {
type: Boolean
},
"foreignBiology": {
name: "SW5E.FlagsForeignBiology",
name: "SW5E.FlagsForeignBiology",
hint: "SW5E.FlagsForeignBiologyHint",
section: "SW5E.SpeciesTraits",
type: Boolean
},
"furyOfTheSmall": {
name: "SW5E.FlagsFuryOfTheSmall",
name: "SW5E.FlagsFuryOfTheSmall",
hint: "SW5E.FlagsFuryOfTheSmallHint",
section: "SW5E.SpeciesTraits",
type: Boolean
@ -1346,7 +1346,7 @@ SW5E.characterFlags = {
type: Boolean
},
"inscrutable": {
name: "SW5E.FlagsInscrutable",
name: "SW5E.FlagsInscrutable",
hint: "SW5E.FlagsInscrutableHint",
section: "SW5E.SpeciesTraits",
type: Boolean
@ -1376,7 +1376,7 @@ SW5E.characterFlags = {
type: Boolean
},
"multipleHearts": {
name: "SW5E.FlagsMultipleHearts",
name: "SW5E.FlagsMultipleHearts",
hint: "SW5E.FlagsMultipleHeartsHint",
section: "SW5E.SpeciesTraits",
type: Boolean
@ -1418,7 +1418,7 @@ SW5E.characterFlags = {
type: Boolean
},
"precognition": {
name: "SW5E.FlagsPrecognition",
name: "SW5E.FlagsPrecognition",
hint: "SW5E.FlagsPrecognitionHint",
section: "SW5E.SpeciesTraits",
type: Boolean
@ -1431,9 +1431,9 @@ SW5E.characterFlags = {
},
"puny": {
name: "SW5E.FlagsPuny",
hint: "SW5E.FlagsPunyHint",
section: "SW5E.SpeciesTraits",
type: Boolean
hint: "SW5E.FlagsPunyHint",
section: "SW5E.SpeciesTraits",
type: Boolean
},
"rapidReconstruction": {
name: "SW5E.FlagsRapidReconstruction",
@ -1442,7 +1442,7 @@ SW5E.characterFlags = {
type: Boolean
},
"rapidlyRegenerative": {
name: "SW5E.FlagsRapidlyRegenerative",
name: "SW5E.FlagsRapidlyRegenerative",
hint: "SW5E.FlagsRapidlyRegenerativeHint",
section: "SW5E.SpeciesTraits",
type: Boolean
@ -1454,7 +1454,7 @@ SW5E.characterFlags = {
type: Boolean
},
"savageAttacks": {
name: "SW5E.FlagsSavageAttacks",
name: "SW5E.FlagsSavageAttacks",
hint: "SW5E.FlagsSavageAttacksHint",
section: "SW5E.SpeciesTraits",
type: Boolean
@ -1466,15 +1466,15 @@ SW5E.characterFlags = {
type: Boolean
},
"strongLegged": {
name: "SW5E.FlagsStrongLegged",
name: "SW5E.FlagsStrongLegged",
hint: "SW5E.FlagsStrongLeggedHint",
section: "SW5E.SpeciesTraits",
type: Boolean
},
"sunlightSensitivity": {
name: "SW5E.FlagsSunlightSensitivity",
name: "SW5E.FlagsSunlightSensitivity",
hint: "SW5E.FlagsSunlightSensitivityHint",
section: "SW5E.SpeciesTraits",
section: "SW5E.SpeciesTraits",
type: Boolean
},
"surpriseAttack": {
@ -1496,7 +1496,7 @@ SW5E.characterFlags = {
type: Boolean
},
"tinker": {
name: "SW5E.FlagsTinker",
name: "SW5E.FlagsTinker",
hint: "SW5E.FlagsTinkerHint",
section: "SW5E.SpeciesTraits",
type: Boolean

View file

@ -102,7 +102,7 @@ body {
font-size: 13px;
color: #191813;
}
.sw5e input[type="text"]
.sw5e input[type="text"],
.sw5e select {
height: calc(100% - 2px);
border: 1px solid #7a7971;

View file

@ -555,7 +555,7 @@ input[type="reset"]:disabled {
padding-bottom: 4px;
}
.sidebar-tab .directory-list .folder > .folder-header {
line-height: default;
line-height: initial;
padding: 0 0 0 8px;
position: relative;
border: none;
@ -899,7 +899,7 @@ input[type="reset"]:disabled {
.sw5e.sheet.actor .swalt-sheet header .attributes .attribute-value .value-number {
display: inline-block;
text-align: right;
padding: 0px 3px;
padding: 0 3px;
}
.sw5e.sheet.actor .swalt-sheet header .attributes .attribute-value .value-number:last-child {
text-align: left;
@ -1439,7 +1439,7 @@ input[type="reset"]:disabled {
display: block;
width: 100%;
text-align: right;
padding: 0px 3px;
padding: 0 3px;
}
.sw5e.sheet.actor .swalt-sheet .tab.attributes .traits-resources section.resources .resource-items .resource .attribute-value .value-number:last-child {
text-align: left;
@ -1592,7 +1592,7 @@ input[type="reset"]:disabled {
display: block;
width: 100%;
text-align: right;
padding: 0px 3px;
padding: 0 3px;
}
.sw5e.sheet.actor .swalt-sheet .tab.force-powerbook .resource-items .resource .attribute-value .value-number:last-child,
.sw5e.sheet.actor .swalt-sheet .tab.tech-powerbook .resource-items .resource .attribute-value .value-number:last-child {

View file

@ -1285,16 +1285,16 @@
.sw5e.sheet.item .sheet-body .smalltable td:nth-child(even) {
width: 150px;
margin: 0.5em 0.5em;
padding: 0px 10px 0px 10px;
padding: 0 10px 0 10px;
text-align: left;
}
.sw5e.sheet.item .sheet-body .smalltable thead {
border-bottom: 0px;
border-bottom: 0;
}
.sw5e.sheet.item .sheet-body .smalltable th {
color: #000000;
text-shadow: none;
border-bottom: 0px;
border-bottom: 0;
background-color: #bdc8cc;
text-transform: none;
font-weight: bold;
@ -1308,12 +1308,12 @@
.sw5e.sheet.item .sheet-body .smalltable th:nth-child(even) {
width: 150px;
margin: 0.5em 0.5em;
padding: 0px 10px 0px 10px;
padding: 0 10px 0 10px;
text-align: left;
}
.sw5e.sheet.item .sheet-body .medtable table {
width: 500px;
border: 0px;
border: 0;
margin: 0.5em 0.5em;
}
.sw5e.sheet.item .sheet-body .medtable td:nth-child(odd) {
@ -1324,16 +1324,16 @@
.sw5e.sheet.item .sheet-body .medtable td:nth-child(even) {
width: 450px;
margin: 0.5em 0.5em;
padding: 0px 10px 0px 0px;
padding: 0 10px 0 0;
text-align: left;
}
.sw5e.sheet.item .sheet-body .medtable thead {
border-bottom: 0px;
border-bottom: 0;
}
.sw5e.sheet.item .sheet-body .medtable th {
color: #000000;
text-shadow: none;
border-bottom: 0px;
border-bottom: 0;
background-color: #bdc8cc;
text-transform: none;
font-weight: bold;
@ -1346,8 +1346,8 @@
text-align: left;
}
.sw5e.sheet.item .sheet-body .classtable blockquote {
border-left: 0px;
border-right: 0px;
border-left: 0;
border-right: 0;
background-color: #bdc8cc;
width: 600px;
}
@ -1361,8 +1361,8 @@
width: 100%;
border-collapse: collapse;
background: rgba(0, 0, 0, 0.05);
border-left: 0px;
border-right: 0px;
border-left: 0;
border-right: 0;
border-top: 0;
border-bottom: 0;
margin: 0.5em 0;
@ -1372,7 +1372,7 @@
.sw5e.sheet.item .sheet-body .classtable thead {
color: #000000;
text-shadow: none;
border-bottom: 0px;
border-bottom: 0;
background-color: #bdc8cc;
text-transform: none;
font-style: normal;
@ -1381,7 +1381,7 @@
.sw5e.sheet.item .sheet-body .classtable th {
color: #000000;
text-shadow: none;
border-bottom: 0px;
border-bottom: 0;
background-color: #bdc8cc;
text-transform: none;
font-style: normal;
@ -1416,7 +1416,7 @@
width: 100%;
line-height: 18px;
margin-bottom: 15px;
border: 0 0 0 0;
border: 0;
border-bottom: none;
overflow-x: auto;
}

View file

@ -150,4 +150,5 @@
<section class="tab biography" data-group="primary" data-tab="biography">
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-biography.html"}}
</section>
</section>
</form>

View file

@ -137,4 +137,5 @@
<section class="tab biography" data-group="primary" data-tab="biography">
{{> "systems/sw5e/templates/actors/newActor/parts/swalt-biography.html"}}
</section>
</section>
</form>

View file

@ -92,7 +92,7 @@
<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>
<h2 class="ability-name rollable">{{ability.label}}</h2>
<input class="ability-score" name="data.abilities.{{id}}.value" type="text"
value="{{ability.value}}" data-dtype="Number" placeholder="10" />
<div class="ability-modifiers">

View file

@ -5,7 +5,7 @@
<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>
<h2 class="ability-name rollable">{{ability.label}}</h2>
<input class="ability-score" name="data.abilities.{{id}}.value" type="text"
value="{{ability.value}}" data-dtype="Number" placeholder="10" />
<div class="ability-modifiers">

View file

@ -66,7 +66,7 @@
<!-- {{item.data.hitDice}} -->
</div>
<div class="item-detail player-class-levels">
<strong>Level {{item.data.levels}}</strong> &nbsp;&nbsp;<a class="increment-class-level"><i style="color:#c40f0f; text-shadow: 0px 1px 2px gray;" class="fas fa-arrow-up"></i></a> &nbsp;&nbsp;<a class="decrement-class-level"><i style="color:#c40f0f; text-shadow: 0px 1px 2px gray" class="fas fa-arrow-down"></i></a>
<strong>Level {{item.data.levels}}</strong> &nbsp;&nbsp;<a class="increment-class-level"><i style="color:#c40f0f; text-shadow: 0 1px 2px gray;" class="fas fa-arrow-up"></i></a> &nbsp;&nbsp;<a class="decrement-class-level"><i style="color:#c40f0f; text-shadow: 0 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}}>

View file

@ -66,7 +66,7 @@
<!-- {{item.data.hitDice}} -->
</div>
<div class="item-detail player-class-levels">
<strong>Level {{item.data.levels}}</strong> &nbsp;&nbsp;<a class="increment-class-level"><i style="color:#c40f0f; text-shadow: 0px 1px 2px gray;" class="fas fa-arrow-up"></i></a> &nbsp;&nbsp;<a class="decrement-class-level"><i style="color:#c40f0f; text-shadow: 0px 1px 2px gray" class="fas fa-arrow-down"></i></a>
<strong>Level {{item.data.levels}}</strong> &nbsp;&nbsp;<a class="increment-class-level"><i style="color:#c40f0f; text-shadow: 0 1px 2px gray;" class="fas fa-arrow-up"></i></a> &nbsp;&nbsp;<a class="decrement-class-level"><i style="color:#c40f0f; text-shadow: 0 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}}>

View file

@ -28,6 +28,4 @@
placeholder="{{localize 'SW5E.AdditionalNotes'}}" />
{{editor content=data.details.notes4.value target="data.details.notes4.value" button=true owner=owner editable=editable rollData=rollData}}
</section>
</section>
</div>

View file

@ -1,194 +1,193 @@
<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 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" data-action="rollDeathSave">{{ 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="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>
{{#if isNPC}}
</section>
<section class="counters">
<div class="counter">
<h4 class="death-save rollable" data-action="rollDeathSave">{{ 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="traits">
<label>
{{localize "SW5E.Powercasting"}}
<select class="powercasting" name="data.attributes.powercasting">
{{#select data.attributes.powercasting}}
{{#each config.powerMaxLevel as |id class|}}
<option value="{{class}}">{{class}}</option>
{{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>
{{#if isNPC}}
<label>
{{localize "SW5E.Powercasting"}}
<select class="powercasting" name="data.attributes.powercasting">
{{#select data.attributes.powercasting}}
{{#each config.powerMaxLevel as |id class|}}
<option value="{{class}}">{{class}}</option>
{{/each}}
{{/select}}
</select>
</label>
{{/if}}
<label class="{{#unless data.traits.senses}}inactive{{/unless}}">
{{#unless isVehicle}}
<label>{{localize "SW5E.Senses"}}</label>
<a class="config-button" data-action="senses" title="{{localize 'SW5E.SensesConfig'}}"><i class="fas fa-cog"></i></a>
<ul class="traits-list">
{{#each senses as |v k|}}
<li class="tag {{k}}">{{v}}</li>
{{/each}}
{{/select}}
</select>
</label>
{{/if}}
<label class="{{#unless data.traits.senses}}inactive{{/unless}}">
</ul>
{{/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>
{{#unless isVehicle}}
<label>{{localize "SW5E.Senses"}}</label>
<a class="config-button" data-action="senses" title="{{localize 'SW5E.SensesConfig'}}"><i class="fas fa-cog"></i></a>
<ul class="traits-list">
{{#each senses as |v k|}}
<li class="tag {{k}}">{{v}}</li>
{{/each}}
</ul>
<div class="form-group ">
<label>{{localize "SW5E.SpecialTraits"}}</label>
<a class="config-button" data-action="flags" title="{{localize 'SW5E.SpecialTraits'}}"><i class="fas fa-cog"></i></a>
</div>
{{/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>
<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>
{{#unless isVehicle}}
<div class="form-group ">
<label>{{localize "SW5E.SpecialTraits"}}</label>
<a class="config-button" data-action="flags" title="{{localize 'SW5E.SpecialTraits'}}"><i class="fas fa-cog"></i></a>
</div>
{{/unless}}
</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>
<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.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.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>
<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.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}}
{{/if}}
<ul class="passives"></ul>
</section>
<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>
<ul class="passives"></ul>
</section>
</section>

View file

@ -104,7 +104,7 @@
<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>
<h2 class="ability-name rollable">{{ability.label}}</h2>
<input class="ability-score" name="data.abilities.{{id}}.value" type="text"
value="{{ability.value}}" data-dtype="Number" placeholder="10" />
<div class="ability-modifiers">

View file

@ -28,6 +28,4 @@
placeholder="Additional Notes" />
{{editor content=data.details.notes4.value target="data.details.notes4.value" button=true owner=owner editable=editable}}
</section>
</section>
<!-- </div> -->

View file

@ -68,5 +68,6 @@
{{localize 'SW5E.ItemContainerWeightless'}}
</label>
</div>
</div>
</section>
</form>

View file

@ -98,11 +98,11 @@
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.capx.value" value="{{data.capx.value}}" /> &nbsp;&nbsp;
<strong style="color:#4b4a44; font-size: 11px;">{{ localize "SW5E.DmgRed" }}</strong>
<input style="min-width: 5px; max-width: 35px; padding: none;" type="text" name="data.attributes.dr" value="{{data.attributes.dr}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.attributes.dr" value="{{data.attributes.dr}}" /> &nbsp;&nbsp;
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.regrateco.value" value="{{data.regrateco.value}}" /> &nbsp;&nbsp;
</div>
{{!-- Starship Equipment Properties --}}
@ -112,15 +112,15 @@
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.cscap.value" value="{{data.cscap.value}}" /> &nbsp;&nbsp;
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.sscap.value" value="{{data.sscap.value}}" /> &nbsp;&nbsp;
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.fuelcostsmod.value" value="{{data.fuelcostsmod.value}}" /> &nbsp;&nbsp;
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.powdicerec.value" value="{{data.powdicerec.value}}" /> &nbsp;&nbsp;
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.hdclass.value" value="{{data.hdclass.value}}" /> &nbsp;&nbsp;
</div>
{{!-- Armor Class --}}

View file

@ -103,11 +103,11 @@
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.capx.value" value="{{data.capx.value}}" /> &nbsp;&nbsp;
<strong style="color:#4b4a44; font-size: 11px;">{{ localize "SW5E.DmgRed" }}</strong>
<input style="min-width: 5px; max-width: 35px; padding: none;" type="text" name="data.attributes.dr" value="{{data.attributes.dr}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.attributes.dr" value="{{data.attributes.dr}}" /> &nbsp;&nbsp;
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.regrateco.value" value="{{data.regrateco.value}}" /> &nbsp;&nbsp;
</div>
{{!-- Starship Equipment Properties --}}
@ -117,15 +117,15 @@
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.cscap.value" value="{{data.cscap.value}}" /> &nbsp;&nbsp;
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.sscap.value" value="{{data.sscap.value}}" /> &nbsp;&nbsp;
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.fuelcostsmod.value" value="{{data.fuelcostsmod.value}}" /> &nbsp;&nbsp;
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.powdicerec.value" value="{{data.powdicerec.value}}" /> &nbsp;&nbsp;
<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}}" /> &nbsp;&nbsp;
<input style="min-width: 5px; max-width: 35px; padding: 0;" type="text" name="data.hdclass.value" value="{{data.hdclass.value}}" /> &nbsp;&nbsp;
</div>
{{!-- Armor Class --}}