From d88fc6e658e6b252312647e80be5e0bf19a5fd0d Mon Sep 17 00:00:00 2001 From: CK <31608392+unrealkakeman89@users.noreply.github.com> Date: Wed, 24 Jun 2020 14:25:23 -0400 Subject: [PATCH] Add files via upload --- templates/actor/parts/actor-castbook.html | 123 +++++++++++++++++++++ templates/actor/parts/actor-features.html | 74 +++++++++++++ templates/actor/parts/actor-inventory.html | 106 ++++++++++++++++++ templates/actor/parts/actor-powerbook.html | 123 +++++++++++++++++++++ templates/actor/parts/actor-traits.html | 104 +++++++++++++++++ 5 files changed, 530 insertions(+) create mode 100644 templates/actor/parts/actor-castbook.html create mode 100644 templates/actor/parts/actor-features.html create mode 100644 templates/actor/parts/actor-inventory.html create mode 100644 templates/actor/parts/actor-powerbook.html create mode 100644 templates/actor/parts/actor-traits.html diff --git a/templates/actor/parts/actor-castbook.html b/templates/actor/parts/actor-castbook.html new file mode 100644 index 00000000..41c80f47 --- /dev/null +++ b/templates/actor/parts/actor-castbook.html @@ -0,0 +1,123 @@ +
+
+

{{localize "SW5E.CastAbility"}}

+ + {{#if isNPC}} +

{{localize "SW5E.CasterLevel"}}

+ + {{/if}} +

{{localize "SW5E.CastDC"}} {{data.attributes.castdc}}

+
+ + +
+ +
    +{{#each castbook as |section|}} +
  1. +
    +

    {{section.label}}

    +
    + +
    + {{#if section.usesSlots}} + + / + + {{{section.slots}}} + {{#if ../editable}} + + + + {{/if}} + {{ else }} + {{{section.uses}}} + / + {{{section.slots}}} + {{/if}} +
    + +
    {{localize "SW5E.CastSchool"}}
    +
    {{localize "SW5E.CastUsage"}}
    +
    {{localize "SW5E.CastTarget"}}
    + +
    + {{#if section.canCreate}} + + {{localize "SW5E.Add"}} + + {{/if}} +
    +
  2. + +
      + {{#each section.casts as |item i|}} +
    1. +
      +
      +

      {{item.name}}

      + {{#if item.data.uses.value }} +
      Uses {{item.data.uses.value}} / {{item.data.uses.max}}
      + {{/if}} +
      + +
      + {{#each labels.components}} + {{this}} + {{/each}} +
      +
      {{labels.school}}
      +
      {{labels.activation}}
      +
      + {{#if labels.target}} + {{labels.target}} + {{else}}None + {{/if}} +
      + + + {{#if ../../owner}} +
      + {{#if section.canPrepare}} + + {{/if}} + + +
      + {{/if}} +
    2. + {{/each}} +
    +{{else}} + {{#if owner}} + {{#if filters.castbook.size}} +
  3. {{localize "SW5E.FilterNoCasts"}}

  4. + {{else}} +
  5. + +
  6. +
  7. {{localize "SW5E.NoCastLevels"}}

  8. + {{/if}} + {{/if}} +{{/each}} +
diff --git a/templates/actor/parts/actor-features.html b/templates/actor/parts/actor-features.html new file mode 100644 index 00000000..3e6c178b --- /dev/null +++ b/templates/actor/parts/actor-features.html @@ -0,0 +1,74 @@ +
+ +
+ +
    +{{#each sections as |section sid|}} +
  1. +

    {{localize section.label}}

    + + {{#if section.hasActions}} +
    {{localize "SW5E.Uses"}}
    +
    {{localize "SW5E.Usage"}}
    + {{/if}} + + {{#if ../owner}} + + {{/if}} +
  2. + +
      + {{#each section.items as |item iid|}} +
    1. +
      +
      +

      {{item.name}}

      +
      + + {{#if section.hasActions}} +
      + {{#if item.isOnCooldown}} + {{item.labels.recharge}} + {{else if item.data.recharge.value}} + {{localize "SW5E.Charged"}} + + {{else if item.hasUses}} + / {{item.data.uses.max}} + {{/if}} +
      + +
      + {{#if item.data.activation.type }} + {{item.labels.activation}} + {{/if}} +
      + + {{else if section.isClass}} +
      + {{item.data.subclass}} +
      +
      + Level {{item.data.levels}} +
      + {{/if}} + + {{#if ../../owner}} +
      + + +
      + {{/if}} +
    2. + {{/each}} +
    +{{/each}} +
diff --git a/templates/actor/parts/actor-inventory.html b/templates/actor/parts/actor-inventory.html new file mode 100644 index 00000000..f9b81c02 --- /dev/null +++ b/templates/actor/parts/actor-inventory.html @@ -0,0 +1,106 @@ +
+ + {{#if isCharacter}} +
    +

    + {{localize "SW5E.Currency"}} + +

    + {{#each data.currency as |v k|}} + + + {{/each}} +
+ {{/if}} + + +
+ +
    +{{#each sections as |section sid|}} +
  1. +

    {{localize section.label}}

    + + {{#if ../isCharacter}} +
    {{localize "SW5E.Weight"}}
    + {{/if}} + +
    {{localize "SW5E.Charges"}}
    +
    {{localize "SW5E.Usage"}}
    + + {{#if ../owner}} + + {{/if}} +
  2. + +
      + {{#each section.items as |item iid|}} +
    1. +
      +
      +

      + {{item.name~}} + {{~#if item.isStack}} ({{item.data.quantity}}){{/if}} + {{~#if item.data.attuned}} {{/if}} +

      +
      + + {{#if ../../isCharacter}} +
      + {{#if item.totalWeight}} +
      + {{ item.totalWeight }} {{localize "SW5E.AbbreviationLbs"}} +
      + {{/if}} +
      + {{/if}} + +
      + {{#if item.hasUses }} + + / {{item.data.uses.max}} + {{/if}} +
      + +
      + {{#if item.data.activation.type }} + {{item.labels.activation}} + {{/if}} +
      + + {{#if ../../owner}} +
      + + + +
      + {{/if}} +
    2. + {{/each}} +
    +{{/each}} +
+ + +{{#if isCharacter }} +{{#with data.attributes.encumbrance}} +
+ + {{value}} / {{max}} + + + + +
+{{/with}} +{{/if}} diff --git a/templates/actor/parts/actor-powerbook.html b/templates/actor/parts/actor-powerbook.html new file mode 100644 index 00000000..dbd05381 --- /dev/null +++ b/templates/actor/parts/actor-powerbook.html @@ -0,0 +1,123 @@ +
+
+

{{localize "SW5E.PowerAbility"}}

+ + {{#if isNPC}} +

{{localize "SW5E.PowercasterLevel"}}

+ + {{/if}} +

{{localize "SW5E.PowerDC"}} {{data.attributes.powerdc}}

+
+ + +
+ +
    +{{#each powerbook as |section|}} +
  1. +
    +

    {{section.label}}

    +
    + +
    + {{#if section.usesSlots}} + + / + + {{{section.slots}}} + {{#if ../editable}} + + + + {{/if}} + {{ else }} + {{{section.uses}}} + / + {{{section.slots}}} + {{/if}} +
    + +
    {{localize "SW5E.PowerSchool"}}
    +
    {{localize "SW5E.PowerUsage"}}
    +
    {{localize "SW5E.PowerTarget"}}
    + +
    + {{#if section.canCreate}} + + {{localize "SW5E.Add"}} + + {{/if}} +
    +
  2. + +
      + {{#each section.powers as |item i|}} +
    1. +
      +
      +

      {{item.name}}

      + {{#if item.data.uses.value }} +
      Uses {{item.data.uses.value}} / {{item.data.uses.max}}
      + {{/if}} +
      + +
      + {{#each labels.components}} + {{this}} + {{/each}} +
      +
      {{labels.school}}
      +
      {{labels.activation}}
      +
      + {{#if labels.target}} + {{labels.target}} + {{else}}None + {{/if}} +
      + + + {{#if ../../owner}} +
      + {{#if section.canPrepare}} + + {{/if}} + + +
      + {{/if}} +
    2. + {{/each}} +
    +{{else}} + {{#if owner}} + {{#if filters.powerbook.size}} +
  3. {{localize "SW5E.FilterNoPowers"}}

  4. + {{else}} +
  5. + +
  6. +
  7. {{localize "SW5E.NoPowerLevels"}}

  8. + {{/if}} + {{/if}} +{{/each}} +
diff --git a/templates/actor/parts/actor-traits.html b/templates/actor/parts/actor-traits.html new file mode 100644 index 00000000..9b3a337d --- /dev/null +++ b/templates/actor/parts/actor-traits.html @@ -0,0 +1,104 @@ +
+
+ + +
+ +
+ + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ + {{#if isCharacter}} +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ {{/if}} + +
+ + +
+
\ No newline at end of file