{{!-- Sheet Header --}}

{{#switch actor.type}} {{#case 'Critter'}} {{> "systems/shadowrun-de/templates/parts/npc_edit_critter.html"}} {{/case}} {{#case 'NPC' }} {{> "systems/shadowrun-de/templates/parts/npc_edit_grunt.html" }} {{/case}} {{#case 'Spirit' }} {{> "systems/shadowrun-de/templates/parts/npc_edit_spirit.html" }} {{/case}} {{/switch}} {{#if gruntGroup.id}} {{> "systems/shadowrun-de/templates/parts/npc_grunt_group.hbs" }} {{/if}}
{{!-- Sheet Tab Navigation --}} {{!-- Sheet Body --}}
{{!-- Basics Tab --}}
{{> "systems/shadowrun-de/templates/parts/attributes-augmented.html" attributes=system.attributes}}
{{> "systems/shadowrun-de/templates/parts/pc-derived.html" attributes=system.attributes}} {{> "systems/shadowrun-de/templates/parts/section-qualities.html"}} {{> "systems/shadowrun-de/templates/parts/initiatives.html" initiative=system.initiative}} {{#if (or (eq actor.type 'Critter') (eq actor.type 'Spirit'))}} {{!-- {{> "systems/shadowrun-de/templates/parts/section-critterpower.html" }} --}} {{else}} {{> "systems/shadowrun-de/templates/parts/section-bodyware.html"}} {{/if}}
{{!-- Skills Tab --}}
{{> "systems/shadowrun-de/templates/parts/pc-skillvalues.html" skills=system.skills}}
{{!-- Gear Tab --}}
{{> "systems/shadowrun-de/templates/parts/section-gear.html" geartype="ELECTRONICS" title=(localize 'shadowrun6.section.electronics')}} {{> "systems/shadowrun-de/templates/parts/section-gear.html" geartype="SOFTWARE" title=(localize 'shadowrun6.gear.subtype.SOFTWARE')}} {{> "systems/shadowrun-de/templates/parts/section-gear.html" geartype="CHEMICALS" title=(localize 'shadowrun6.section.chemicals')}} {{> "systems/shadowrun-de/templates/parts/section-gear.html" geartype="BIOLOGY" title=(localize 'shadowrun6.section.biology')}} {{> "systems/shadowrun-de/templates/parts/section-gear.html" geartype="SURVIVAL" title=(localize 'shadowrun6.section.survival')}} {{> "systems/shadowrun-de/templates/parts/section-gear.html" geartype="TOOLS" title=(localize 'shadowrun6.gear.subtype.TOOLS')}} {{> "systems/shadowrun-de/templates/parts/section-gear.html" geartype="ACCESSORY" title=(localize 'shadowrun6.gear.subtype.ACCESSORY')}} {{!-- {{> "systems/shadowrun-de/templates/parts/section-gear.html" geartype="ARMOR_ADDITION" title=(localize 'shadowrun6.section.armor_adds')}} --}} {{> "systems/shadowrun-de/templates/parts/section-gear.html" geartype="MAGICAL" title=(localize 'shadowrun6.label.MagicalGoods')}} {{> "systems/shadowrun-de/templates/parts/section-item-mods.html" }}
{{!-- Combat Tab --}}
{{> "systems/shadowrun-de/templates/parts/tab-combat.html" }}
{{!-- Magic Tab --}}
{{> "systems/shadowrun-de/templates/parts/tab-magic.html" }}
{{!-- Matrix Tab --}}
{{> "systems/shadowrun-de/templates/parts/tab-matrix.html" }}
{{!-- Vehicle Tab --}}
{{> "systems/shadowrun-de/templates/parts/tab-vehicles.html" }}
{{!-- Biography Tab --}}
{{> "systems/shadowrun-de/templates/parts/tab-biography.html"}}
{{!-- Effects Tab --}}
{{> "systems/shadowrun-de/templates/parts/tab-effects.hbs"}}
{{!-- TODO: What is this doing here? --}} {{!-- Owned Items Tab --}}

{{ localize 'section.attributes'}}

    {{#each actor.items as |item id|}}
  1. {{item.name}}

    {{!-- Iterate through all attributes on the item and output buttons for any that are formula. --}}
    {{#each item.system.attributes as |itemAttr key|}} {{#if itemAttr.dtype}} {{#if itemAttr.isFormula}} {{!-- Use the items.name.key format for shorthand. --}} {{#if ../../shorthand}} {{!-- Use the items.name.attributes.key.value format otherwise. --}} {{else}} {{/if}} {{/if}} {{else}} {{#each itemAttr as |itemGroupedAttr groupedKey|}} {{#if itemGroupedAttr.isFormula}} {{!-- Use the items.name.key format for shorthand. --}} {{#if ../../../shorthand}} {{!-- Use the items.name.attributes.key.value format otherwise. --}} {{else}} {{/if}} {{/if}} {{/each}} {{/if}} {{/each}}
    {{localize (concat "attrib." (skillAttr item.id) "_short")}}
  2. {{/each}}