From 2b6e9daaeed2a59d00635b7cc39f0fe90832c273 Mon Sep 17 00:00:00 2001 From: TheLastScrub <67403321+TheLastScrub@users.noreply.github.com> Date: Sun, 28 Jul 2024 23:11:37 -0700 Subject: [PATCH] added basic item reording to vehicle sheet --- module/actor/actor-sheet.js | 2 - templates/actor/equipment-partial.html | 10 ++- templates/actor/vehicle-sheet.html | 95 +++++++++++++------------- 3 files changed, 55 insertions(+), 52 deletions(-) diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index 146e247..688cae3 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -61,9 +61,7 @@ export default class DeltaGreenActorSheet extends ActorSheet { const data = super.getData(); // Prepare items. - //if (this.actor.type === "agent") { this._prepareCharacterItems(data); - //} // Make it easy for the sheet handlebars to understand how to sort the skills. data.sortSkillsSetting = game.settings.get("deltagreen", "sortSkills"); diff --git a/templates/actor/equipment-partial.html b/templates/actor/equipment-partial.html index 9d8b137..67c07f0 100644 --- a/templates/actor/equipment-partial.html +++ b/templates/actor/equipment-partial.html @@ -1,4 +1,4 @@ - +{{!-- EQUIPMENT/ATTACKS/ABILITES SECTION USED ON ALL ACTOR SHEETS --}} {{!-- WEAPONS/ATTACKS --}}
@@ -9,8 +9,12 @@
  1. -
    - {{localize 'DG.Gear.Name'}} +
    + + + {{localize 'DG.Gear.Name'}} + + {{localize 'DG.Gear.DamageOrLethality'}} {{localize 'DG.Gear.ArmorPiercing'}}
    diff --git a/templates/actor/vehicle-sheet.html b/templates/actor/vehicle-sheet.html index 57d186c..8512c35 100644 --- a/templates/actor/vehicle-sheet.html +++ b/templates/actor/vehicle-sheet.html @@ -77,33 +77,32 @@
  2. - {{#each actor.items as |item id|}} - {{#if_eq item.type 'armor'}} - -
  3. -
    -

    {{item.name}}

    - {{item.system.protection}} - - - {{#if item.system.equipped}} - - {{else}} - - {{/if}} - - -
    - - -
    -
  4. - - {{/if_eq}} + {{#each actor.armor as |item id|}} + +
  5. +
    +

    {{item.name}}

    + {{item.system.protection}} + + + {{#if item.system.equipped}} + + {{else}} + + {{/if}} + + +
    + + +
    +
  6. + {{/each}}
+
@@ -121,37 +120,38 @@
- {{#each actor.items as |item id|}} - {{#if_eq item.type 'gear'}} + {{#each actor.gear as |item id|}} -
  • -
    +
  • + +
    + +

    {{item.name}}

    + + + + -

    {{item.name}}

    + {{#if item.system.equipped}} + + {{else}} + + {{/if}} + +
    + +
    + + +
    +
  • - - - - - {{#if item.system.equipped}} - - {{else}} - - {{/if}} - - - -
    - - -
    - - - {{/if_eq}} {{/each}} +
    + {{!-- About Tab --}} @@ -160,6 +160,7 @@ + \ No newline at end of file