remove currency from creature sheet
This commit is contained in:
parent
e89c87f0c1
commit
dee56f12ec
6 changed files with 128 additions and 120 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
|
@ -93,30 +93,11 @@
|
||||||
|
|
||||||
{{!-- ======================================================================== --}}
|
{{!-- ======================================================================== --}}
|
||||||
|
|
||||||
|
{{!-- WEAPONS --}}
|
||||||
<div class="tab inventory" data-group="primary" data-tab="inventory">
|
<h4 class="items-list-title">{{localize 'DS4.ItemTypeWeaponPlural'}}</h4>
|
||||||
|
{{!-- {{#if (and (ne itemsByType.weapon undefined) (gt itemsByType.weapon.length 0)) }} --}}
|
||||||
{{!-- Money--}}
|
{{#> ifHasItemOfType itemsArray=itemsByType.weapon dataType='weapon' }}
|
||||||
<h4 class="items-list-title">{{localize 'DS4.CharacterCurrency'}}</h4>
|
<ol class="items-list">
|
||||||
<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>
|
|
||||||
|
|
||||||
{{!-- 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'}}
|
{{#> itemListHeader dataType='weapon'}}
|
||||||
<div class="flex05 item-image" title="{{localize 'DS4.AttackType'}}">{{localize 'DS4.AttackTypeAbbr'}}</div>
|
<div class="flex05 item-image" title="{{localize 'DS4.AttackType'}}">{{localize 'DS4.AttackTypeAbbr'}}</div>
|
||||||
<div class="flex05 item-num-val" title="{{localize 'DS4.WeaponBonus'}}">
|
<div class="flex05 item-num-val" title="{{localize 'DS4.WeaponBonus'}}">
|
||||||
|
@ -136,15 +117,15 @@
|
||||||
<div class="flex05 item-num-val">{{ item.data.data.opponentDefense}}</div>
|
<div class="flex05 item-num-val">{{ item.data.data.opponentDefense}}</div>
|
||||||
{{/itemListEntry}}
|
{{/itemListEntry}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ol>
|
</ol>
|
||||||
{{!-- {{else}}
|
{{!-- {{else}}
|
||||||
{{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType='weapon' }} --}}
|
{{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType='weapon' }} --}}
|
||||||
{{/ifHasItemOfType}}
|
{{/ifHasItemOfType}}
|
||||||
|
|
||||||
{{!-- ARMOR --}}
|
{{!-- ARMOR --}}
|
||||||
<h4 class="items-list-title">{{localize 'DS4.ItemTypeArmorPlural'}}</h4>
|
<h4 class="items-list-title">{{localize 'DS4.ItemTypeArmorPlural'}}</h4>
|
||||||
{{#> ifHasItemOfType itemsArray=itemsByType.armor dataType='armor' }}
|
{{#> ifHasItemOfType itemsArray=itemsByType.armor dataType='armor' }}
|
||||||
<ol class="items-list">
|
<ol class="items-list">
|
||||||
{{#> itemListHeader dataType='armor'}}
|
{{#> itemListHeader dataType='armor'}}
|
||||||
<div title="{{localize 'DS4.ArmorMaterialType'}}">{{localize 'DS4.ArmorMaterialTypeAbbr'}}</div>
|
<div title="{{localize 'DS4.ArmorMaterialType'}}">{{localize 'DS4.ArmorMaterialTypeAbbr'}}</div>
|
||||||
<div title="{{localize 'DS4.ArmorType'}}">{{localize 'DS4.ArmorTypeAbbr'}}</div>
|
<div title="{{localize 'DS4.ArmorType'}}">{{localize 'DS4.ArmorTypeAbbr'}}</div>
|
||||||
|
@ -163,14 +144,14 @@
|
||||||
<div class="flex05 item-num-val">{{ item.data.data.armorValue}}</div>
|
<div class="flex05 item-num-val">{{ item.data.data.armorValue}}</div>
|
||||||
{{/itemListEntry}}
|
{{/itemListEntry}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ol>
|
</ol>
|
||||||
{{/ifHasItemOfType}}
|
{{/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'}}
|
||||||
|
@ -181,13 +162,13 @@
|
||||||
<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}}
|
||||||
|
@ -197,13 +178,13 @@
|
||||||
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}}
|
||||||
|
@ -213,6 +194,5 @@
|
||||||
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