Skip to content

Commit

Permalink
version 0.6.13
Browse files Browse the repository at this point in the history
  • Loading branch information
p4535992 committed Nov 6, 2022
1 parent 8108c97 commit 199eaab
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### 0.6.10
### 0.6.10-11-12

- BUg fix; https://github.com/p4535992/foundryvtt-inventory-plus/issues/14
- Bug fix: https://github.com/p4535992/foundryvtt-inventory-plus/issues/13
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "inventory-plus",
"title": "Inventory+",
"description": "Enhances the default dnd5e sheets inventory to allow for reorganization",
"version": "0.6.12",
"version": "0.6.13",
"main": "main.js",
"scripts": {
"publish": "gulp publish --update",
Expand Down
6 changes: 3 additions & 3 deletions src/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "inventory-plus",
"title": "Inventory+",
"description": "Enhances the default dnd5e sheets inventory to allow for reorganization",
"version": "0.6.12",
"version": "0.6.13",
"authors": [
{
"name": "Felix#6196"
Expand Down Expand Up @@ -82,8 +82,8 @@
"url": "https://github.com/p4535992/foundryvtt-inventory-plus",
"manifest": "https://github.com/p4535992/foundryvtt-inventory-plus/releases/latest/download/module.json",
"download": "https://github.com/p4535992/foundryvtt-inventory-plus/releases/latest/download/module.zip",
"readme": "https://github.com/p4535992/foundryvtt-inventory-plus/blob/v0.6.12/README.md",
"changelog": "https://github.com/p4535992/foundryvtt-inventory-plus/blob/v0.6.12/CHANGELOG.md",
"readme": "https://github.com/p4535992/foundryvtt-inventory-plus/blob/v0.6.13/README.md",
"changelog": "https://github.com/p4535992/foundryvtt-inventory-plus/blob/v0.6.13/CHANGELOG.md",
"bugs": "https://github.com/p4535992/foundryvtt-inventory-plus/issues",
"allowBugReporter": true,
"relationships": {
Expand Down
32 changes: 17 additions & 15 deletions src/scripts/inventory-plus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -854,21 +854,6 @@ export class InventoryPlus {
icon = icon + `<i class="fas fa-balance-scale-right"></i>`;
}
*/
if (currentCategory.ignoreWeight) {
icon = icon + `<i class="fas fa-feather"></i>`;
} else if (currentCategory.ownWeight > 0) {
icon = icon + `<i class="fas fa-weight-hanging"></i>`;
} else if (currentCategory.maxWeight > 0) {
icon = icon + `<i class="fas fa-balance-scale-right"></i>`;
}
if (currentCategory.ignoreBulk) {
icon = icon + `<i class="fas fa-feather-alt"></i>`;
} else if (currentCategory.ownBulk > 0) {
icon = icon + `<i class="fas fa-bold"></i>`;
} else if (currentCategory.maxBulk > 0) {
icon = icon + `<i class="fas fa-balance-scale-left"></i>`;
}

const weight = <number>this.getCategoryItemWeight(type);
let bulkWeightS = "";
let weightUnit = game.settings.get("dnd5e", "metricWeightUnits")
Expand All @@ -882,6 +867,23 @@ export class InventoryPlus {
? isVariantEncumbranceEnabled && game.settings.get("variant-encumbrance-dnd5e", "enableBulkSystem")
: false;

if (currentCategory.ignoreWeight) {
icon = icon + `<i class="fas fa-feather"></i>`;
} else if (currentCategory.ownWeight > 0) {
icon = icon + `<i class="fas fa-weight-hanging"></i>`;
} else if (currentCategory.maxWeight > 0) {
icon = icon + `<i class="fas fa-balance-scale-right"></i>`;
}
if (isBulked) {
if (currentCategory.ignoreBulk) {
icon = icon + `<i class="fas fa-feather-alt"></i>`;
} else if (currentCategory.ownBulk > 0) {
icon = icon + `<i class="fas fa-bold"></i>`;
} else if (currentCategory.maxBulk > 0) {
icon = icon + `<i class="fas fa-balance-scale-left"></i>`;
}
}

let bulkUnit = "bulk";
let weigthBulk = 0;
if (isBulked) {
Expand Down

0 comments on commit 199eaab

Please sign in to comment.