Fixing issue where software and implants would be counted against the encumbrance limit

This commit is contained in:
tmtabor 2021-02-21 23:04:32 -08:00
parent 4f61eb3ef2
commit 118a39e263
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}