From 118a39e263531cabef2c1b5d3a985dd3305a7140 Mon Sep 17 00:00:00 2001 From: tmtabor Date: Sun, 21 Feb 2021 23:04:32 -0800 Subject: [PATCH] Fixing issue where software and implants would be counted against the encumbrance limit --- module/sos-utility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/sos-utility.js b/module/sos-utility.js index 4e1c302..eb90a51 100644 --- a/module/sos-utility.js +++ b/module/sos-utility.js @@ -110,7 +110,7 @@ export class SoSUtility extends Entity { let trappings = items.filter( item => item.type == 'gear' || item.type == 'armor' || item.type == 'weapon' ); let sumEnc = 0; for (let object of trappings) { - if ( (!object.data.worn) && (!object.data.neg) && (!object.data.containerid || object.data.containerid == "") ) { + if ( (!object.data.worn) && (!object.data.neg) && (!object.data.software) && (!object.data.implant) && (!object.data.containerid || object.data.containerid == "") ) { sumEnc += (object.big > 0) ? object.big : 1; } }