From 77e1da23b10f1a98a0f408871698f82500e838ca Mon Sep 17 00:00:00 2001 From: U~man Date: Sat, 4 Jul 2020 20:11:09 +0200 Subject: [PATCH] ENH: Hide unused weight --- src/module/actor/actor-sheet.js | 1 + .../actors/partials/character-inventory-tab.html | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/module/actor/actor-sheet.js b/src/module/actor/actor-sheet.js index f4c59c1..1f5f33b 100644 --- a/src/module/actor/actor-sheet.js +++ b/src/module/actor/actor-sheet.js @@ -13,6 +13,7 @@ export class OseActorSheet extends ActorSheet { data.config = CONFIG.OSE; // Settings data.config.ascendingAC = game.settings.get("ose", "ascendingAC"); + data.config.encumbranceBasic = game.settings.get("ose", "encumbranceOption") == 'basic'; // Prepare owned items this._prepareItems(data); diff --git a/src/templates/actors/partials/character-inventory-tab.html b/src/templates/actors/partials/character-inventory-tab.html index d7a1c2f..e022d5b 100644 --- a/src/templates/actors/partials/character-inventory-tab.html +++ b/src/templates/actors/partials/character-inventory-tab.html @@ -25,7 +25,7 @@ {{item.data.qualities}}
- {{item.data.weight}} + {{#if @root.config.encumbranceBasic}}_{{else}}{{item.data.weight}}{{/if}}
{{#if ../owner}} @@ -45,7 +45,7 @@
  • {{localize "OSE.items.Armors"}}
    - {{#if config.ascendingAC}} + {{#if @root.config.ascendingAC}}
    {{localize "OSE.items.ArmorAAC"}}
    {{else}}
    {{localize "OSE.items.ArmorAC"}}
    @@ -69,14 +69,14 @@
  • - {{#if config.ascendingAC}} + {{#if @root.config.ascendingAC}} {{item.data.aac.value}} {{else}} {{item.data.ac.value}} {{/if}}
    - {{item.data.weight}} + {{#if @root.config.encumbranceBasic}}_{{else}}{{item.data.weight}}{{/if}}
    {{#if ../owner}} @@ -122,7 +122,7 @@ placeholder="0" />{{#if item.data.quantity.max}}/{{item.data.quantity.max}}{{/if}}
    - {{mult item.data.quantity.value item.data.weight}} + {{#if @root.config.encumbranceBasic}}_{{else}}{{mult item.data.quantity.value item.data.weight}}{{/if}}
    {{#if ../owner}}