mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-10 19:17:09 +01:00
[Fix] 1699 - Trait Generalization For Descriptions (#1717)
* Fixed so that domaincard tooltips properly use the all domains including homebrew * . * Adjust spacing of compendium browser tags (#1720) * Remove some vestigial inCompendiums --------- Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com> Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
This commit is contained in:
parent
83f6c940df
commit
f920fa7ba2
11 changed files with 61 additions and 97 deletions
|
|
@ -45,30 +45,20 @@ Parameters:
|
|||
<span class="item-name">{{localize item.name}} {{#unless (or noExtensible (not item.system.description))}}<span class="expanded-icon"><i class="fa-solid fa-expand"></i></span>{{/unless}}</span>
|
||||
|
||||
{{!-- Tags Start --}}
|
||||
{{#with item}}
|
||||
{{#if (not ../hideTags)}}
|
||||
<div class="item-tags">
|
||||
{{#each this._getTags as |tag|}}
|
||||
<div class="tag">
|
||||
{{tag}}
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
{{!-- Feature Form Tag Start --}}
|
||||
{{#if (eq ../type 'feature')}}
|
||||
{{#if (or (eq @root.document.type 'adversary') (eq @root.document.type 'environment'))}}
|
||||
{{#if system.featureForm}}
|
||||
<div class="tag feature-form">
|
||||
<span class="recall-value">{{localize (concat "DAGGERHEART.CONFIG.FeatureForm." system.featureForm)}}</span>
|
||||
</div>
|
||||
{{#if (not ../hideTags)}}
|
||||
{{#> "systems/daggerheart/templates/sheets/global/partials/item-tags.hbs" item }}
|
||||
{{#if (eq ../type 'feature')}}
|
||||
{{#if (or (eq @root.document.type 'adversary') (eq @root.document.type 'environment'))}}
|
||||
{{#if system.featureForm}}
|
||||
<div class="tag feature-form">
|
||||
<span class="recall-value">{{localize (concat "DAGGERHEART.CONFIG.FeatureForm." system.featureForm)}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/ "systems/daggerheart/templates/sheets/global/partials/item-tags.hbs"}}
|
||||
{{/if}}
|
||||
{{!-- Feature Form Tag End --}}
|
||||
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/with}}
|
||||
{{!--Tags End --}}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
8
templates/sheets/global/partials/item-tags.hbs
Normal file
8
templates/sheets/global/partials/item-tags.hbs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<div class="item-tags">
|
||||
{{#each _getTags as |tag|}}
|
||||
<div class="tag">
|
||||
{{tag}}
|
||||
</div>
|
||||
{{/each}}
|
||||
{{#if @partial-block}}{{> @partial-block}}{{/if}}
|
||||
</div>
|
||||
|
|
@ -1,19 +1,6 @@
|
|||
<div class="item-description-outer-container">
|
||||
<div class="two-columns">
|
||||
<div class="item-description-container">
|
||||
<h4>{{localize "DAGGERHEART.ITEMS.Armor.baseThresholds.base"}}</h4>
|
||||
<span>{{item.system.baseThresholds.major}}/{{item.system.baseThresholds.severe}}</span>
|
||||
</div>
|
||||
|
||||
<div class="item-description-container">
|
||||
<h4>{{localize "DAGGERHEART.ITEMS.Armor.baseScore"}}</h4>
|
||||
<span>{{item.system.baseScore}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#if features.length}}
|
||||
<div class="item-description-container">
|
||||
<h4>{{localize "DAGGERHEART.GENERAL.features"}}</h4>
|
||||
{{#each features as | feature |}}
|
||||
<div><strong>{{localize feature.label}}</strong>: {{{localize feature.description}}}</div>
|
||||
{{/each}}
|
||||
|
|
|
|||
|
|
@ -1,36 +1,6 @@
|
|||
<div class="item-description-outer-container">
|
||||
<div class="three-columns">
|
||||
<div class="item-description-container">
|
||||
<h4>{{localize "DAGGERHEART.GENERAL.Tiers.singular"}}</h4>
|
||||
<span>{{tier}}</span>
|
||||
</div>
|
||||
|
||||
<div class="item-description-container">
|
||||
<h4>{{localize "DAGGERHEART.GENERAL.Trait.single"}}</h4>
|
||||
<span>{{trait}}</span>
|
||||
</div>
|
||||
|
||||
<div class="item-description-container">
|
||||
<h4>{{localize "DAGGERHEART.GENERAL.range"}}</h4>
|
||||
<span>{{range}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="three-columns">
|
||||
<div class="item-description-container">
|
||||
<h4>{{localize "DAGGERHEART.GENERAL.damage"}}</h4>
|
||||
<span>{{damage}}</span>
|
||||
</div>
|
||||
|
||||
<div class="item-description-container">
|
||||
<h4>{{localize "DAGGERHEART.GENERAL.burden"}}</h4>
|
||||
<span>{{burden}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{#if features.length}}
|
||||
<div class="item-description-container">
|
||||
<h4>{{localize "DAGGERHEART.GENERAL.features"}}</h4>
|
||||
{{#each features as | feature |}}
|
||||
<div><strong>{{localize feature.label}}</strong>: {{{localize feature.description}}}</div>
|
||||
{{/each}}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,10 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="item-desc extensible">
|
||||
<span class="wrapper">{{{system.enrichedDescription}}}</span>
|
||||
<span class="wrapper">
|
||||
{{{system.enrichedTags}}}
|
||||
{{{system.enrichedDescription}}}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue