Merge branch '10-implement-money' into 'master'
Resolve "Separate field for money" Closes #10 See merge request dungeonslayers/ds4!47
This commit is contained in:
commit
af19d7c971
12 changed files with 206 additions and 152 deletions
|
@ -13,7 +13,7 @@ To install and use the Dungeonslayers 4 system for Foundry Virtual Tabletop,
|
||||||
simply paste the following URL into the **Install System** dialog on the Setup
|
simply paste the following URL into the **Install System** dialog on the Setup
|
||||||
menu of the application.
|
menu of the application.
|
||||||
|
|
||||||
https://git.f3l.de/dungeonslayers/ds4/-/raw/master/src/system.json?inline=false
|
https://git.f3l.de/dungeonslayers/ds4/-/raw/latest/src/system.json?inline=false
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
|
|
@ -145,10 +145,14 @@
|
||||||
"DS4.CharacterProfileBirthplace": "Geburtsort",
|
"DS4.CharacterProfileBirthplace": "Geburtsort",
|
||||||
"DS4.CharacterProfileAge": "Alter",
|
"DS4.CharacterProfileAge": "Alter",
|
||||||
"DS4.CharacterProfileHeight": "Größe",
|
"DS4.CharacterProfileHeight": "Größe",
|
||||||
"DS4.ProfileHairColor": "Haarfarbe",
|
"DS4.CharacterProfileHairColor": "Haarfarbe",
|
||||||
"DS4.CharacterProfileWeight": "Gewicht",
|
"DS4.CharacterProfileWeight": "Gewicht",
|
||||||
"DS4.CharacterProfileEyeColor": "Augenfarbe",
|
"DS4.CharacterProfileEyeColor": "Augenfarbe",
|
||||||
"DS4.CharacterProfileSpecialCharacteristics": "Besondere Eigenschaften",
|
"DS4.CharacterProfileSpecialCharacteristics": "Besondere Eigenschaften",
|
||||||
|
"DS4.CharacterCurrencyGold": "Gold",
|
||||||
|
"DS4.CharacterCurrencySilver": "Silber",
|
||||||
|
"DS4.CharacterCurrencyCopper": "Kupfer",
|
||||||
|
"DS4.CharacterCurrency": "Währung",
|
||||||
"DS4.CreatureTypeAnimal": "Tier",
|
"DS4.CreatureTypeAnimal": "Tier",
|
||||||
"DS4.CreatureTypeConstruct": "Konstrukt",
|
"DS4.CreatureTypeConstruct": "Konstrukt",
|
||||||
"DS4.CreatureTypeHumanoid": "Humanoid",
|
"DS4.CreatureTypeHumanoid": "Humanoid",
|
||||||
|
|
|
@ -145,10 +145,14 @@
|
||||||
"DS4.CharacterProfileBirthplace": "Birthplace",
|
"DS4.CharacterProfileBirthplace": "Birthplace",
|
||||||
"DS4.CharacterProfileAge": "Age",
|
"DS4.CharacterProfileAge": "Age",
|
||||||
"DS4.CharacterProfileHeight": "Height",
|
"DS4.CharacterProfileHeight": "Height",
|
||||||
"DS4.ProfileHairColor": "Hair Color",
|
"DS4.CharacterProfileHairColor": "Hair Color",
|
||||||
"DS4.CharacterProfileWeight": "Weight",
|
"DS4.CharacterProfileWeight": "Weight",
|
||||||
"DS4.CharacterProfileEyeColor": "Eye Color",
|
"DS4.CharacterProfileEyeColor": "Eye Color",
|
||||||
"DS4.CharacterProfileSpecialCharacteristics": "Special Characteristics",
|
"DS4.CharacterProfileSpecialCharacteristics": "Special Characteristics",
|
||||||
|
"DS4.CharacterCurrencyGold": "Gold",
|
||||||
|
"DS4.CharacterCurrencySilver": "Silver",
|
||||||
|
"DS4.CharacterCurrencyCopper": "Copper",
|
||||||
|
"DS4.CharacterCurrency": "Currency",
|
||||||
"DS4.CreatureTypeAnimal": "Animal",
|
"DS4.CreatureTypeAnimal": "Animal",
|
||||||
"DS4.CreatureTypeConstruct": "Construct",
|
"DS4.CreatureTypeConstruct": "Construct",
|
||||||
"DS4.CreatureTypeHumanoid": "Humanoid",
|
"DS4.CreatureTypeHumanoid": "Humanoid",
|
||||||
|
|
|
@ -39,6 +39,7 @@ interface DS4ActorDataCharacter extends DS4ActorDataBase {
|
||||||
progression: DS4ActorDataCharacterProgression;
|
progression: DS4ActorDataCharacterProgression;
|
||||||
language: DS4ActorDataCharacterLanguage;
|
language: DS4ActorDataCharacterLanguage;
|
||||||
profile: DS4ActorDataCharacterProfile;
|
profile: DS4ActorDataCharacterProfile;
|
||||||
|
currency: DS4ActorDataCharacterCurrency;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DS4ActorDataCharacterBaseInfo {
|
interface DS4ActorDataCharacterBaseInfo {
|
||||||
|
@ -73,6 +74,12 @@ interface DS4ActorDataCharacterProfile {
|
||||||
specialCharacteristics: string;
|
specialCharacteristics: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface DS4ActorDataCharacterCurrency {
|
||||||
|
gold: number;
|
||||||
|
silver: number;
|
||||||
|
copper: number;
|
||||||
|
}
|
||||||
|
|
||||||
interface DS4ActorDataCreature extends DS4ActorDataBase {
|
interface DS4ActorDataCreature extends DS4ActorDataBase {
|
||||||
baseInfo: DS4ActorDataCreatureBaseInfo;
|
baseInfo: DS4ActorDataCreatureBaseInfo;
|
||||||
}
|
}
|
||||||
|
|
|
@ -204,7 +204,7 @@ export const DS4 = {
|
||||||
birthplace: "DS4.CharacterProfileBirthplace",
|
birthplace: "DS4.CharacterProfileBirthplace",
|
||||||
age: "DS4.CharacterProfileAge",
|
age: "DS4.CharacterProfileAge",
|
||||||
height: "DS4.CharacterProfileHeight",
|
height: "DS4.CharacterProfileHeight",
|
||||||
hairColor: "DS4.ProfileHairColor",
|
hairColor: "DS4.CharacterProfileHairColor",
|
||||||
weight: "DS4.CharacterProfileWeight",
|
weight: "DS4.CharacterProfileWeight",
|
||||||
eyeColor: "DS4.CharacterProfileEyeColor",
|
eyeColor: "DS4.CharacterProfileEyeColor",
|
||||||
specialCharacteristics: "DS4.CharacterProfileSpecialCharacteristics",
|
specialCharacteristics: "DS4.CharacterProfileSpecialCharacteristics",
|
||||||
|
@ -226,6 +226,15 @@ export const DS4 = {
|
||||||
specialCharacteristics: "String",
|
specialCharacteristics: "String",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Define currency elements of a character
|
||||||
|
*/
|
||||||
|
characterCurrency: {
|
||||||
|
gold: "DS4.CharacterCurrencyGold",
|
||||||
|
silver: "DS4.CharacterCurrencySilver",
|
||||||
|
copper: "DS4.CharacterCurrencyCopper",
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Define the different creature types a creature can be
|
* Define the different creature types a creature can be
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -64,6 +64,8 @@ async function registerHandlebarsPartials() {
|
||||||
"systems/ds4/templates/actor/partials/profile.hbs",
|
"systems/ds4/templates/actor/partials/profile.hbs",
|
||||||
"systems/ds4/templates/actor/partials/character-progression.hbs",
|
"systems/ds4/templates/actor/partials/character-progression.hbs",
|
||||||
"systems/ds4/templates/actor/partials/special-creature-abilites-overview.hbs",
|
"systems/ds4/templates/actor/partials/special-creature-abilites-overview.hbs",
|
||||||
|
"systems/ds4/templates/actor/partials/character-inventory.hbs",
|
||||||
|
"systems/ds4/templates/actor/partials/creature-inventory.hbs",
|
||||||
];
|
];
|
||||||
return loadTemplates(templatePaths);
|
return loadTemplates(templatePaths);
|
||||||
}
|
}
|
||||||
|
@ -95,6 +97,7 @@ Hooks.once("setup", function () {
|
||||||
"characterProgression",
|
"characterProgression",
|
||||||
"characterLanguage",
|
"characterLanguage",
|
||||||
"characterProfile",
|
"characterProfile",
|
||||||
|
"characterCurrency",
|
||||||
"creatureTypes",
|
"creatureTypes",
|
||||||
"creatureSizeCategories",
|
"creatureSizeCategories",
|
||||||
"creatureBaseInfo",
|
"creatureBaseInfo",
|
||||||
|
|
|
@ -122,6 +122,11 @@
|
||||||
"weight": 0,
|
"weight": 0,
|
||||||
"eyeColor": "",
|
"eyeColor": "",
|
||||||
"specialCharacteristics": ""
|
"specialCharacteristics": ""
|
||||||
|
},
|
||||||
|
"currency": {
|
||||||
|
"gold": 0,
|
||||||
|
"silver": 0,
|
||||||
|
"copper": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
{{!-- Sheet Body --}}
|
{{!-- Sheet Body --}}
|
||||||
<section class="sheet-body">
|
<section class="sheet-body">
|
||||||
{{!-- Items Tab --}}
|
{{!-- Items Tab --}}
|
||||||
{{> systems/ds4/templates/actor/partials/items-overview.hbs}}
|
{{> systems/ds4/templates/actor/partials/character-inventory.hbs}}
|
||||||
|
|
||||||
{{!-- Spells Tab --}}
|
{{!-- Spells Tab --}}
|
||||||
{{> systems/ds4/templates/actor/partials/spells-overview.hbs}}
|
{{> systems/ds4/templates/actor/partials/spells-overview.hbs}}
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
{{!-- Sheet Body --}}
|
{{!-- Sheet Body --}}
|
||||||
<section class="sheet-body">
|
<section class="sheet-body">
|
||||||
{{!-- Items Tab --}}
|
{{!-- Items Tab --}}
|
||||||
{{> systems/ds4/templates/actor/partials/items-overview.hbs}}
|
{{> systems/ds4/templates/actor/partials/creature-inventory.hbs}}
|
||||||
|
|
||||||
{{!-- Special Creature Abilities Tab --}}
|
{{!-- Special Creature Abilities Tab --}}
|
||||||
{{> systems/ds4/templates/actor/partials/special-creature-abilites-overview.hbs}}
|
{{> systems/ds4/templates/actor/partials/special-creature-abilites-overview.hbs}}
|
||||||
|
|
21
src/templates/actor/partials/character-inventory.hbs
Normal file
21
src/templates/actor/partials/character-inventory.hbs
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<div class="tab inventory" data-group="primary" data-tab="inventory">
|
||||||
|
|
||||||
|
{{!-- Money--}}
|
||||||
|
<h4 class="items-list-title">{{localize 'DS4.CharacterCurrency'}}</h4>
|
||||||
|
<ol class="items-list">
|
||||||
|
<li class="item flexrow item-header">
|
||||||
|
<label for="data.currency.gold" class="flex05">{{config.characterCurrency.gold}}</label>
|
||||||
|
<input class="flex3 item-num-val item-change" type="number" min="0" step="1" name="data.currency.gold"
|
||||||
|
id="data.currency.gold" value="{{data.currency.gold}}" data-dtype="Number" />
|
||||||
|
<label for="data.currency.silver" class="flex05">{{config.characterCurrency.silver}}</label>
|
||||||
|
<input class="flex3 item-num-val item-change" type="number" min="0" step="1" name="data.currency.silver"
|
||||||
|
id="data.currency.silver" value="{{data.currency.silver}}" data-dtype="Number" />
|
||||||
|
<label for="data.currency.copper" class="flex05">{{config.characterCurrency.copper}}</label>
|
||||||
|
<input class="flex3 item-num-val item-change" type="number" min="0" step="1" name="data.currency.copper"
|
||||||
|
id="data.currency.copper" value="{{data.currency.copper}}" data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
{{> systems/ds4/templates/actor/partials/items-overview.hbs}}
|
||||||
|
|
||||||
|
</div>
|
5
src/templates/actor/partials/creature-inventory.hbs
Normal file
5
src/templates/actor/partials/creature-inventory.hbs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<div class="tab inventory" data-group="primary" data-tab="inventory">
|
||||||
|
|
||||||
|
{{> systems/ds4/templates/actor/partials/items-overview.hbs}}
|
||||||
|
|
||||||
|
</div>
|
|
@ -14,9 +14,9 @@
|
||||||
--}}
|
--}}
|
||||||
{{#*inline "ifHasItemOfType"}}
|
{{#*inline "ifHasItemOfType"}}
|
||||||
{{#if (and (ne itemsArray undefined) (gt itemsArray.length 0))}}
|
{{#if (and (ne itemsArray undefined) (gt itemsArray.length 0))}}
|
||||||
{{> @partial-block}}
|
{{> @partial-block}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType=dataType }}
|
{{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType=dataType }}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/inline}}
|
{{/inline}}
|
||||||
|
|
||||||
|
@ -33,24 +33,24 @@
|
||||||
!-- @param partial-block: hand over custom children of the flexbox in the partial block.
|
!-- @param partial-block: hand over custom children of the flexbox in the partial block.
|
||||||
--}}
|
--}}
|
||||||
{{#*inline "itemListHeader" }}
|
{{#*inline "itemListHeader" }}
|
||||||
<li class="item flexrow item-header">
|
<li class="item flexrow item-header">
|
||||||
{{!-- equipped --}}
|
{{!-- equipped --}}
|
||||||
{{#if (ne dataType 'equipment')}}
|
{{#if (ne dataType 'equipment')}}
|
||||||
<div class="flex05" title="{{localize 'DS4.ItemEquipped'}}">{{localize 'DS4.ItemEquippedAbbr'}}</div>
|
<div class="flex05" title="{{localize 'DS4.ItemEquipped'}}">{{localize 'DS4.ItemEquippedAbbr'}}</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{!-- image --}}
|
{{!-- image --}}
|
||||||
<div class="flex05 item-image"></div>
|
<div class="flex05 item-image"></div>
|
||||||
{{!-- amount --}}
|
{{!-- amount --}}
|
||||||
<div class="flex05 item-num-val" title="{{localize 'DS4.Quantity'}}">#</div>
|
<div class="flex05 item-num-val" title="{{localize 'DS4.Quantity'}}">#</div>
|
||||||
{{!-- name --}}
|
{{!-- name --}}
|
||||||
<div class="flex3 item-name">{{localize 'DS4.ItemName'}}</div>
|
<div class="flex3 item-name">{{localize 'DS4.ItemName'}}</div>
|
||||||
{{!-- item type specifics --}}
|
{{!-- item type specifics --}}
|
||||||
{{> @partial-block }}
|
{{> @partial-block }}
|
||||||
{{!-- description --}}
|
{{!-- description --}}
|
||||||
<div class="flex4">{{localize 'DS4.Description'}}</div>
|
<div class="flex4">{{localize 'DS4.Description'}}</div>
|
||||||
{{!-- add button --}}
|
{{!-- add button --}}
|
||||||
{{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType=dataType }}
|
{{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType=dataType }}
|
||||||
</li>
|
</li>
|
||||||
{{/inline}}
|
{{/inline}}
|
||||||
|
|
||||||
{{!--
|
{{!--
|
||||||
|
@ -65,138 +65,134 @@
|
||||||
!-- @param partial-block: hand over custom children of the flexbox in the partial block.
|
!-- @param partial-block: hand over custom children of the flexbox in the partial block.
|
||||||
--}}
|
--}}
|
||||||
{{#*inline "itemListEntry"}}
|
{{#*inline "itemListEntry"}}
|
||||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||||
{{!-- equipped --}}
|
{{!-- equipped --}}
|
||||||
{{#if (ne item.data.data.equipped undefined)}}
|
{{#if (ne item.data.data.equipped undefined)}}
|
||||||
<input class="flex05 item-change" type="checkbox" {{checked item.data.data.equipped}} data-dtype="Boolean"
|
<input class="flex05 item-change" type="checkbox" {{checked item.data.data.equipped}} data-dtype="Boolean"
|
||||||
data-property="data.equipped" title="{{localize 'DS4.ItemEquipped'}}">
|
data-property="data.equipped" title="{{localize 'DS4.ItemEquipped'}}">
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{!-- image --}}
|
{{!-- image --}}
|
||||||
<div class="flex05 item-image">
|
<div class="flex05 item-image">
|
||||||
<img src="{{item.img}}" title="{{item.name}}" width="24" height="24" />
|
<img src="{{item.img}}" title="{{item.name}}" width="24" height="24" />
|
||||||
</div>
|
</div>
|
||||||
{{!-- amount --}}
|
{{!-- amount --}}
|
||||||
<input class="flex05 item-num-val item-change" type="number" min="0" step="1" value="{{item.data.data.quantity}}" data-dtype="Number"
|
<input class="flex05 item-num-val item-change" type="number" min="0" step="1" value="{{item.data.data.quantity}}"
|
||||||
data-property="data.quantity" title="{{localize 'DS4.Quantity'}}" />
|
data-dtype="Number" data-property="data.quantity" title="{{localize 'DS4.Quantity'}}" />
|
||||||
{{!-- name --}}
|
{{!-- name --}}
|
||||||
<input class="flex3 item-name item-change" type="text" value="{{item.name}}" data-dtype="String"
|
<input class="flex3 item-name item-change" type="text" value="{{item.name}}" data-dtype="String"
|
||||||
data-property="name" title="{{localize 'DS4.ItemName'}}" />
|
data-property="name" title="{{localize 'DS4.ItemName'}}" />
|
||||||
{{!-- item type specifics --}}
|
{{!-- item type specifics --}}
|
||||||
{{> @partial-block}}
|
{{> @partial-block}}
|
||||||
{{!-- description --}}
|
{{!-- description --}}
|
||||||
<div class="flex4 item-description">{{{item.data.data.description}}}</div>
|
<div class="flex4 item-description">{{{item.data.data.description}}}</div>
|
||||||
{{!-- control buttons --}}
|
{{!-- control buttons --}}
|
||||||
{{> systems/ds4/templates/actor/partials/overview-control-buttons.hbs }}
|
{{> systems/ds4/templates/actor/partials/overview-control-buttons.hbs }}
|
||||||
</li>
|
</li>
|
||||||
{{/inline}}
|
{{/inline}}
|
||||||
|
|
||||||
|
|
||||||
{{!-- ======================================================================== --}}
|
{{!-- ======================================================================== --}}
|
||||||
|
|
||||||
|
{{!-- WEAPONS --}}
|
||||||
|
<h4 class="items-list-title">{{localize 'DS4.ItemTypeWeaponPlural'}}</h4>
|
||||||
|
{{!-- {{#if (and (ne itemsByType.weapon undefined) (gt itemsByType.weapon.length 0)) }} --}}
|
||||||
|
{{#> ifHasItemOfType itemsArray=itemsByType.weapon dataType='weapon' }}
|
||||||
|
<ol class="items-list">
|
||||||
|
{{#> itemListHeader dataType='weapon'}}
|
||||||
|
<div class="flex05 item-image" title="{{localize 'DS4.AttackType'}}">{{localize 'DS4.AttackTypeAbbr'}}</div>
|
||||||
|
<div class="flex05 item-num-val" title="{{localize 'DS4.WeaponBonus'}}">
|
||||||
|
{{localize 'DS4.WeaponBonusAbbr'}}
|
||||||
|
</div>
|
||||||
|
<div class="flex05 item-num-val" title="{{localize 'DS4.OpponentDefense'}}">
|
||||||
|
{{localize 'DS4.OpponentDefenseAbbr'}}
|
||||||
|
</div>
|
||||||
|
{{/itemListHeader}}
|
||||||
|
{{#each itemsByType.weapon as |item id|}}
|
||||||
|
{{#> itemListEntry item=item}}
|
||||||
|
<div class="flex05 item-image">
|
||||||
|
<img src="{{lookup ../../config.attackTypesIcons item.data.data.attackType}}"
|
||||||
|
title="{{lookup ../../config.attackTypes item.data.data.attackType}}" width="24" height="24" />
|
||||||
|
</div>
|
||||||
|
<div class="flex05 item-num-val">{{ item.data.data.weaponBonus}}</div>
|
||||||
|
<div class="flex05 item-num-val">{{ item.data.data.opponentDefense}}</div>
|
||||||
|
{{/itemListEntry}}
|
||||||
|
{{/each}}
|
||||||
|
</ol>
|
||||||
|
{{!-- {{else}}
|
||||||
|
{{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType='weapon' }} --}}
|
||||||
|
{{/ifHasItemOfType}}
|
||||||
|
|
||||||
<div class="tab inventory" data-group="primary" data-tab="inventory">
|
{{!-- ARMOR --}}
|
||||||
|
<h4 class="items-list-title">{{localize 'DS4.ItemTypeArmorPlural'}}</h4>
|
||||||
{{!-- WEAPONS --}}
|
{{#> ifHasItemOfType itemsArray=itemsByType.armor dataType='armor' }}
|
||||||
<h4 class="items-list-title">{{localize 'DS4.ItemTypeWeaponPlural'}}</h4>
|
<ol class="items-list">
|
||||||
{{!-- {{#if (and (ne itemsByType.weapon undefined) (gt itemsByType.weapon.length 0)) }} --}}
|
{{#> itemListHeader dataType='armor'}}
|
||||||
{{#> ifHasItemOfType itemsArray=itemsByType.weapon dataType='weapon' }}
|
<div title="{{localize 'DS4.ArmorMaterialType'}}">{{localize 'DS4.ArmorMaterialTypeAbbr'}}</div>
|
||||||
<ol class="items-list">
|
<div title="{{localize 'DS4.ArmorType'}}">{{localize 'DS4.ArmorTypeAbbr'}}</div>
|
||||||
{{#> itemListHeader dataType='weapon'}}
|
<div class="flex05 item-num-val" title="{{localize 'DS4.ArmorValue'}}">
|
||||||
<div class="flex05 item-image" title="{{localize 'DS4.AttackType'}}">{{localize 'DS4.AttackTypeAbbr'}}</div>
|
{{localize 'DS4.ArmorValueAbbr'}}
|
||||||
<div class="flex05 item-num-val" title="{{localize 'DS4.WeaponBonus'}}">
|
</div>
|
||||||
{{localize 'DS4.WeaponBonusAbbr'}}
|
{{/itemListHeader}}
|
||||||
</div>
|
{{#each itemsByType.armor as |item id|}}
|
||||||
<div class="flex05 item-num-val" title="{{localize 'DS4.OpponentDefense'}}">
|
{{#> itemListEntry item=item }}
|
||||||
{{localize 'DS4.OpponentDefenseAbbr'}}
|
<div title="{{lookup ../../config.armorMaterialTypes item.data.data.armorMaterialType}}">
|
||||||
</div>
|
{{lookup ../../config.armorMaterialTypesAbbr item.data.data.armorMaterialType}}
|
||||||
{{/itemListHeader}}
|
</div>
|
||||||
{{#each itemsByType.weapon as |item id|}}
|
<div title="{{lookup ../../config.armorTypes item.data.data.armorType}}">
|
||||||
{{#> itemListEntry item=item}}
|
{{lookup ../../config.armorTypesAbbr item.data.data.armorType}}
|
||||||
<div class="flex05 item-image">
|
</div>
|
||||||
<img src="{{lookup ../../config.attackTypesIcons item.data.data.attackType}}"
|
<div class="flex05 item-num-val">{{ item.data.data.armorValue}}</div>
|
||||||
title="{{lookup ../../config.attackTypes item.data.data.attackType}}" width="24" height="24" />
|
{{/itemListEntry}}
|
||||||
</div>
|
{{/each}}
|
||||||
<div class="flex05 item-num-val">{{ item.data.data.weaponBonus}}</div>
|
</ol>
|
||||||
<div class="flex05 item-num-val">{{ item.data.data.opponentDefense}}</div>
|
{{/ifHasItemOfType}}
|
||||||
{{/itemListEntry}}
|
|
||||||
{{/each}}
|
|
||||||
</ol>
|
|
||||||
{{!-- {{else}}
|
|
||||||
{{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType='weapon' }} --}}
|
|
||||||
{{/ifHasItemOfType}}
|
|
||||||
|
|
||||||
{{!-- ARMOR --}}
|
|
||||||
<h4 class="items-list-title">{{localize 'DS4.ItemTypeArmorPlural'}}</h4>
|
|
||||||
{{#> ifHasItemOfType itemsArray=itemsByType.armor dataType='armor' }}
|
|
||||||
<ol class="items-list">
|
|
||||||
{{#> itemListHeader dataType='armor'}}
|
|
||||||
<div title="{{localize 'DS4.ArmorMaterialType'}}">{{localize 'DS4.ArmorMaterialTypeAbbr'}}</div>
|
|
||||||
<div title="{{localize 'DS4.ArmorType'}}">{{localize 'DS4.ArmorTypeAbbr'}}</div>
|
|
||||||
<div class="flex05 item-num-val" title="{{localize 'DS4.ArmorValue'}}">
|
|
||||||
{{localize 'DS4.ArmorValueAbbr'}}
|
|
||||||
</div>
|
|
||||||
{{/itemListHeader}}
|
|
||||||
{{#each itemsByType.armor as |item id|}}
|
|
||||||
{{#> itemListEntry item=item }}
|
|
||||||
<div title="{{lookup ../../config.armorMaterialTypes item.data.data.armorMaterialType}}">
|
|
||||||
{{lookup ../../config.armorMaterialTypesAbbr item.data.data.armorMaterialType}}
|
|
||||||
</div>
|
|
||||||
<div title="{{lookup ../../config.armorTypes item.data.data.armorType}}">
|
|
||||||
{{lookup ../../config.armorTypesAbbr item.data.data.armorType}}
|
|
||||||
</div>
|
|
||||||
<div class="flex05 item-num-val">{{ item.data.data.armorValue}}</div>
|
|
||||||
{{/itemListEntry}}
|
|
||||||
{{/each}}
|
|
||||||
</ol>
|
|
||||||
{{/ifHasItemOfType}}
|
|
||||||
|
|
||||||
|
|
||||||
{{!-- SHIELD --}}
|
{{!-- SHIELD --}}
|
||||||
<h4 class="items-list-title">{{localize 'DS4.ItemTypeShieldPlural'}}</h4> {{!-- SPECIFIC --}}
|
<h4 class="items-list-title">{{localize 'DS4.ItemTypeShieldPlural'}}</h4> {{!-- SPECIFIC --}}
|
||||||
{{#> ifHasItemOfType itemsArray=itemsByType.shield dataType='shield' }}
|
{{#> ifHasItemOfType itemsArray=itemsByType.shield dataType='shield' }}
|
||||||
<ol class="items-list">
|
<ol class="items-list">
|
||||||
{{#> itemListHeader dataType='shield' }}
|
{{#> itemListHeader dataType='shield' }}
|
||||||
<div class="flex05 item-num-val" title="{{localize 'DS4.ArmorValue'}}">
|
<div class="flex05 item-num-val" title="{{localize 'DS4.ArmorValue'}}">
|
||||||
{{localize 'DS4.ArmorValueAbbr'}}
|
{{localize 'DS4.ArmorValueAbbr'}}
|
||||||
</div>
|
</div>
|
||||||
{{/itemListHeader}}
|
{{/itemListHeader}}
|
||||||
{{#each itemsByType.shield as |item id|}}
|
{{#each itemsByType.shield as |item id|}}
|
||||||
{{#> itemListEntry item=item }}
|
{{#> itemListEntry item=item }}
|
||||||
<div class="flex05 item-num-val">{{item.data.data.armorValue}}</div> {{!-- SPECIFIC --}}
|
<div class="flex05 item-num-val">{{item.data.data.armorValue}}</div> {{!-- SPECIFIC --}}
|
||||||
{{/itemListEntry}}
|
{{/itemListEntry}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ol>
|
</ol>
|
||||||
{{/ifHasItemOfType}}
|
{{/ifHasItemOfType}}
|
||||||
|
|
||||||
{{!-- TRINKET --}}
|
{{!-- TRINKET --}}
|
||||||
<h4 class="items-list-title">{{localize 'DS4.ItemTypeTrinketPlural'}}</h4>
|
<h4 class="items-list-title">{{localize 'DS4.ItemTypeTrinketPlural'}}</h4>
|
||||||
{{#> ifHasItemOfType itemsArray=itemsByType.trinket dataType='trinket' }}
|
{{#> ifHasItemOfType itemsArray=itemsByType.trinket dataType='trinket' }}
|
||||||
<ol class="items-list">
|
<ol class="items-list">
|
||||||
{{#> itemListHeader dataType='trinket'}}
|
{{#> itemListHeader dataType='trinket'}}
|
||||||
<div class="flex2">{{localize 'DS4.StorageLocation'}}</div>
|
<div class="flex2">{{localize 'DS4.StorageLocation'}}</div>
|
||||||
{{/itemListHeader}}
|
{{/itemListHeader}}
|
||||||
{{#each itemsByType.trinket as |item id|}}
|
{{#each itemsByType.trinket as |item id|}}
|
||||||
{{#> itemListEntry item=item }}
|
{{#> itemListEntry item=item }}
|
||||||
<input class="flex2 item-change" type="text" value="{{item.data.data.storageLocation}}" data-dtype="String"
|
<input class="flex2 item-change" type="text" value="{{item.data.data.storageLocation}}" data-dtype="String"
|
||||||
data-property="data.storageLocation" title="{{localize 'DS4.StorageLocation'}}">
|
data-property="data.storageLocation" title="{{localize 'DS4.StorageLocation'}}">
|
||||||
{{/itemListEntry}}
|
{{/itemListEntry}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ol>
|
</ol>
|
||||||
{{/ifHasItemOfType}}
|
{{/ifHasItemOfType}}
|
||||||
|
|
||||||
{{!-- EQUIPMENT --}}
|
{{!-- EQUIPMENT --}}
|
||||||
<h4 class="items-list-title">{{localize 'DS4.ItemTypeEquipmentPlural'}}</h4>
|
<h4 class="items-list-title">{{localize 'DS4.ItemTypeEquipmentPlural'}}</h4>
|
||||||
{{#> ifHasItemOfType itemsArray=itemsByType.equipment dataType='equipment' }}
|
{{#> ifHasItemOfType itemsArray=itemsByType.equipment dataType='equipment' }}
|
||||||
<ol class="items-list">
|
<ol class="items-list">
|
||||||
{{#> itemListHeader dataType='equipment'}}
|
{{#> itemListHeader dataType='equipment'}}
|
||||||
<div class="flex2">{{localize 'DS4.StorageLocation'}}</div>
|
<div class="flex2">{{localize 'DS4.StorageLocation'}}</div>
|
||||||
{{/itemListHeader}}
|
{{/itemListHeader}}
|
||||||
{{#each itemsByType.equipment as |item id|}}
|
{{#each itemsByType.equipment as |item id|}}
|
||||||
{{#> itemListEntry item=item }}
|
{{#> itemListEntry item=item }}
|
||||||
<input class="flex2 item-change" type="text" value="{{item.data.data.storageLocation}}" data-dtype="String"
|
<input class="flex2 item-change" type="text" value="{{item.data.data.storageLocation}}" data-dtype="String"
|
||||||
data-property="data.storageLocation" title="{{localize 'DS4.StorageLocation'}}">
|
data-property="data.storageLocation" title="{{localize 'DS4.StorageLocation'}}">
|
||||||
{{/itemListEntry}}
|
{{/itemListEntry}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ol>
|
</ol>
|
||||||
{{/ifHasItemOfType}}
|
{{/ifHasItemOfType}}
|
||||||
</div>
|
|
Loading…
Reference in a new issue