{{#each data.attributes as |attribute id|}}


{{#if (eq value -1)}} 2 XP {{else}} {{add value (add value 1)}} XP {{/if}}
{{/each}}

{{#each data.aptitudes as |aptitude id|}}


{{#if (eq value -1)}} 1 XP {{else}} {{add value 2}} XP {{/if}}
{{/each}}

{{#each resources as |resource id|}} {{#if (eq resource.key "alchemypoints")}} {{#if @root.isAlchemist}}

{{#if (eq @root.data.type 'player')}} {{#if (exists bonus)}} {{/if}} {{/if}}
{{/if}} {{else}}

{{#if (eq @root.data.type 'player')}} {{#if (exists bonus)}} {{/if}} {{/if}}
{{/if}} {{/each}}