{{!-- Name --}}
{{#if editable}} {{else}}
{{ system.bastion.name }}
{{/if}}
{{!-- Contents --}}
{{!-- Roster --}}

{{ localize "DND5E.FACILITY.FIELDS.defenders.max.label" }}

    {{#each defenders}}
  • {{ name }} {{#if @root.editable}} {{/if}}
  • {{else}}
  • {{ localize "DND5E.FACILITY.NoDefenders" }}
  • {{/each}}
{{!-- Basic Facilities --}}

{{ localize "DND5E.FACILITY.Types.Basic.Label.other" }}

    {{#each facilities.basic.chosen}} {{> ".facility" }} {{/each}} {{#each facilities.basic.available}}
  • {{ localize label }}
  • {{/each}}
{{!-- Special Facilities --}} {{#with facilities.special}}

{{ localize "DND5E.FACILITY.Types.Special.Label.other" }} {{ value }} / {{ max }}

    {{#each chosen}} {{> ".facility" }} {{/each}} {{#each available}}
  • {{ localize label }}
  • {{/each}}
{{/with}}
{{!-- Description --}}

{{ localize "DND5E.FACILITY.Description" }}

{{#if editable}} {{else}}
{{{ bastion.description }}}
{{/if}}
{{#*inline ".facility"}}
  • {{#if (and progress.max executing)}}
    {{ progress.value }} / {{ progress.max }}
    {{/if}}
    {{ name }} {{{ subtitle }}}
    {{#if craft}}
    {{ craft.name }}
    {{/if}} {{#if (or executing isSpecial)}}
    {{#if executing}} {{/if}}
    {{/if}}
    {{#if hirelings.length}}
    {{#each hirelings}} {{> ".occupant" type="hireling" }} {{/each}}
    {{/if}} {{#if defenders.length}}
    {{#each defenders}} {{> ".occupant" type="defender" }} {{/each}}
    {{/if}} {{#if creatures.length}}
    {{#each creatures}} {{> ".occupant" type="creature" }} {{/each}}
    {{/if}}
  • {{/inline}} {{#*inline ".occupant"}}
    {{#if actor}} {{#unless pending}} {{ actor.name }} {{/unless}} {{/if}} {{#if @root.editable}} {{#if (or actor pending)}} {{/if}} {{/if}}
    {{/inline}}