some re-org
This commit is contained in:
parent
09974cd323
commit
2813e5a694
@ -51,6 +51,9 @@ export class WarheroActorSheet extends ActorSheet {
|
|||||||
conditions: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getConditions()) ),
|
conditions: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getConditions()) ),
|
||||||
armors: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getArmors())),
|
armors: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getArmors())),
|
||||||
shields: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getShields())),
|
shields: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getShields())),
|
||||||
|
equippedWeapons: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getEquippedWeapons())),
|
||||||
|
equippedArmors: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getEquippedArmors())),
|
||||||
|
equippedShields: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getEquippedShields())),
|
||||||
powers: this.actor.sortPowers(),
|
powers: this.actor.sortPowers(),
|
||||||
subActors: duplicate(this.actor.getSubActors()),
|
subActors: duplicate(this.actor.getSubActors()),
|
||||||
competency: this.actor.getCompetency(),
|
competency: this.actor.getCompetency(),
|
||||||
|
@ -123,6 +123,11 @@ export class WarheroActor extends Actor {
|
|||||||
return comp;
|
return comp;
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
getEquippedArmors() {
|
||||||
|
let comp = duplicate(this.items.filter(item => item.type == 'armor' && item.system.slotlocation == 'armor') || []);
|
||||||
|
WarheroUtility.sortArrayObjectsByName(comp)
|
||||||
|
return comp;
|
||||||
|
}
|
||||||
getArmors() {
|
getArmors() {
|
||||||
let comp = duplicate(this.items.filter(item => item.type == 'armor') || []);
|
let comp = duplicate(this.items.filter(item => item.type == 'armor') || []);
|
||||||
WarheroUtility.sortArrayObjectsByName(comp)
|
WarheroUtility.sortArrayObjectsByName(comp)
|
||||||
@ -147,6 +152,11 @@ export class WarheroActor extends Actor {
|
|||||||
return schools
|
return schools
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
getEquippedShields() {
|
||||||
|
let comp = duplicate(this.items.filter(item => item.type == 'shield' && item.system.slotlocation == "shield") || []);
|
||||||
|
WarheroUtility.sortArrayObjectsByName(comp)
|
||||||
|
return comp;
|
||||||
|
}
|
||||||
getShields() {
|
getShields() {
|
||||||
let comp = duplicate(this.items.filter(item => item.type == 'shield') || []);
|
let comp = duplicate(this.items.filter(item => item.type == 'shield') || []);
|
||||||
WarheroUtility.sortArrayObjectsByName(comp)
|
WarheroUtility.sortArrayObjectsByName(comp)
|
||||||
@ -282,6 +292,14 @@ export class WarheroActor extends Actor {
|
|||||||
weapon.damageFormula = formula
|
weapon.damageFormula = formula
|
||||||
}
|
}
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
|
getEquippedWeapons() {
|
||||||
|
let comp = duplicate(this.items.filter(item => item.type == 'weapon' && (item.system.slotlocation == "weapon1" || item.system.slotlocation == "weapon2") ) || []);
|
||||||
|
for (let weapon of comp) {
|
||||||
|
this.prepareWeapon(weapon)
|
||||||
|
}
|
||||||
|
WarheroUtility.sortArrayObjectsByName(comp)
|
||||||
|
return comp;
|
||||||
|
}
|
||||||
getWeapons() {
|
getWeapons() {
|
||||||
let comp = duplicate(this.items.filter(item => item.type == 'weapon') || []);
|
let comp = duplicate(this.items.filter(item => item.type == 'weapon') || []);
|
||||||
for (let weapon of comp) {
|
for (let weapon of comp) {
|
||||||
|
@ -107,7 +107,7 @@
|
|||||||
"styles": [
|
"styles": [
|
||||||
"styles/simple.css"
|
"styles/simple.css"
|
||||||
],
|
],
|
||||||
"version": "10.0.41",
|
"version": "10.0.43",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "10",
|
"minimum": "10",
|
||||||
"verified": "10",
|
"verified": "10",
|
||||||
@ -115,7 +115,7 @@
|
|||||||
},
|
},
|
||||||
"title": "Warhero RPG",
|
"title": "Warhero RPG",
|
||||||
"manifest": "https://www.uberwald.me/gitea/public/fvtt-warhero/raw/branch/master/system.json",
|
"manifest": "https://www.uberwald.me/gitea/public/fvtt-warhero/raw/branch/master/system.json",
|
||||||
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-warhero/archive/fvtt-warhero-10.0.41.zip",
|
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-warhero/archive/fvtt-warhero-10.0.43.zip",
|
||||||
"url": "https://www.uberwald.me/gitea/public/fvtt-warhero",
|
"url": "https://www.uberwald.me/gitea/public/fvtt-warhero",
|
||||||
"background": "images/ui/warhero_welcome_page.webp",
|
"background": "images/ui/warhero_welcome_page.webp",
|
||||||
"id": "fvtt-warhero"
|
"id": "fvtt-warhero"
|
||||||
|
@ -62,8 +62,8 @@
|
|||||||
"style": "edit",
|
"style": "edit",
|
||||||
"hasmax": true,
|
"hasmax": true,
|
||||||
"isheader": true,
|
"isheader": true,
|
||||||
"max": 1,
|
"max": 30,
|
||||||
"value": 1
|
"value": 30
|
||||||
},
|
},
|
||||||
"knowledge": {
|
"knowledge": {
|
||||||
"label": "WH.ui.Knowledge",
|
"label": "WH.ui.Knowledge",
|
||||||
@ -71,15 +71,16 @@
|
|||||||
"style": "edit",
|
"style": "edit",
|
||||||
"hasmax": false,
|
"hasmax": false,
|
||||||
"roll": true,
|
"roll": true,
|
||||||
"max": 1,
|
"max": 0,
|
||||||
"value": 1
|
"value": 0
|
||||||
},
|
},
|
||||||
"def": {
|
"def": {
|
||||||
"label": "WH.ui.Defence",
|
"label": "WH.ui.Defence",
|
||||||
"abbrev": "def",
|
"abbrev": "def",
|
||||||
"style": "edit",
|
"style": "edit",
|
||||||
"max": 1,
|
"iscombat": true,
|
||||||
"value": 1
|
"max": 12,
|
||||||
|
"value": 12
|
||||||
},
|
},
|
||||||
"txcm": {
|
"txcm": {
|
||||||
"label": "WH.ui.Throw2HitM",
|
"label": "WH.ui.Throw2HitM",
|
||||||
@ -87,8 +88,9 @@
|
|||||||
"istxc": true,
|
"istxc": true,
|
||||||
"style": "edit",
|
"style": "edit",
|
||||||
"roll": true,
|
"roll": true,
|
||||||
"max": 1,
|
"iscombat": true,
|
||||||
"value": 1
|
"max": 0,
|
||||||
|
"value": 0
|
||||||
},
|
},
|
||||||
"txcr": {
|
"txcr": {
|
||||||
"label": "WH.ui.Throw2HitR",
|
"label": "WH.ui.Throw2HitR",
|
||||||
@ -96,8 +98,9 @@
|
|||||||
"istxc": true,
|
"istxc": true,
|
||||||
"style": "edit",
|
"style": "edit",
|
||||||
"roll": true,
|
"roll": true,
|
||||||
"max": 1,
|
"iscombat": true,
|
||||||
"value": 1
|
"max": 0,
|
||||||
|
"value": 0
|
||||||
},
|
},
|
||||||
"mana": {
|
"mana": {
|
||||||
"label": "WH.ui.Mana",
|
"label": "WH.ui.Mana",
|
||||||
@ -105,37 +108,38 @@
|
|||||||
"style": "edit",
|
"style": "edit",
|
||||||
"hasmax": true,
|
"hasmax": true,
|
||||||
"isheader": true,
|
"isheader": true,
|
||||||
"max": 1,
|
"max": 3,
|
||||||
"value": 1
|
"value": 3
|
||||||
},
|
},
|
||||||
"ini": {
|
"ini": {
|
||||||
"label": "WH.ui.Initiative",
|
"label": "WH.ui.Initiative",
|
||||||
"abbrev": "ini",
|
"abbrev": "ini",
|
||||||
"style": "edit",
|
"style": "edit",
|
||||||
|
"iscombat": true,
|
||||||
"roll": true,
|
"roll": true,
|
||||||
"max": 1,
|
"max": 0,
|
||||||
"value": 1
|
"value": 0
|
||||||
},
|
},
|
||||||
"movearth": {
|
"movearth": {
|
||||||
"label": "WH.ui.Movement",
|
"label": "WH.ui.Movement",
|
||||||
"abbrev": "mov",
|
"abbrev": "mov",
|
||||||
"style": "edit",
|
"style": "edit",
|
||||||
"max": 1,
|
"max": 6,
|
||||||
"value": 1
|
"value": 6
|
||||||
},
|
},
|
||||||
"movswim": {
|
"movswim": {
|
||||||
"label": "WH.ui.MovementSwim",
|
"label": "WH.ui.MovementSwim",
|
||||||
"abbrev": "mov",
|
"abbrev": "mov",
|
||||||
"style": "edit",
|
"style": "edit",
|
||||||
"max": 1,
|
"max": 0,
|
||||||
"value": 1
|
"value": 0
|
||||||
},
|
},
|
||||||
"movfly": {
|
"movfly": {
|
||||||
"label": "WH.ui.MovementFly",
|
"label": "WH.ui.MovementFly",
|
||||||
"abbrev": "mov",
|
"abbrev": "mov",
|
||||||
"style": "edit",
|
"style": "edit",
|
||||||
"max": 1,
|
"max": 0,
|
||||||
"value": 1
|
"value": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"secondary": {
|
"secondary": {
|
||||||
@ -149,6 +153,7 @@
|
|||||||
"malusmultiweapon": {
|
"malusmultiweapon": {
|
||||||
"label": "WH.ui.malusmultiweapon",
|
"label": "WH.ui.malusmultiweapon",
|
||||||
"abbrev": "malusmultiweapon",
|
"abbrev": "malusmultiweapon",
|
||||||
|
"iscombat": true,
|
||||||
"style": "edit",
|
"style": "edit",
|
||||||
"value": 0
|
"value": 0
|
||||||
},
|
},
|
||||||
@ -156,6 +161,7 @@
|
|||||||
"label": "WH.ui.drbonus",
|
"label": "WH.ui.drbonus",
|
||||||
"abbrev": "drbonus",
|
"abbrev": "drbonus",
|
||||||
"style": "edit",
|
"style": "edit",
|
||||||
|
"iscombat": true,
|
||||||
"value": 0
|
"value": 0
|
||||||
},
|
},
|
||||||
"drbonustotal": {
|
"drbonustotal": {
|
||||||
@ -163,12 +169,14 @@
|
|||||||
"abbrev": "drbonustotal",
|
"abbrev": "drbonustotal",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"style": "edit",
|
"style": "edit",
|
||||||
|
"iscombat": true,
|
||||||
"value": 0
|
"value": 0
|
||||||
},
|
},
|
||||||
"parrybonus": {
|
"parrybonus": {
|
||||||
"label": "WH.ui.parrybonus",
|
"label": "WH.ui.parrybonus",
|
||||||
"abbrev": "parrybonus",
|
"abbrev": "parrybonus",
|
||||||
"isparrybonus": true,
|
"isparrybonus": true,
|
||||||
|
"iscombat": true,
|
||||||
"style": "edit",
|
"style": "edit",
|
||||||
"value": 0
|
"value": 0
|
||||||
},
|
},
|
||||||
@ -177,6 +185,7 @@
|
|||||||
"abbrev": "parrybonustotal",
|
"abbrev": "parrybonustotal",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"style": "edit",
|
"style": "edit",
|
||||||
|
"iscombat": true,
|
||||||
"roll": true,
|
"roll": true,
|
||||||
"value": 0
|
"value": 0
|
||||||
},
|
},
|
||||||
|
@ -27,7 +27,8 @@
|
|||||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{{#each classes as |class idx|}}
|
{{#if (count classes)}}
|
||||||
|
{{#each classes as |class idx|}}
|
||||||
<li class="item flexrow list-item" data-item-id="{{class._id}}">
|
<li class="item flexrow list-item" data-item-id="{{class._id}}">
|
||||||
<label class="item-field-label-medium">{{localize "WH.ui.class"}}</label>
|
<label class="item-field-label-medium">{{localize "WH.ui.class"}}</label>
|
||||||
<a class="item-edit"><img class="sheet-competence-img" src="{{class.img}}"></a>
|
<a class="item-edit"><img class="sheet-competence-img" src="{{class.img}}"></a>
|
||||||
@ -36,7 +37,17 @@
|
|||||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
{{else}}
|
||||||
|
<li class="item flexrow list-item" data-item-id="{{class._id}}">
|
||||||
|
<label class="item-field-label-medium">{{localize "WH.ui.class"}}</label>
|
||||||
|
<a class="item-edit"><img class="sheet-competence-img" src="{{class.img}}"></a>
|
||||||
|
<input type="text" class="item-field-label-medium" disabled value="{{class.name}}" data-dtype="String" />
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/if}}
|
||||||
<li class="item flexrow list-item" >
|
<li class="item flexrow list-item" >
|
||||||
<label class="item-field-label-medium">{{localize "WH.ui.religion"}}</label>
|
<label class="item-field-label-medium">{{localize "WH.ui.religion"}}</label>
|
||||||
<input type="text" class="item-field-label-medium" name="system.biodata.religion" value="{{system.biodata.religion}}" data-dtype="String" />
|
<input type="text" class="item-field-label-medium" name="system.biodata.religion" value="{{system.biodata.religion}}" data-dtype="String" />
|
||||||
@ -85,57 +96,14 @@
|
|||||||
<div class="ability-item">
|
<div class="ability-item">
|
||||||
<ul>
|
<ul>
|
||||||
{{#each system.attributes as |attr key|}}
|
{{#each system.attributes as |attr key|}}
|
||||||
|
{{#if (not attr.iscombat)}}
|
||||||
{{#if (not attr.isheader)}}
|
{{#if (not attr.isheader)}}
|
||||||
{{> systems/fvtt-warhero/templates/partial-actor-stat-block.html stat=attr key=key path="attributes" fieldClass="item-field-label-vlong"}}
|
{{> systems/fvtt-warhero/templates/partial-actor-stat-block.html stat=attr key=key path="attributes" fieldClass="item-field-label-vlong"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/if}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div>
|
|
||||||
<ul class="stat-list alternate-list">
|
|
||||||
<li class="item flexrow list-item items-title-bg">
|
|
||||||
<span class="item-name-label-header-long">
|
|
||||||
<h3><label class="items-title-text">{{localize "WH.ui.competency"}}</label></h3>
|
|
||||||
</span>
|
|
||||||
</li>
|
|
||||||
{{#each competency.weapons as |cdata key|}}
|
|
||||||
{{#if cdata}}
|
|
||||||
<li class="item flexrow list-item list-item-shadow" data-item-id="{{language._id}}">
|
|
||||||
<span class="item-name-label-long">{{localize "WH.ui.weapons"}} {{localize cdata.label}}</span>
|
|
||||||
</li>
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
{{#each competency.shields as |cdata key|}}
|
|
||||||
{{#if cdata}}
|
|
||||||
<li class="item flexrow list-item list-item-shadow" data-item-id="{{language._id}}">
|
|
||||||
<span class="item-name-label-long">{{localize "WH.ui.shields"}} {{localize cdata.label}}</span>
|
|
||||||
</li>
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
{{#each competency.armors as |cdata key|}}
|
|
||||||
{{#if cdata}}
|
|
||||||
<li class="item flexrow list-item list-item-shadow" data-item-id="{{language._id}}">
|
|
||||||
<span class="item-name-label-long">{{localize "WH.ui.armors"}} {{localize cdata.label}}</span>
|
|
||||||
</li>
|
|
||||||
{{/if}}
|
|
||||||
{{/each}}
|
|
||||||
|
|
||||||
{{#each compentencyItems as |comp key|}}
|
|
||||||
<li class="item flexrow list-item list-item-shadow" data-item-id="{{comp._id}}">
|
|
||||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
|
||||||
src="{{comp.img}}" /></a>
|
|
||||||
<span class="item-name-label-long">{{comp.name}}</span>
|
|
||||||
|
|
||||||
<div class="item-filler"> </div>
|
|
||||||
<div class="item-controls item-controls-fixed">
|
|
||||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
{{/each}}
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ability-item">
|
<div class="ability-item">
|
||||||
@ -151,7 +119,9 @@
|
|||||||
|
|
||||||
|
|
||||||
{{#each system.secondary as |second key|}}
|
{{#each system.secondary as |second key|}}
|
||||||
{{> systems/fvtt-warhero/templates/partial-actor-stat-block.html stat=second key=key path="secondary" fieldClass="item-field-label-vlong"}}
|
{{#if (not second.iscombat)}}
|
||||||
|
{{> systems/fvtt-warhero/templates/partial-actor-stat-block.html stat=second key=key path="secondary" fieldClass="item-field-label-vlong"}}
|
||||||
|
{{/if}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
@ -186,8 +156,28 @@
|
|||||||
|
|
||||||
{{!-- Combat Tab --}}
|
{{!-- Combat Tab --}}
|
||||||
<div class="tab combat" data-group="primary" data-tab="combat">
|
<div class="tab combat" data-group="primary" data-tab="combat">
|
||||||
|
|
||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
|
|
||||||
|
<div class="grid grid2col">
|
||||||
|
<ul class="stat-list alternate-list">
|
||||||
|
{{#with system.attributes.def as |stat|}}
|
||||||
|
{{> systems/fvtt-warhero/templates/partial-actor-stat-block.html stat=stat key="def" path="attributes" fieldClass="item-field-label-vlong"}}
|
||||||
|
{{/with}}
|
||||||
|
{{#with system.attributes.ini as |stat|}}
|
||||||
|
{{> systems/fvtt-warhero/templates/partial-actor-stat-block.html stat=stat key="ini" path="attributes" fieldClass="item-field-label-vlong"}}
|
||||||
|
{{/with}}
|
||||||
|
</ul>
|
||||||
|
<ul class="stat-list alternate-list">
|
||||||
|
{{#with system.attributes.txcm as |stat|}}
|
||||||
|
{{> systems/fvtt-warhero/templates/partial-actor-stat-block.html stat=stat key="txcm" path="attributes" fieldClass="item-field-label-vlong"}}
|
||||||
|
{{/with}}
|
||||||
|
{{#with system.attributes.txcr as |stat|}}
|
||||||
|
{{> systems/fvtt-warhero/templates/partial-actor-stat-block.html stat=stat key="txch" path="attributes" fieldClass="item-field-label-vlong"}}
|
||||||
|
{{/with}}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<ul class="stat-list alternate-list">
|
<ul class="stat-list alternate-list">
|
||||||
<li class="item flexrow list-item items-title-bg">
|
<li class="item flexrow list-item items-title-bg">
|
||||||
@ -201,7 +191,7 @@
|
|||||||
<label class="short-label">{{localize "WH.ui.Damage"}}</label>
|
<label class="short-label">{{localize "WH.ui.Damage"}}</label>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
{{#each weapons as |weapon key|}}
|
{{#each equippedWeapons as |weapon key|}}
|
||||||
<li class="item flexrow list-item list-item-shadow" data-item-id="{{weapon._id}}">
|
<li class="item flexrow list-item list-item-shadow" data-item-id="{{weapon._id}}">
|
||||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
src="{{weapon.img}}" /></a>
|
src="{{weapon.img}}" /></a>
|
||||||
@ -228,6 +218,19 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="grid grid2col">
|
||||||
|
<ul class="stat-list alternate-list">
|
||||||
|
{{#with system.secondary.parrybonus as |stat|}}
|
||||||
|
{{> systems/fvtt-warhero/templates/partial-actor-stat-block.html stat=stat key="parrybonus" path="secondary" fieldClass="item-field-label-vlong"}}
|
||||||
|
{{/with}}
|
||||||
|
</ul>
|
||||||
|
<ul class="stat-list alternate-list">
|
||||||
|
{{#with system.secondary.parrybonustotal as |stat|}}
|
||||||
|
{{> systems/fvtt-warhero/templates/partial-actor-stat-block.html stat=stat key="parrybonustotal" path="secondary" fieldClass="item-field-label-vlong"}}
|
||||||
|
{{/with}}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<ul class="stat-list alternate-list">
|
<ul class="stat-list alternate-list">
|
||||||
<li class="item flexrow list-item items-title-bg">
|
<li class="item flexrow list-item items-title-bg">
|
||||||
@ -241,7 +244,7 @@
|
|||||||
<label class="short-label">{{localize "WH.ui.parrybonus"}}</label>
|
<label class="short-label">{{localize "WH.ui.parrybonus"}}</label>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
{{#each shields as |shield key|}}
|
{{#each equippedShields as |shield key|}}
|
||||||
<li class="item flexrow list-item list-item-shadow" data-item-id="{{shield._id}}">
|
<li class="item flexrow list-item list-item-shadow" data-item-id="{{shield._id}}">
|
||||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
src="{{shield.img}}" /></a>
|
src="{{shield.img}}" /></a>
|
||||||
@ -260,6 +263,19 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="grid grid2col">
|
||||||
|
<ul class="stat-list alternate-list">
|
||||||
|
{{#with system.secondary.drbonus as |stat|}}
|
||||||
|
{{> systems/fvtt-warhero/templates/partial-actor-stat-block.html stat=stat key="drbonus" path="secondary" fieldClass="item-field-label-vlong"}}
|
||||||
|
{{/with}}
|
||||||
|
</ul>
|
||||||
|
<ul class="stat-list alternate-list">
|
||||||
|
{{#with system.secondary.drbonustotal as |stat|}}
|
||||||
|
{{> systems/fvtt-warhero/templates/partial-actor-stat-block.html stat=stat key="drbonustotal" path="secondary" fieldClass="item-field-label-vlong"}}
|
||||||
|
{{/with}}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<ul class="stat-list alternate-list">
|
<ul class="stat-list alternate-list">
|
||||||
<li class="item flexrow list-item items-title-bg">
|
<li class="item flexrow list-item items-title-bg">
|
||||||
@ -273,7 +289,7 @@
|
|||||||
<label class="short-label">{{localize "WH.ui.damagereduction"}}</label>
|
<label class="short-label">{{localize "WH.ui.damagereduction"}}</label>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
{{#each armors as |armor key|}}
|
{{#each equippedArmors as |armor key|}}
|
||||||
<li class="item flexrow list-item list-item-shadow" data-item-id="{{armor._id}}">
|
<li class="item flexrow list-item list-item-shadow" data-item-id="{{armor._id}}">
|
||||||
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
src="{{armor.img}}" /></a>
|
src="{{armor.img}}" /></a>
|
||||||
@ -292,6 +308,51 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<ul class="stat-list alternate-list">
|
||||||
|
<li class="item flexrow list-item items-title-bg">
|
||||||
|
<span class="item-name-label-header-long">
|
||||||
|
<h3><label class="items-title-text">{{localize "WH.ui.competency"}}</label></h3>
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
|
{{#each competency.weapons as |cdata key|}}
|
||||||
|
{{#if cdata}}
|
||||||
|
<li class="item flexrow list-item list-item-shadow" data-item-id="{{language._id}}">
|
||||||
|
<span class="item-name-label-long">{{localize "WH.ui.weapons"}} {{localize cdata.label}}</span>
|
||||||
|
</li>
|
||||||
|
{{/if}}
|
||||||
|
{{/each}}
|
||||||
|
{{#each competency.shields as |cdata key|}}
|
||||||
|
{{#if cdata}}
|
||||||
|
<li class="item flexrow list-item list-item-shadow" data-item-id="{{language._id}}">
|
||||||
|
<span class="item-name-label-long">{{localize "WH.ui.shields"}} {{localize cdata.label}}</span>
|
||||||
|
</li>
|
||||||
|
{{/if}}
|
||||||
|
{{/each}}
|
||||||
|
{{#each competency.armors as |cdata key|}}
|
||||||
|
{{#if cdata}}
|
||||||
|
<li class="item flexrow list-item list-item-shadow" data-item-id="{{language._id}}">
|
||||||
|
<span class="item-name-label-long">{{localize "WH.ui.armors"}} {{localize cdata.label}}</span>
|
||||||
|
</li>
|
||||||
|
{{/if}}
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
{{#each compentencyItems as |comp key|}}
|
||||||
|
<li class="item flexrow list-item list-item-shadow" data-item-id="{{comp._id}}">
|
||||||
|
<a class="item-edit item-name-img" title="Edit Item"><img class="sheet-competence-img"
|
||||||
|
src="{{comp.img}}" /></a>
|
||||||
|
<span class="item-name-label-long">{{comp.name}}</span>
|
||||||
|
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user