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

Merged
tmtabor merged 1 commits from master into master 2021-02-22 20:14:53 +01:00

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 trappings = items.filter( item => item.type == 'gear' || item.type == 'armor' || item.type == 'weapon' );
let sumEnc = 0; let sumEnc = 0;
for (let object of trappings) { 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; sumEnc += (object.big > 0) ? object.big : 1;
} }
} }