Merge branch 'master' into 'master'

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

See merge request LeRatierBretonnien/foundryvtt-shadows-over-sol!2
This commit is contained in:
Thorin Tabor 2021-02-22 07:06:41 +00:00
commit a27afe53ae
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;
}
}