2021-06-26 22:02:00 +02:00
|
|
|
{{!--
|
|
|
|
SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
|
|
SPDX-FileCopyrightText: 2021 Gesina Schwalbe
|
|
|
|
SPDX-FileCopyrightText: 2021 Siegfried Krug
|
|
|
|
|
|
|
|
SPDX-License-Identifier: MIT
|
|
|
|
--}}
|
|
|
|
|
2021-01-18 19:59:25 +01:00
|
|
|
{{!-- WEAPONS --}}
|
2021-07-23 01:11:42 +02:00
|
|
|
<h4 class="ds4-embedded-document-list-title">{{localize 'DS4.ItemTypeWeaponPlural'}}</h4>
|
2021-02-26 01:38:53 +01:00
|
|
|
{{#unless (isEmpty itemsByType.weapon)}}
|
2021-07-23 01:11:42 +02:00
|
|
|
<ol class="ds4-embedded-document-list ds4-embedded-document-list--weapon item-list">
|
2021-11-06 01:41:31 +01:00
|
|
|
{{#> systems/ds4/templates/sheets/actor/components/item-list-header.hbs isEquipable=true hasQuantity=true
|
|
|
|
type='weapon'}}
|
2021-02-26 01:08:55 +01:00
|
|
|
{{!-- attack type --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="system.attackType"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.SortByAttackType'}}">
|
|
|
|
{{localize
|
|
|
|
'DS4.AttackTypeAbbr'}}</div>
|
2021-02-26 01:08:55 +01:00
|
|
|
|
|
|
|
{{!-- weapon bonus --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="system.weaponBonus"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.SortByWeaponBonus'}}">
|
2021-01-18 19:59:25 +01:00
|
|
|
{{localize 'DS4.WeaponBonusAbbr'}}
|
|
|
|
</div>
|
2021-02-26 01:08:55 +01:00
|
|
|
|
|
|
|
{{!-- opponent defense --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="system.opponentDefense"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.SortByOpponentDefense'}}">
|
2021-01-18 19:59:25 +01:00
|
|
|
{{localize 'DS4.OpponentDefenseAbbr'}}
|
|
|
|
</div>
|
2021-04-13 21:40:52 +02:00
|
|
|
{{/systems/ds4/templates/sheets/actor/components/item-list-header.hbs}}
|
2021-02-26 01:08:55 +01:00
|
|
|
|
|
|
|
{{#each itemsByType.weapon as |itemData id|}}
|
2021-04-13 21:40:52 +02:00
|
|
|
{{#> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData isEquipable=true
|
|
|
|
hasQuantity=true}}
|
2021-02-26 01:08:55 +01:00
|
|
|
{{!-- attack type --}}
|
2021-11-06 01:41:31 +01:00
|
|
|
<img class="ds4-embedded-document-list__image"
|
2022-11-21 03:00:46 +01:00
|
|
|
src="{{lookup @root/config.icons.attackTypes itemData.system.attackType}}"
|
|
|
|
title="{{lookup @root/config.i18n.attackTypes itemData.system.attackType}}" />
|
2021-02-26 01:08:55 +01:00
|
|
|
|
|
|
|
{{!-- weapon bonus --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div>{{ itemData.system.weaponBonus}}</div>
|
2021-02-26 01:08:55 +01:00
|
|
|
|
|
|
|
{{!-- opponent defense --}}
|
2022-11-09 03:02:27 +01:00
|
|
|
<div>
|
2022-11-21 03:00:46 +01:00
|
|
|
{{#if itemData.system.opponentDefenseForAttackType.melee includeZero=true}}
|
|
|
|
{{#if itemData.system.opponentDefenseForAttackType.ranged includeZero=true}}
|
2022-11-09 03:02:27 +01:00
|
|
|
<span
|
2022-11-21 03:00:46 +01:00
|
|
|
title="{{localize 'DS4.OpponentDefenseMelee'}}">{{itemData.system.opponentDefenseForAttackType.melee}}</span>/<span
|
|
|
|
title="{{localize 'DS4.OpponentDefenseRanged'}}">{{itemData.system.opponentDefenseForAttackType.ranged}}</span>
|
2022-11-09 03:02:27 +01:00
|
|
|
{{else}}
|
2022-11-21 03:00:46 +01:00
|
|
|
{{itemData.system.opponentDefenseForAttackType.melee}}
|
2022-11-09 03:02:27 +01:00
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
2022-11-21 03:00:46 +01:00
|
|
|
{{itemData.system.opponentDefenseForAttackType.ranged}}
|
2022-11-09 03:02:27 +01:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2021-04-13 21:40:52 +02:00
|
|
|
{{/systems/ds4/templates/sheets/actor/components/item-list-entry.hbs}}
|
2021-01-18 19:59:25 +01:00
|
|
|
{{/each}}
|
|
|
|
</ol>
|
2021-02-26 01:38:53 +01:00
|
|
|
{{/unless}}
|
2022-01-21 03:22:17 +01:00
|
|
|
{{> systems/ds4/templates/sheets/shared/components/add-button.hbs title='DS4.UserInteractionAddItemTitle'
|
2021-07-22 02:02:35 +02:00
|
|
|
documentType='item' type='weapon'}}
|
2021-01-18 19:59:25 +01:00
|
|
|
|
|
|
|
{{!-- ARMOR --}}
|
2021-07-23 01:11:42 +02:00
|
|
|
<h4 class="ds4-embedded-document-list-title">{{localize 'DS4.ItemTypeArmorPlural'}}</h4>
|
2021-02-26 01:38:53 +01:00
|
|
|
{{#unless (isEmpty itemsByType.armor)}}
|
2021-07-23 01:11:42 +02:00
|
|
|
<ol class="ds4-embedded-document-list ds4-embedded-document-list--armor item-list">
|
2021-11-06 01:41:31 +01:00
|
|
|
{{#> systems/ds4/templates/sheets/actor/components/item-list-header.hbs isEquipable=true hasQuantity=true
|
|
|
|
type="armor"}}
|
2021-02-26 01:08:55 +01:00
|
|
|
{{!-- armor material type --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="system.armorMaterialType"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.SortByArmorMaterialType'}}">{{localize 'DS4.ArmorMaterialTypeAbbr'}}</div>
|
2021-02-26 01:08:55 +01:00
|
|
|
|
|
|
|
{{!-- armor type --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="system.armorType"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.SortByArmorType'}}">{{localize 'DS4.ArmorTypeAbbr'}}</div>
|
2021-02-26 01:08:55 +01:00
|
|
|
|
|
|
|
{{!-- armor value --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="system.armorValue"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.SortByArmorValue'}}">
|
2021-01-18 19:59:25 +01:00
|
|
|
{{localize 'DS4.ArmorValueAbbr'}}
|
|
|
|
</div>
|
2021-04-13 21:40:52 +02:00
|
|
|
{{/systems/ds4/templates/sheets/actor/components/item-list-header.hbs}}
|
2021-02-26 01:08:55 +01:00
|
|
|
|
|
|
|
{{#each itemsByType.armor as |itemData id|}}
|
2021-04-13 21:40:52 +02:00
|
|
|
{{#> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData isEquipable=true
|
|
|
|
hasQuantity=true}}
|
2021-02-26 01:08:55 +01:00
|
|
|
{{!-- armor material type --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div title="{{lookup @root/config.i18n.armorMaterialTypes itemData.system.armorMaterialType}}">
|
|
|
|
{{lookup @root/config.i18n.armorMaterialTypesAbbr itemData.system.armorMaterialType}}
|
2021-01-18 19:59:25 +01:00
|
|
|
</div>
|
2021-02-26 01:08:55 +01:00
|
|
|
|
|
|
|
{{!-- armor type --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div title="{{lookup @root/config.i18n.armorTypes itemData.system.armorType}}">
|
|
|
|
{{lookup @root/config.i18n.armorTypesAbbr itemData.system.armorType}}
|
2021-01-18 19:59:25 +01:00
|
|
|
</div>
|
2021-02-26 01:08:55 +01:00
|
|
|
|
|
|
|
{{!-- armor value --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div>{{ itemData.system.armorValue}}</div>
|
2021-04-13 21:40:52 +02:00
|
|
|
{{/systems/ds4/templates/sheets/actor/components/item-list-entry.hbs}}
|
2021-01-18 19:59:25 +01:00
|
|
|
{{/each}}
|
|
|
|
</ol>
|
2021-02-26 01:38:53 +01:00
|
|
|
{{/unless}}
|
2022-01-21 03:22:17 +01:00
|
|
|
{{> systems/ds4/templates/sheets/shared/components/add-button.hbs title='DS4.UserInteractionAddItemTitle'
|
2021-07-22 02:02:35 +02:00
|
|
|
documentType='item' type='armor'}}
|
2021-01-18 19:59:25 +01:00
|
|
|
|
|
|
|
{{!-- SHIELD --}}
|
2021-07-23 01:11:42 +02:00
|
|
|
<h4 class="ds4-embedded-document-list-title">{{localize 'DS4.ItemTypeShieldPlural'}}</h4>
|
2021-02-26 01:38:53 +01:00
|
|
|
{{#unless (isEmpty itemsByType.shield)}}
|
2021-07-23 01:11:42 +02:00
|
|
|
<ol class="ds4-embedded-document-list ds4-embedded-document-list--shield item-list">
|
2021-11-06 01:41:31 +01:00
|
|
|
{{#> systems/ds4/templates/sheets/actor/components/item-list-header.hbs isEquipable=true hasQuantity=true
|
|
|
|
type='shield'}}
|
2021-02-26 01:08:55 +01:00
|
|
|
{{!-- armor value --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="system.armorValue"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.SortByArmorValue'}}">
|
2021-01-18 19:59:25 +01:00
|
|
|
{{localize 'DS4.ArmorValueAbbr'}}
|
|
|
|
</div>
|
2021-04-13 21:40:52 +02:00
|
|
|
{{/systems/ds4/templates/sheets/actor/components/item-list-header.hbs}}
|
2021-02-26 01:08:55 +01:00
|
|
|
{{#each itemsByType.shield as |itemData id|}}
|
2021-04-13 21:40:52 +02:00
|
|
|
{{#> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData isEquipable=true
|
|
|
|
hasQuantity=true}}
|
2021-02-26 01:08:55 +01:00
|
|
|
{{!-- armor value --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div>{{itemData.system.armorValue}}</div>
|
2021-04-13 21:40:52 +02:00
|
|
|
{{/systems/ds4/templates/sheets/actor/components/item-list-entry.hbs}}
|
2021-01-18 19:59:25 +01:00
|
|
|
{{/each}}
|
|
|
|
</ol>
|
2021-02-26 01:38:53 +01:00
|
|
|
{{/unless}}
|
2022-01-21 03:22:17 +01:00
|
|
|
{{> systems/ds4/templates/sheets/shared/components/add-button.hbs title='DS4.UserInteractionAddItemTitle'
|
2021-07-22 02:02:35 +02:00
|
|
|
documentType='item' type='shield'}}
|
2021-01-18 19:59:25 +01:00
|
|
|
|
2021-02-21 03:40:54 +01:00
|
|
|
{{!-- EQUIPMENT --}}
|
2021-07-23 01:11:42 +02:00
|
|
|
<h4 class="ds4-embedded-document-list-title">{{localize 'DS4.ItemTypeEquipmentPlural'}}</h4>
|
2021-02-26 01:38:53 +01:00
|
|
|
{{#unless (isEmpty itemsByType.equipment)}}
|
2021-07-23 01:11:42 +02:00
|
|
|
<ol class="ds4-embedded-document-list ds4-embedded-document-list--equipment item-list">
|
2021-11-06 01:41:31 +01:00
|
|
|
{{#> systems/ds4/templates/sheets/actor/components/item-list-header.hbs isEquipable=true hasQuantity=true
|
|
|
|
type='equipment'}}
|
2021-02-26 01:08:55 +01:00
|
|
|
{{!-- storage location --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="system.storageLocation"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.SortByStorageLocation'}}">{{localize 'DS4.StorageLocation'}}</div>
|
2021-04-13 21:40:52 +02:00
|
|
|
{{/systems/ds4/templates/sheets/actor/components/item-list-header.hbs}}
|
2021-02-26 01:08:55 +01:00
|
|
|
{{#each itemsByType.equipment as |itemData id|}}
|
2021-04-13 21:40:52 +02:00
|
|
|
{{#> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData isEquipable=true
|
|
|
|
hasQuantity=true}}
|
2021-02-26 01:08:55 +01:00
|
|
|
{{!-- storage location --}}
|
2021-11-06 01:41:31 +01:00
|
|
|
<input class="ds4-embedded-document-list__editable change-item" type="text"
|
2022-11-21 03:00:46 +01:00
|
|
|
value="{{itemData.system.storageLocation}}" data-dtype="String" data-property="system.storageLocation"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.StorageLocation'}}">
|
2021-04-13 21:40:52 +02:00
|
|
|
{{/systems/ds4/templates/sheets/actor/components/item-list-entry.hbs}}
|
2021-01-18 19:59:25 +01:00
|
|
|
{{/each}}
|
|
|
|
</ol>
|
2021-02-26 01:38:53 +01:00
|
|
|
{{/unless}}
|
2022-01-21 03:22:17 +01:00
|
|
|
{{> systems/ds4/templates/sheets/shared/components/add-button.hbs title='DS4.UserInteractionAddItemTitle'
|
2021-07-22 02:02:35 +02:00
|
|
|
documentType='item' type='equipment'}}
|
2021-01-18 19:59:25 +01:00
|
|
|
|
2021-02-21 03:40:54 +01:00
|
|
|
{{!-- LOOT --}}
|
2021-07-23 01:11:42 +02:00
|
|
|
<h4 class="ds4-embedded-document-list-title">{{localize 'DS4.ItemTypeLootPlural'}}</h4>
|
2021-02-26 01:38:53 +01:00
|
|
|
{{#unless (isEmpty itemsByType.loot)}}
|
2021-07-23 01:11:42 +02:00
|
|
|
<ol class="ds4-embedded-document-list ds4-embedded-document-list--loot item-list">
|
2021-11-06 01:41:31 +01:00
|
|
|
{{#> systems/ds4/templates/sheets/actor/components/item-list-header.hbs hasQuantity=true type='loot'}}
|
2021-02-26 01:08:55 +01:00
|
|
|
{{!-- storage location --}}
|
2022-11-21 03:00:46 +01:00
|
|
|
<div class="ds4-embedded-document-list__clickable sort-items" data-data-path="system.storageLocation"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.SortByStorageLocation'}}">{{localize 'DS4.StorageLocation'}}</div>
|
2021-04-13 21:40:52 +02:00
|
|
|
{{/systems/ds4/templates/sheets/actor/components/item-list-header.hbs}}
|
2021-02-26 01:08:55 +01:00
|
|
|
{{#each itemsByType.loot as |itemData id|}}
|
2021-04-13 21:40:52 +02:00
|
|
|
{{#> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData hasQuantity=true}}
|
2021-02-26 01:08:55 +01:00
|
|
|
{{!-- storage location --}}
|
2021-11-06 01:41:31 +01:00
|
|
|
<input class="ds4-embedded-document-list__editable change-item" type="text"
|
2022-11-21 03:00:46 +01:00
|
|
|
value="{{itemData.system.storageLocation}}" data-dtype="String" data-property="system.storageLocation"
|
2021-11-06 01:41:31 +01:00
|
|
|
title="{{localize 'DS4.StorageLocation'}}">
|
2021-04-13 21:40:52 +02:00
|
|
|
{{/systems/ds4/templates/sheets/actor/components/item-list-entry.hbs}}
|
2021-01-18 19:59:25 +01:00
|
|
|
{{/each}}
|
|
|
|
</ol>
|
2021-02-26 01:38:53 +01:00
|
|
|
{{/unless}}
|
2022-01-21 03:22:17 +01:00
|
|
|
{{> systems/ds4/templates/sheets/shared/components/add-button.hbs title='DS4.UserInteractionAddItemTitle'
|
2021-07-22 02:02:35 +02:00
|
|
|
documentType='item' type='loot'}}
|