[Feature] Item Description Enrichment (#1666)

* Added enrichment for Ancestries and Communities

* Fixed remainder

* Bit of padding

* Increased left padding
This commit is contained in:
WBHarry 2026-02-22 21:32:35 +01:00 committed by GitHub
parent 267de9a8cf
commit 56cc16b39a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 350 additions and 54 deletions

View file

@ -1,5 +1,22 @@
<div>
{{#each features as | feature |}}
<div><strong>{{localize feature.label}}</strong>: {{{localize feature.description}}}</div>
{{/each}}
<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}}
</div>
{{/if}}
</div>

View file

@ -0,0 +1,34 @@
<div class="item-description-outer-container">
<div class="item-description-container">
<h4>{{localize "DAGGERHEART.GENERAL.Domain.plural"}}</h4>
<span>{{domains}}</span>
</div>
<div class="item-description-container">
<h4>{{localize "DAGGERHEART.ITEMS.Class.startingEvasionScore"}}</h4>
<span>{{class.system.evasion}}</span>
</div>
<div class="item-description-container">
<h4>{{localize "DAGGERHEART.ITEMS.Class.startingHitPoints"}}</h4>
<span>{{class.system.hitPoints}}</span>
</div>
<div class="item-description-container">
<h4>{{localize "DAGGERHEART.ITEMS.Class.classItems"}}</h4>
<div class="item-links">
{{#each classItems}}
{{{this}}}
{{/each}}
</div>
</div>
<div class="item-description-container">
<h4>{{localize "DAGGERHEART.ITEMS.Class.hopeFeatureLabel" class=class.name}}</h4>
{{#each hopeFeatures as | feature |}}
<div class="item-description-inner-container"><strong>{{localize feature.label}}</strong>: {{{localize feature.description}}}</div>
{{/each}}
</div>
<div class="item-description-container">
<h4>{{localize "DAGGERHEART.ITEMS.Class.classFeature"}}</h4>
{{#each classFeatures as | feature |}}
<div class="item-description-inner-container"><strong>{{localize feature.label}}</strong>: {{{localize feature.description}}}</div>
{{/each}}
</div>
</div>

View file

@ -0,0 +1,8 @@
<div class="item-description-outer-container">
<div class="item-description-container">
<h4>{{localize label}}</h4>
{{#each features as | feature |}}
<div class="item-description-inner-container"><strong>{{localize feature.label}}</strong>: {{{localize feature.description}}}</div>
{{/each}}
</div>
</div>

View file

@ -0,0 +1,24 @@
<div class="item-description-outer-container">
<div class="item-description-container">
<h4>{{localize "DAGGERHEART.ITEMS.Subclass.spellcastTrait"}}</h4>
<span>{{spellcastTrait}}</span>
</div>
<div class="item-description-container">
<h4>{{localize "DAGGERHEART.ITEMS.Subclass.foundationFeatures"}}</h4>
{{#each foundationFeatures as | feature |}}
<div class="item-description-inner-container"><strong>{{localize feature.label}}</strong>: {{{localize feature.description}}}</div>
{{/each}}
</div>
<div class="item-description-container">
<h4>{{localize "DAGGERHEART.ITEMS.Subclass.specializationFeature"}}</h4>
{{#each specializationFeatures as | feature |}}
<div class="item-description-inner-container"><strong>{{localize feature.label}}</strong>: {{{localize feature.description}}}</div>
{{/each}}
</div>
<div class="item-description-container">
<h4>{{localize "DAGGERHEART.ITEMS.Subclass.masteryFeature"}}</h4>
{{#each masteryFeatures as | feature |}}
<div class="item-description-inner-container"><strong>{{localize feature.label}}</strong>: {{{localize feature.description}}}</div>
{{/each}}
</div>
</div>

View file

@ -1,5 +1,39 @@
<div>
{{#each features as | feature |}}
<div><strong>{{localize feature.label}}</strong>: {{{localize feature.description}}}</div>
{{/each}}
<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}}
</div>
{{/if}}
</div>