{{#if ancestryBoosts}}
{{#if ancestryBoosts.remaining}}
{{ancestryBoosts.remaining}}
{{/if}}
{{localize "ITEM.TypeAncestry"}}
{{ancestry.name}}
{{else}}
{{localize "ITEM.TypeAncestry"}}
{{localize "PF2E.Actor.Character.AbilityBuilder.NotSelected"}}
{{/if}}
{{> abilityRow buttons=ancestryBoosts.buttons fallback="PF2E.Actor.Character.AbilityBuilder.AncestryMissingHelp"}}
{{localize "PF2E.Actor.Character.AbilityBuilder.Boosts"}}
{{#each ancestryBoosts.labels as |boost|}}
- {{boost}}
{{/each}}
{{localize "PF2E.Actor.Character.AbilityBuilder.Flaws"}}
{{#each ancestryBoosts.flawLabels as |flaw|}}
- {{flaw}}
{{/each}}
{{#if ancestry}}
{{#if voluntaryFlaws.remaining}}
{{voluntaryFlaws.remaining}}
{{/if}}
{{localize "PF2E.Actor.Character.AbilityBuilder.VoluntaryFlaw.Title"}}
{{> abilityRow buttons=voluntaryFlaws.buttons}}
{{/if}}
{{localize "PF2E.Actor.Character.AbilityBuilder.VoluntaryFlaw.Description"}}
{{localize "PF2E.Actor.Character.AbilityBuilder.VoluntaryFlaw.LegacyDescription"}}
{{#if backgroundBoosts}}
{{#if backgroundBoosts.remaining}}
{{backgroundBoosts.remaining}}
{{/if}}
{{localize "PF2E.Background"}}
{{background.name}}
{{else}}
{{localize "ITEM.TypeBackground"}}
{{localize "PF2E.Actor.Character.AbilityBuilder.NotSelected"}}
{{/if}}
{{> abilityRow buttons=backgroundBoosts.buttons fallback="PF2E.Actor.Character.AbilityBuilder.BackgroundMissingHelp"}}
{{#if backgroundBoosts.tooltip}}
{{backgroundBoosts.tooltip}}
{{else}}
{{localize "PF2E.Actor.Character.AbilityBuilder.Boosts"}}
{{#each backgroundBoosts.labels as |boost|}}
{{#if boost}}
- {{boost}}
{{/if}}
{{/each}}
{{/if}}
{{#if class}}
{{localize "PF2E.Class"}}
{{class.name}}
{{#each abilities as |key ability|}}
{{/each}}
{{else}}
{{localize "ITEM.TypeClass"}}
{{localize "PF2E.Actor.Character.AbilityBuilder.NotSelected"}}
{{localize "PF2E.Actor.Character.AbilityBuilder.ClassMissingHelp"}}
{{/if}}
{{localize "PF2E.AbilityFree"}}
{{#each levelBoosts as |boosts|}}
{{#if remaining}}
{{remaining}}
{{/if}}
{{#if (eq boosts.minLevel boosts.level)}}
{{localize "PF2E.LevelN" level=boosts.level}}
{{else}}
{{localize "PF2E.LevelRange" minLevel=boosts.minLevel level=boosts.level}}
{{/if}}
{{> abilityRow buttons=boosts.buttons}}
{{/each}}
{{#each abilityScores as |ability key|}}
{{#if ../manual}}
{{else}}
{{ability.base}}
{{/if}}
{{localize (lookup ../abilities key)}}
{{/each}}