{{#if abilities.foundation.ancestry}} {{> "systems/daggerheart/templates/sheets/character/parts/heritageCard.hbs" card=abilities.foundation.ancestry }} {{else}}
{{localize "DAGGERHEART.Sheets.PC.Heritage.EmptyAncestry"}}
{{localize "DAGGERHEART.Sheets.PC.Heritage.EmptyAncestryTip"}}
{{/if}}
{{#if abilities.foundation.community}} {{> "systems/daggerheart/templates/sheets/character/parts/heritageCard.hbs" card=abilities.foundation.community }} {{else}}
{{localize "DAGGERHEART.Sheets.PC.Heritage.EmptyCommunity"}}
{{localize "DAGGERHEART.Sheets.PC.Heritage.EmptyCommunityTip"}}
{{/if}}
{{#if abilities.foundation.advancement.foundation}} {{> "systems/daggerheart/templates/sheets/character/parts/advancementCard.hbs" card=abilities.foundation.advancement.foundation }} {{else}}
{{localize "DAGGERHEART.Sheets.PC.Heritage.SubclassFoundation"}}
{{localize "DAGGERHEART.Sheets.PC.Heritage.SubclassFoundationTip"}}
{{/if}}
{{#if abilities.foundation.advancement.first}} {{> "systems/daggerheart/templates/sheets/character/parts/advancementCard.hbs" card=abilities.foundation.advancement.first }} {{else}}
{{localize "DAGGERHEART.Sheets.PC.Heritage.Subclass"}}
{{localize "DAGGERHEART.General.Or"}}
{{localize "DAGGERHEART.Sheets.PC.Heritage.Multiclass"}}
{{/if}}
{{#if abilities.foundation.advancement.second}} {{> "systems/daggerheart/templates/sheets/character/parts/advancementCard.hbs" card=abilities.foundation.advancement.second}} {{else}}
{{localize "DAGGERHEART.Sheets.PC.Heritage.Subclass"}}
{{localize "DAGGERHEART.General.Or"}}
{{localize "DAGGERHEART.Sheets.PC.Heritage.Multiclass"}}
{{/if}}
{{#times 2}}
{{#with (lookup ../abilities.loadout.top this)}} {{> "systems/daggerheart/templates/sheets/parts/domainCard.hbs" card=this inVault=false }} {{/with}} {{#if (not (lookup ../abilities.loadout.top this))}}
{{localize "DAGGERHEART.Sheets.PC.DomainCard.AvailableDomainSlot"}}
{{/if}}
{{/times}}
{{#times 3}}
{{#with (lookup ../abilities.loadout.bottom this)}} {{> "systems/daggerheart/templates/sheets/parts/domainCard.hbs" card=this inVault=false }} {{/with}} {{#if (gt (add this 3) ../actor/system/domainData.maxLoadout)}}
{{localize "DAGGERHEART.Sheets.PC.DomainCard.UnavailableDomainSlot" level=(add this 2)}}
{{/if}} {{#if (and (lte (add this 3) ../actor/system/domainData.maxLoadout) (lt ../abilities.loadout.bottom.length (add this 1)))}}
{{localize "DAGGERHEART.Sheets.PC.DomainCard.AvailableDomainSlot"}}
{{/if}}
{{/times}}
{{#each abilities.vault}}
{{> "systems/daggerheart/templates/sheets/parts/domainCard.hbs" card=this inVault=true }}
{{/each}}